
dev.bf2.ffm.ams.client.models.ConsumedQuotaAllOf 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;
/**
* ConsumedQuotaAllOf
*/
@JsonPropertyOrder({
ConsumedQuotaAllOf.JSON_PROPERTY_AVAILABILITY_ZONE_TYPE,
ConsumedQuotaAllOf.JSON_PROPERTY_BILLING_MODEL,
ConsumedQuotaAllOf.JSON_PROPERTY_BYOC,
ConsumedQuotaAllOf.JSON_PROPERTY_CLOUD_PROVIDER_ID,
ConsumedQuotaAllOf.JSON_PROPERTY_COUNT,
ConsumedQuotaAllOf.JSON_PROPERTY_ORGANIZATION_ID,
ConsumedQuotaAllOf.JSON_PROPERTY_PLAN_ID,
ConsumedQuotaAllOf.JSON_PROPERTY_RESOURCE_NAME,
ConsumedQuotaAllOf.JSON_PROPERTY_RESOURCE_TYPE,
ConsumedQuotaAllOf.JSON_PROPERTY_VERSION
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ConsumedQuotaAllOf {
public static final String JSON_PROPERTY_AVAILABILITY_ZONE_TYPE = "availability_zone_type";
private String availabilityZoneType;
public static final String JSON_PROPERTY_BILLING_MODEL = "billing_model";
private String billingModel;
public static final String JSON_PROPERTY_BYOC = "byoc";
private Boolean byoc;
public static final String JSON_PROPERTY_CLOUD_PROVIDER_ID = "cloud_provider_id";
private String cloudProviderId;
public static final String JSON_PROPERTY_COUNT = "count";
private Integer count;
public static final String JSON_PROPERTY_ORGANIZATION_ID = "organization_id";
private String organizationId;
public static final String JSON_PROPERTY_PLAN_ID = "plan_id";
private String planId;
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_VERSION = "version";
private String version;
public ConsumedQuotaAllOf() {
}
public ConsumedQuotaAllOf 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 ConsumedQuotaAllOf billingModel(String billingModel) {
this.billingModel = billingModel;
return this;
}
/**
* Get billingModel
* @return billingModel
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BILLING_MODEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBillingModel() {
return billingModel;
}
@JsonProperty(JSON_PROPERTY_BILLING_MODEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBillingModel(String billingModel) {
this.billingModel = billingModel;
}
public ConsumedQuotaAllOf byoc(Boolean byoc) {
this.byoc = byoc;
return this;
}
/**
* Get byoc
* @return byoc
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_BYOC)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getByoc() {
return byoc;
}
@JsonProperty(JSON_PROPERTY_BYOC)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setByoc(Boolean byoc) {
this.byoc = byoc;
}
public ConsumedQuotaAllOf cloudProviderId(String cloudProviderId) {
this.cloudProviderId = cloudProviderId;
return this;
}
/**
* Get cloudProviderId
* @return cloudProviderId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CLOUD_PROVIDER_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCloudProviderId() {
return cloudProviderId;
}
@JsonProperty(JSON_PROPERTY_CLOUD_PROVIDER_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCloudProviderId(String cloudProviderId) {
this.cloudProviderId = cloudProviderId;
}
public ConsumedQuotaAllOf count(Integer count) {
this.count = count;
return this;
}
/**
* Get count
* @return count
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_COUNT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getCount() {
return count;
}
@JsonProperty(JSON_PROPERTY_COUNT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCount(Integer count) {
this.count = count;
}
public ConsumedQuotaAllOf 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 ConsumedQuotaAllOf planId(String planId) {
this.planId = planId;
return this;
}
/**
* Get planId
* @return planId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PLAN_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPlanId() {
return planId;
}
@JsonProperty(JSON_PROPERTY_PLAN_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPlanId(String planId) {
this.planId = planId;
}
public ConsumedQuotaAllOf 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 ConsumedQuotaAllOf 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 ConsumedQuotaAllOf version(String version) {
this.version = version;
return this;
}
/**
* Get version
* @return version
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_VERSION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getVersion() {
return version;
}
@JsonProperty(JSON_PROPERTY_VERSION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setVersion(String version) {
this.version = version;
}
/**
* Return true if this ConsumedQuota_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;
}
ConsumedQuotaAllOf consumedQuotaAllOf = (ConsumedQuotaAllOf) o;
return Objects.equals(this.availabilityZoneType, consumedQuotaAllOf.availabilityZoneType) &&
Objects.equals(this.billingModel, consumedQuotaAllOf.billingModel) &&
Objects.equals(this.byoc, consumedQuotaAllOf.byoc) &&
Objects.equals(this.cloudProviderId, consumedQuotaAllOf.cloudProviderId) &&
Objects.equals(this.count, consumedQuotaAllOf.count) &&
Objects.equals(this.organizationId, consumedQuotaAllOf.organizationId) &&
Objects.equals(this.planId, consumedQuotaAllOf.planId) &&
Objects.equals(this.resourceName, consumedQuotaAllOf.resourceName) &&
Objects.equals(this.resourceType, consumedQuotaAllOf.resourceType) &&
Objects.equals(this.version, consumedQuotaAllOf.version);
}
@Override
public int hashCode() {
return Objects.hash(availabilityZoneType, billingModel, byoc, cloudProviderId, count, organizationId, planId, resourceName, resourceType, version);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ConsumedQuotaAllOf {\n");
sb.append(" availabilityZoneType: ").append(toIndentedString(availabilityZoneType)).append("\n");
sb.append(" billingModel: ").append(toIndentedString(billingModel)).append("\n");
sb.append(" byoc: ").append(toIndentedString(byoc)).append("\n");
sb.append(" cloudProviderId: ").append(toIndentedString(cloudProviderId)).append("\n");
sb.append(" count: ").append(toIndentedString(count)).append("\n");
sb.append(" organizationId: ").append(toIndentedString(organizationId)).append("\n");
sb.append(" planId: ").append(toIndentedString(planId)).append("\n");
sb.append(" resourceName: ").append(toIndentedString(resourceName)).append("\n");
sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy