Class ManagementProjectsUsersUpdateRoleRequestBody

java.lang.Object
io.voucherify.client.model.ManagementProjectsUsersUpdateRoleRequestBody

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

  • Constructor Details

    • ManagementProjectsUsersUpdateRoleRequestBody

      public ManagementProjectsUsersUpdateRoleRequestBody()
  • Method Details

    • role

    • getRole

      @Nullable public String getRole()
      The role of the user to be added. It can be a custom role or one of following predefined roles: `ADMIN`, `USER`, `VIEWER`, `MERCHANT` or an ID of a custom role..
      Returns:
      role
    • setRole

      public void setRole(String role)
    • 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
    • fromJson

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

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