All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
dev.bf2.ffm.ams.client.models.AccountAllOf Maven / Gradle / Ivy
/*
* 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 dev.bf2.ffm.ams.client.models.Capability;
import dev.bf2.ffm.ams.client.models.Label;
import dev.bf2.ffm.ams.client.models.Organization;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* AccountAllOf
*/
@JsonPropertyOrder({
AccountAllOf.JSON_PROPERTY_BAN_CODE,
AccountAllOf.JSON_PROPERTY_BAN_DESCRIPTION,
AccountAllOf.JSON_PROPERTY_BANNED,
AccountAllOf.JSON_PROPERTY_CAPABILITIES,
AccountAllOf.JSON_PROPERTY_CREATED_AT,
AccountAllOf.JSON_PROPERTY_EMAIL,
AccountAllOf.JSON_PROPERTY_FIRST_NAME,
AccountAllOf.JSON_PROPERTY_LABELS,
AccountAllOf.JSON_PROPERTY_LAST_NAME,
AccountAllOf.JSON_PROPERTY_ORGANIZATION,
AccountAllOf.JSON_PROPERTY_ORGANIZATION_ID,
AccountAllOf.JSON_PROPERTY_RHIT_ACCOUNT_ID,
AccountAllOf.JSON_PROPERTY_RHIT_WEB_USER_ID,
AccountAllOf.JSON_PROPERTY_SERVICE_ACCOUNT,
AccountAllOf.JSON_PROPERTY_UPDATED_AT,
AccountAllOf.JSON_PROPERTY_USERNAME
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AccountAllOf {
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 = false;
public static final String JSON_PROPERTY_CAPABILITIES = "capabilities";
private List capabilities = null;
public static final String JSON_PROPERTY_CREATED_AT = "created_at";
private OffsetDateTime createdAt;
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_LABELS = "labels";
private List labels = null;
public static final String JSON_PROPERTY_LAST_NAME = "last_name";
private String lastName;
public static final String JSON_PROPERTY_ORGANIZATION = "organization";
private Organization organization;
public static final String JSON_PROPERTY_ORGANIZATION_ID = "organization_id";
private String organizationId;
public static final String JSON_PROPERTY_RHIT_ACCOUNT_ID = "rhit_account_id";
private String rhitAccountId;
public static final String JSON_PROPERTY_RHIT_WEB_USER_ID = "rhit_web_user_id";
private String rhitWebUserId;
public static final String JSON_PROPERTY_SERVICE_ACCOUNT = "service_account";
private Boolean serviceAccount = false;
public static final String JSON_PROPERTY_UPDATED_AT = "updated_at";
private OffsetDateTime updatedAt;
public static final String JSON_PROPERTY_USERNAME = "username";
private String username;
public AccountAllOf() {
}
public AccountAllOf 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 AccountAllOf 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 AccountAllOf 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 AccountAllOf capabilities(List capabilities) {
this.capabilities = capabilities;
return this;
}
public AccountAllOf addCapabilitiesItem(Capability capabilitiesItem) {
if (this.capabilities == null) {
this.capabilities = new ArrayList<>();
}
this.capabilities.add(capabilitiesItem);
return this;
}
/**
* Get capabilities
* @return capabilities
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CAPABILITIES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getCapabilities() {
return capabilities;
}
@JsonProperty(JSON_PROPERTY_CAPABILITIES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCapabilities(List capabilities) {
this.capabilities = capabilities;
}
public AccountAllOf createdAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* Get createdAt
* @return createdAt
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CREATED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getCreatedAt() {
return createdAt;
}
@JsonProperty(JSON_PROPERTY_CREATED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCreatedAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
}
public AccountAllOf 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 AccountAllOf 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 AccountAllOf labels(List labels) {
this.labels = labels;
return this;
}
public AccountAllOf addLabelsItem(Label labelsItem) {
if (this.labels == null) {
this.labels = new ArrayList<>();
}
this.labels.add(labelsItem);
return this;
}
/**
* Get labels
* @return labels
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_LABELS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getLabels() {
return labels;
}
@JsonProperty(JSON_PROPERTY_LABELS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLabels(List labels) {
this.labels = labels;
}
public AccountAllOf 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 AccountAllOf organization(Organization organization) {
this.organization = organization;
return this;
}
/**
* Get organization
* @return organization
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ORGANIZATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Organization getOrganization() {
return organization;
}
@JsonProperty(JSON_PROPERTY_ORGANIZATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOrganization(Organization organization) {
this.organization = organization;
}
public AccountAllOf 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 AccountAllOf rhitAccountId(String rhitAccountId) {
this.rhitAccountId = rhitAccountId;
return this;
}
/**
* Get rhitAccountId
* @return rhitAccountId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_RHIT_ACCOUNT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRhitAccountId() {
return rhitAccountId;
}
@JsonProperty(JSON_PROPERTY_RHIT_ACCOUNT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRhitAccountId(String rhitAccountId) {
this.rhitAccountId = rhitAccountId;
}
public AccountAllOf rhitWebUserId(String rhitWebUserId) {
this.rhitWebUserId = rhitWebUserId;
return this;
}
/**
* Get rhitWebUserId
* @return rhitWebUserId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_RHIT_WEB_USER_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRhitWebUserId() {
return rhitWebUserId;
}
@JsonProperty(JSON_PROPERTY_RHIT_WEB_USER_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRhitWebUserId(String rhitWebUserId) {
this.rhitWebUserId = rhitWebUserId;
}
public AccountAllOf 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;
}
public AccountAllOf updatedAt(OffsetDateTime updatedAt) {
this.updatedAt = updatedAt;
return this;
}
/**
* Get updatedAt
* @return updatedAt
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_UPDATED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getUpdatedAt() {
return updatedAt;
}
@JsonProperty(JSON_PROPERTY_UPDATED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setUpdatedAt(OffsetDateTime updatedAt) {
this.updatedAt = updatedAt;
}
public AccountAllOf username(String username) {
this.username = username;
return this;
}
/**
* Get username
* @return username
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_USERNAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getUsername() {
return username;
}
@JsonProperty(JSON_PROPERTY_USERNAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setUsername(String username) {
this.username = username;
}
/**
* Return true if this Account_allOf object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AccountAllOf accountAllOf = (AccountAllOf) o;
return Objects.equals(this.banCode, accountAllOf.banCode) &&
Objects.equals(this.banDescription, accountAllOf.banDescription) &&
Objects.equals(this.banned, accountAllOf.banned) &&
Objects.equals(this.capabilities, accountAllOf.capabilities) &&
Objects.equals(this.createdAt, accountAllOf.createdAt) &&
Objects.equals(this.email, accountAllOf.email) &&
Objects.equals(this.firstName, accountAllOf.firstName) &&
Objects.equals(this.labels, accountAllOf.labels) &&
Objects.equals(this.lastName, accountAllOf.lastName) &&
Objects.equals(this.organization, accountAllOf.organization) &&
Objects.equals(this.organizationId, accountAllOf.organizationId) &&
Objects.equals(this.rhitAccountId, accountAllOf.rhitAccountId) &&
Objects.equals(this.rhitWebUserId, accountAllOf.rhitWebUserId) &&
Objects.equals(this.serviceAccount, accountAllOf.serviceAccount) &&
Objects.equals(this.updatedAt, accountAllOf.updatedAt) &&
Objects.equals(this.username, accountAllOf.username);
}
@Override
public int hashCode() {
return Objects.hash(banCode, banDescription, banned, capabilities, createdAt, email, firstName, labels, lastName, organization, organizationId, rhitAccountId, rhitWebUserId, serviceAccount, updatedAt, username);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AccountAllOf {\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(" capabilities: ").append(toIndentedString(capabilities)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" labels: ").append(toIndentedString(labels)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" organization: ").append(toIndentedString(organization)).append("\n");
sb.append(" organizationId: ").append(toIndentedString(organizationId)).append("\n");
sb.append(" rhitAccountId: ").append(toIndentedString(rhitAccountId)).append("\n");
sb.append(" rhitWebUserId: ").append(toIndentedString(rhitWebUserId)).append("\n");
sb.append(" serviceAccount: ").append(toIndentedString(serviceAccount)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
sb.append(" username: ").append(toIndentedString(username)).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 ");
}
}