Class AccessRequestDTO

java.lang.Object
com.redhat.parodos.sdk.model.AccessRequestDTO

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class AccessRequestDTO extends Object
AccessRequestDTO
  • Field Details

  • Constructor Details

    • AccessRequestDTO

      public AccessRequestDTO()
  • Method Details

    • role

    • getRole

      @Nullable public AccessRequestDTO.RoleEnum getRole()
      Get role
      Returns:
      role
    • setRole

      public void setRole(AccessRequestDTO.RoleEnum role)
    • username

      public AccessRequestDTO username(String username)
    • getUsername

      @Nullable public String getUsername()
      Get username
      Returns:
      username
    • setUsername

      public void setUsername(String username)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to AccessRequestDTO
    • fromJson

      public static AccessRequestDTO fromJson(String jsonString) throws IOException
      Create an instance of AccessRequestDTO given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of AccessRequestDTO
      Throws:
      IOException - if the JSON string is invalid with respect to AccessRequestDTO
    • toJson

      public String toJson()
      Convert an instance of AccessRequestDTO to an JSON string
      Returns:
      JSON string