dev.bf2.ffm.ams.client.models.ClusterTransferAllOf 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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* ClusterTransferAllOf
*/
@JsonPropertyOrder({
ClusterTransferAllOf.JSON_PROPERTY_CLUSTER_UUID,
ClusterTransferAllOf.JSON_PROPERTY_CREATED_AT,
ClusterTransferAllOf.JSON_PROPERTY_EXPIRATION_DATE,
ClusterTransferAllOf.JSON_PROPERTY_OWNER,
ClusterTransferAllOf.JSON_PROPERTY_RECIPIENT,
ClusterTransferAllOf.JSON_PROPERTY_SECRET,
ClusterTransferAllOf.JSON_PROPERTY_STATUS,
ClusterTransferAllOf.JSON_PROPERTY_UPDATED_AT
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ClusterTransferAllOf {
public static final String JSON_PROPERTY_CLUSTER_UUID = "cluster_uuid";
private String clusterUuid;
public static final String JSON_PROPERTY_CREATED_AT = "created_at";
private OffsetDateTime createdAt;
public static final String JSON_PROPERTY_EXPIRATION_DATE = "expiration_date";
private OffsetDateTime expirationDate;
public static final String JSON_PROPERTY_OWNER = "owner";
private String owner;
public static final String JSON_PROPERTY_RECIPIENT = "recipient";
private String recipient;
public static final String JSON_PROPERTY_SECRET = "secret";
private String secret;
/**
* Gets or Sets status
*/
public enum StatusEnum {
PENDING("Pending"),
ACCEPTED("Accepted"),
DECLINED("Declined"),
RESCINDED("Rescinded"),
COMPLETED("Completed");
private String value;
StatusEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static StatusEnum fromValue(String value) {
for (StatusEnum b : StatusEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_STATUS = "status";
private StatusEnum status;
public static final String JSON_PROPERTY_UPDATED_AT = "updated_at";
private OffsetDateTime updatedAt;
public ClusterTransferAllOf() {
}
public ClusterTransferAllOf clusterUuid(String clusterUuid) {
this.clusterUuid = clusterUuid;
return this;
}
/**
* Get clusterUuid
* @return clusterUuid
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CLUSTER_UUID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getClusterUuid() {
return clusterUuid;
}
@JsonProperty(JSON_PROPERTY_CLUSTER_UUID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setClusterUuid(String clusterUuid) {
this.clusterUuid = clusterUuid;
}
public ClusterTransferAllOf 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 ClusterTransferAllOf expirationDate(OffsetDateTime expirationDate) {
this.expirationDate = expirationDate;
return this;
}
/**
* Get expirationDate
* @return expirationDate
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_EXPIRATION_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getExpirationDate() {
return expirationDate;
}
@JsonProperty(JSON_PROPERTY_EXPIRATION_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setExpirationDate(OffsetDateTime expirationDate) {
this.expirationDate = expirationDate;
}
public ClusterTransferAllOf owner(String owner) {
this.owner = owner;
return this;
}
/**
* Get owner
* @return owner
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_OWNER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getOwner() {
return owner;
}
@JsonProperty(JSON_PROPERTY_OWNER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOwner(String owner) {
this.owner = owner;
}
public ClusterTransferAllOf recipient(String recipient) {
this.recipient = recipient;
return this;
}
/**
* Get recipient
* @return recipient
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_RECIPIENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRecipient() {
return recipient;
}
@JsonProperty(JSON_PROPERTY_RECIPIENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRecipient(String recipient) {
this.recipient = recipient;
}
public ClusterTransferAllOf secret(String secret) {
this.secret = secret;
return this;
}
/**
* Get secret
* @return secret
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SECRET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSecret() {
return secret;
}
@JsonProperty(JSON_PROPERTY_SECRET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSecret(String secret) {
this.secret = secret;
}
public ClusterTransferAllOf status(StatusEnum status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public StatusEnum getStatus() {
return status;
}
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStatus(StatusEnum status) {
this.status = status;
}
public ClusterTransferAllOf 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;
}
/**
* Return true if this ClusterTransfer_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;
}
ClusterTransferAllOf clusterTransferAllOf = (ClusterTransferAllOf) o;
return Objects.equals(this.clusterUuid, clusterTransferAllOf.clusterUuid) &&
Objects.equals(this.createdAt, clusterTransferAllOf.createdAt) &&
Objects.equals(this.expirationDate, clusterTransferAllOf.expirationDate) &&
Objects.equals(this.owner, clusterTransferAllOf.owner) &&
Objects.equals(this.recipient, clusterTransferAllOf.recipient) &&
Objects.equals(this.secret, clusterTransferAllOf.secret) &&
Objects.equals(this.status, clusterTransferAllOf.status) &&
Objects.equals(this.updatedAt, clusterTransferAllOf.updatedAt);
}
@Override
public int hashCode() {
return Objects.hash(clusterUuid, createdAt, expirationDate, owner, recipient, secret, status, updatedAt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ClusterTransferAllOf {\n");
sb.append(" clusterUuid: ").append(toIndentedString(clusterUuid)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" expirationDate: ").append(toIndentedString(expirationDate)).append("\n");
sb.append(" owner: ").append(toIndentedString(owner)).append("\n");
sb.append(" recipient: ").append(toIndentedString(recipient)).append("\n");
sb.append(" secret: ").append(toIndentedString(secret)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).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 ");
}
}