All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.bf2.ffm.ams.client.models.AccountPatchRequest Maven / Gradle / Ivy

There is a newer version: 0.0.2
Show newest version
/*
 * Account Management Service API
 * Manage user subscriptions and clusters
 *
 * The version of the OpenAPI document: 0.0.1
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package dev.bf2.ffm.ams.client.models;

import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * AccountPatchRequest
 */
@JsonPropertyOrder({
  AccountPatchRequest.JSON_PROPERTY_BAN_CODE,
  AccountPatchRequest.JSON_PROPERTY_BAN_DESCRIPTION,
  AccountPatchRequest.JSON_PROPERTY_BANNED,
  AccountPatchRequest.JSON_PROPERTY_EMAIL,
  AccountPatchRequest.JSON_PROPERTY_FIRST_NAME,
  AccountPatchRequest.JSON_PROPERTY_LAST_NAME,
  AccountPatchRequest.JSON_PROPERTY_ORGANIZATION_ID,
  AccountPatchRequest.JSON_PROPERTY_SERVICE_ACCOUNT
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AccountPatchRequest {
  public static final String JSON_PROPERTY_BAN_CODE = "ban_code";
  private String banCode;

  public static final String JSON_PROPERTY_BAN_DESCRIPTION = "ban_description";
  private String banDescription;

  public static final String JSON_PROPERTY_BANNED = "banned";
  private Boolean banned;

  public static final String JSON_PROPERTY_EMAIL = "email";
  private String email;

  public static final String JSON_PROPERTY_FIRST_NAME = "first_name";
  private String firstName;

  public static final String JSON_PROPERTY_LAST_NAME = "last_name";
  private String lastName;

  public static final String JSON_PROPERTY_ORGANIZATION_ID = "organization_id";
  private String organizationId;

  public static final String JSON_PROPERTY_SERVICE_ACCOUNT = "service_account";
  private Boolean serviceAccount;

  public AccountPatchRequest() { 
  }

  public AccountPatchRequest banCode(String banCode) {
    this.banCode = banCode;
    return this;
  }

   /**
   * Get banCode
   * @return banCode
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_BAN_CODE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getBanCode() {
    return banCode;
  }


  @JsonProperty(JSON_PROPERTY_BAN_CODE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setBanCode(String banCode) {
    this.banCode = banCode;
  }


  public AccountPatchRequest banDescription(String banDescription) {
    this.banDescription = banDescription;
    return this;
  }

   /**
   * Get banDescription
   * @return banDescription
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_BAN_DESCRIPTION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getBanDescription() {
    return banDescription;
  }


  @JsonProperty(JSON_PROPERTY_BAN_DESCRIPTION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setBanDescription(String banDescription) {
    this.banDescription = banDescription;
  }


  public AccountPatchRequest banned(Boolean banned) {
    this.banned = banned;
    return this;
  }

   /**
   * Get banned
   * @return banned
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_BANNED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean getBanned() {
    return banned;
  }


  @JsonProperty(JSON_PROPERTY_BANNED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setBanned(Boolean banned) {
    this.banned = banned;
  }


  public AccountPatchRequest email(String email) {
    this.email = email;
    return this;
  }

   /**
   * Get email
   * @return email
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_EMAIL)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getEmail() {
    return email;
  }


  @JsonProperty(JSON_PROPERTY_EMAIL)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setEmail(String email) {
    this.email = email;
  }


  public AccountPatchRequest firstName(String firstName) {
    this.firstName = firstName;
    return this;
  }

   /**
   * Get firstName
   * @return firstName
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_FIRST_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getFirstName() {
    return firstName;
  }


  @JsonProperty(JSON_PROPERTY_FIRST_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setFirstName(String firstName) {
    this.firstName = firstName;
  }


  public AccountPatchRequest lastName(String lastName) {
    this.lastName = lastName;
    return this;
  }

   /**
   * Get lastName
   * @return lastName
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_LAST_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getLastName() {
    return lastName;
  }


  @JsonProperty(JSON_PROPERTY_LAST_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setLastName(String lastName) {
    this.lastName = lastName;
  }


  public AccountPatchRequest organizationId(String organizationId) {
    this.organizationId = organizationId;
    return this;
  }

   /**
   * Get organizationId
   * @return organizationId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getOrganizationId() {
    return organizationId;
  }


  @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setOrganizationId(String organizationId) {
    this.organizationId = organizationId;
  }


  public AccountPatchRequest serviceAccount(Boolean serviceAccount) {
    this.serviceAccount = serviceAccount;
    return this;
  }

   /**
   * Get serviceAccount
   * @return serviceAccount
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_SERVICE_ACCOUNT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean getServiceAccount() {
    return serviceAccount;
  }


  @JsonProperty(JSON_PROPERTY_SERVICE_ACCOUNT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setServiceAccount(Boolean serviceAccount) {
    this.serviceAccount = serviceAccount;
  }


  /**
   * Return true if this AccountPatchRequest object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AccountPatchRequest accountPatchRequest = (AccountPatchRequest) o;
    return Objects.equals(this.banCode, accountPatchRequest.banCode) &&
        Objects.equals(this.banDescription, accountPatchRequest.banDescription) &&
        Objects.equals(this.banned, accountPatchRequest.banned) &&
        Objects.equals(this.email, accountPatchRequest.email) &&
        Objects.equals(this.firstName, accountPatchRequest.firstName) &&
        Objects.equals(this.lastName, accountPatchRequest.lastName) &&
        Objects.equals(this.organizationId, accountPatchRequest.organizationId) &&
        Objects.equals(this.serviceAccount, accountPatchRequest.serviceAccount);
  }

  @Override
  public int hashCode() {
    return Objects.hash(banCode, banDescription, banned, email, firstName, lastName, organizationId, serviceAccount);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AccountPatchRequest {\n");
    sb.append("    banCode: ").append(toIndentedString(banCode)).append("\n");
    sb.append("    banDescription: ").append(toIndentedString(banDescription)).append("\n");
    sb.append("    banned: ").append(toIndentedString(banned)).append("\n");
    sb.append("    email: ").append(toIndentedString(email)).append("\n");
    sb.append("    firstName: ").append(toIndentedString(firstName)).append("\n");
    sb.append("    lastName: ").append(toIndentedString(lastName)).append("\n");
    sb.append("    organizationId: ").append(toIndentedString(organizationId)).append("\n");
    sb.append("    serviceAccount: ").append(toIndentedString(serviceAccount)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy