dev.bf2.ffm.ams.client.models.EphemeralResourceQuota 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;
/**
* EphemeralResourceQuota
*/
@JsonPropertyOrder({
EphemeralResourceQuota.JSON_PROPERTY_AVAILABILITY_ZONE_TYPE,
EphemeralResourceQuota.JSON_PROPERTY_BYOC,
EphemeralResourceQuota.JSON_PROPERTY_RESOURCE_NAME,
EphemeralResourceQuota.JSON_PROPERTY_RESOURCE_TYPE,
EphemeralResourceQuota.JSON_PROPERTY_SKU,
EphemeralResourceQuota.JSON_PROPERTY_SKU_COUNT
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class EphemeralResourceQuota {
public static final String JSON_PROPERTY_AVAILABILITY_ZONE_TYPE = "availability_zone_type";
private String availabilityZoneType;
public static final String JSON_PROPERTY_BYOC = "byoc";
private Boolean byoc;
public static final String JSON_PROPERTY_RESOURCE_NAME = "resource_name";
private String resourceName;
public static final String JSON_PROPERTY_RESOURCE_TYPE = "resource_type";
private String resourceType;
public static final String JSON_PROPERTY_SKU = "sku";
private String sku;
public static final String JSON_PROPERTY_SKU_COUNT = "sku_count";
private Integer skuCount;
public EphemeralResourceQuota() {
}
public EphemeralResourceQuota availabilityZoneType(String availabilityZoneType) {
this.availabilityZoneType = availabilityZoneType;
return this;
}
/**
* Get availabilityZoneType
* @return availabilityZoneType
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_AVAILABILITY_ZONE_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getAvailabilityZoneType() {
return availabilityZoneType;
}
@JsonProperty(JSON_PROPERTY_AVAILABILITY_ZONE_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAvailabilityZoneType(String availabilityZoneType) {
this.availabilityZoneType = availabilityZoneType;
}
public EphemeralResourceQuota byoc(Boolean byoc) {
this.byoc = byoc;
return this;
}
/**
* Get byoc
* @return byoc
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BYOC)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getByoc() {
return byoc;
}
@JsonProperty(JSON_PROPERTY_BYOC)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setByoc(Boolean byoc) {
this.byoc = byoc;
}
public EphemeralResourceQuota resourceName(String resourceName) {
this.resourceName = resourceName;
return this;
}
/**
* Get resourceName
* @return resourceName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_RESOURCE_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getResourceName() {
return resourceName;
}
@JsonProperty(JSON_PROPERTY_RESOURCE_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setResourceName(String resourceName) {
this.resourceName = resourceName;
}
public EphemeralResourceQuota resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* Get resourceType
* @return resourceType
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_RESOURCE_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getResourceType() {
return resourceType;
}
@JsonProperty(JSON_PROPERTY_RESOURCE_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
public EphemeralResourceQuota sku(String sku) {
this.sku = sku;
return this;
}
/**
* Get sku
* @return sku
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SKU)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSku() {
return sku;
}
@JsonProperty(JSON_PROPERTY_SKU)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSku(String sku) {
this.sku = sku;
}
public EphemeralResourceQuota skuCount(Integer skuCount) {
this.skuCount = skuCount;
return this;
}
/**
* Get skuCount
* @return skuCount
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SKU_COUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getSkuCount() {
return skuCount;
}
@JsonProperty(JSON_PROPERTY_SKU_COUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSkuCount(Integer skuCount) {
this.skuCount = skuCount;
}
/**
* Return true if this EphemeralResourceQuota object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EphemeralResourceQuota ephemeralResourceQuota = (EphemeralResourceQuota) o;
return Objects.equals(this.availabilityZoneType, ephemeralResourceQuota.availabilityZoneType) &&
Objects.equals(this.byoc, ephemeralResourceQuota.byoc) &&
Objects.equals(this.resourceName, ephemeralResourceQuota.resourceName) &&
Objects.equals(this.resourceType, ephemeralResourceQuota.resourceType) &&
Objects.equals(this.sku, ephemeralResourceQuota.sku) &&
Objects.equals(this.skuCount, ephemeralResourceQuota.skuCount);
}
@Override
public int hashCode() {
return Objects.hash(availabilityZoneType, byoc, resourceName, resourceType, sku, skuCount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EphemeralResourceQuota {\n");
sb.append(" availabilityZoneType: ").append(toIndentedString(availabilityZoneType)).append("\n");
sb.append(" byoc: ").append(toIndentedString(byoc)).append("\n");
sb.append(" resourceName: ").append(toIndentedString(resourceName)).append("\n");
sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n");
sb.append(" sku: ").append(toIndentedString(sku)).append("\n");
sb.append(" skuCount: ").append(toIndentedString(skuCount)).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 ");
}
}