dev.bf2.ffm.ams.client.models.ClusterRegistrationResponse 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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* ClusterRegistrationResponse
*/
@JsonPropertyOrder({
ClusterRegistrationResponse.JSON_PROPERTY_ACCOUNT_ID,
ClusterRegistrationResponse.JSON_PROPERTY_AUTHORIZATION_TOKEN,
ClusterRegistrationResponse.JSON_PROPERTY_CLUSTER_ID,
ClusterRegistrationResponse.JSON_PROPERTY_EXPIRES_AT
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ClusterRegistrationResponse {
public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id";
private String accountId;
public static final String JSON_PROPERTY_AUTHORIZATION_TOKEN = "authorization_token";
private String authorizationToken;
public static final String JSON_PROPERTY_CLUSTER_ID = "cluster_id";
private String clusterId;
public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at";
private String expiresAt;
public ClusterRegistrationResponse() {
}
public ClusterRegistrationResponse accountId(String accountId) {
this.accountId = accountId;
return this;
}
/**
* Get accountId
* @return accountId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ACCOUNT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getAccountId() {
return accountId;
}
@JsonProperty(JSON_PROPERTY_ACCOUNT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAccountId(String accountId) {
this.accountId = accountId;
}
public ClusterRegistrationResponse authorizationToken(String authorizationToken) {
this.authorizationToken = authorizationToken;
return this;
}
/**
* Get authorizationToken
* @return authorizationToken
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_AUTHORIZATION_TOKEN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getAuthorizationToken() {
return authorizationToken;
}
@JsonProperty(JSON_PROPERTY_AUTHORIZATION_TOKEN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAuthorizationToken(String authorizationToken) {
this.authorizationToken = authorizationToken;
}
public ClusterRegistrationResponse clusterId(String clusterId) {
this.clusterId = clusterId;
return this;
}
/**
* Get clusterId
* @return clusterId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CLUSTER_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getClusterId() {
return clusterId;
}
@JsonProperty(JSON_PROPERTY_CLUSTER_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setClusterId(String clusterId) {
this.clusterId = clusterId;
}
public ClusterRegistrationResponse expiresAt(String expiresAt) {
this.expiresAt = expiresAt;
return this;
}
/**
* Cluster Registration expiration in Unix time
* @return expiresAt
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Cluster Registration expiration in Unix time")
@JsonProperty(JSON_PROPERTY_EXPIRES_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getExpiresAt() {
return expiresAt;
}
@JsonProperty(JSON_PROPERTY_EXPIRES_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setExpiresAt(String expiresAt) {
this.expiresAt = expiresAt;
}
/**
* Return true if this ClusterRegistrationResponse object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ClusterRegistrationResponse clusterRegistrationResponse = (ClusterRegistrationResponse) o;
return Objects.equals(this.accountId, clusterRegistrationResponse.accountId) &&
Objects.equals(this.authorizationToken, clusterRegistrationResponse.authorizationToken) &&
Objects.equals(this.clusterId, clusterRegistrationResponse.clusterId) &&
Objects.equals(this.expiresAt, clusterRegistrationResponse.expiresAt);
}
@Override
public int hashCode() {
return Objects.hash(accountId, authorizationToken, clusterId, expiresAt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ClusterRegistrationResponse {\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" authorizationToken: ").append(toIndentedString(authorizationToken)).append("\n");
sb.append(" clusterId: ").append(toIndentedString(clusterId)).append("\n");
sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).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 ");
}
}