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.Account 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.AccountAllOf;
import dev.bf2.ffm.ams.client.models.Capability;
import dev.bf2.ffm.ams.client.models.Label;
import dev.bf2.ffm.ams.client.models.ObjectReference;
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;
/**
* Account
*/
@JsonPropertyOrder({
Account.JSON_PROPERTY_HREF,
Account.JSON_PROPERTY_ID,
Account.JSON_PROPERTY_KIND,
Account.JSON_PROPERTY_BAN_CODE,
Account.JSON_PROPERTY_BAN_DESCRIPTION,
Account.JSON_PROPERTY_BANNED,
Account.JSON_PROPERTY_CAPABILITIES,
Account.JSON_PROPERTY_CREATED_AT,
Account.JSON_PROPERTY_EMAIL,
Account.JSON_PROPERTY_FIRST_NAME,
Account.JSON_PROPERTY_LABELS,
Account.JSON_PROPERTY_LAST_NAME,
Account.JSON_PROPERTY_ORGANIZATION,
Account.JSON_PROPERTY_ORGANIZATION_ID,
Account.JSON_PROPERTY_RHIT_ACCOUNT_ID,
Account.JSON_PROPERTY_RHIT_WEB_USER_ID,
Account.JSON_PROPERTY_SERVICE_ACCOUNT,
Account.JSON_PROPERTY_UPDATED_AT,
Account.JSON_PROPERTY_USERNAME
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Account {
public static final String JSON_PROPERTY_HREF = "href";
private String href;
public static final String JSON_PROPERTY_ID = "id";
private String id;
public static final String JSON_PROPERTY_KIND = "kind";
private String kind;
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 Account() {
}
public Account href(String href) {
this.href = href;
return this;
}
/**
* Get href
* @return href
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_HREF)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getHref() {
return href;
}
@JsonProperty(JSON_PROPERTY_HREF)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setHref(String href) {
this.href = href;
}
public Account id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getId() {
return id;
}
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(String id) {
this.id = id;
}
public Account kind(String kind) {
this.kind = kind;
return this;
}
/**
* Get kind
* @return kind
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_KIND)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getKind() {
return kind;
}
@JsonProperty(JSON_PROPERTY_KIND)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setKind(String kind) {
this.kind = kind;
}
public Account 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 Account 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 Account 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 Account capabilities(List capabilities) {
this.capabilities = capabilities;
return this;
}
public Account 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 Account 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 Account 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 Account 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 Account labels(List labels) {
this.labels = labels;
return this;
}
public Account 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 Account 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 Account 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 Account 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 Account 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 Account 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 Account 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 Account 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 Account 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 object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Account account = (Account) o;
return Objects.equals(this.href, account.href) &&
Objects.equals(this.id, account.id) &&
Objects.equals(this.kind, account.kind) &&
Objects.equals(this.banCode, account.banCode) &&
Objects.equals(this.banDescription, account.banDescription) &&
Objects.equals(this.banned, account.banned) &&
Objects.equals(this.capabilities, account.capabilities) &&
Objects.equals(this.createdAt, account.createdAt) &&
Objects.equals(this.email, account.email) &&
Objects.equals(this.firstName, account.firstName) &&
Objects.equals(this.labels, account.labels) &&
Objects.equals(this.lastName, account.lastName) &&
Objects.equals(this.organization, account.organization) &&
Objects.equals(this.organizationId, account.organizationId) &&
Objects.equals(this.rhitAccountId, account.rhitAccountId) &&
Objects.equals(this.rhitWebUserId, account.rhitWebUserId) &&
Objects.equals(this.serviceAccount, account.serviceAccount) &&
Objects.equals(this.updatedAt, account.updatedAt) &&
Objects.equals(this.username, account.username);
}
@Override
public int hashCode() {
return Objects.hash(href, id, kind, 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 Account {\n");
sb.append(" href: ").append(toIndentedString(href)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" kind: ").append(toIndentedString(kind)).append("\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 ");
}
}