All Downloads are FREE. Search and download functionalities are using the official Maven repository.
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.RelatedResource 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.ObjectReference;
import dev.bf2.ffm.ams.client.models.RelatedResourceAllOf;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* RelatedResource
*/
@JsonPropertyOrder({
RelatedResource.JSON_PROPERTY_HREF,
RelatedResource.JSON_PROPERTY_ID,
RelatedResource.JSON_PROPERTY_KIND,
RelatedResource.JSON_PROPERTY_AVAILABILITY_ZONE_TYPE,
RelatedResource.JSON_PROPERTY_BILLING_MODEL,
RelatedResource.JSON_PROPERTY_BYOC,
RelatedResource.JSON_PROPERTY_CLOUD_PROVIDER,
RelatedResource.JSON_PROPERTY_COST,
RelatedResource.JSON_PROPERTY_PRODUCT,
RelatedResource.JSON_PROPERTY_PRODUCT_ID,
RelatedResource.JSON_PROPERTY_RESOURCE_NAME,
RelatedResource.JSON_PROPERTY_RESOURCE_TYPE
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class RelatedResource {
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_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 String byoc;
public static final String JSON_PROPERTY_CLOUD_PROVIDER = "cloud_provider";
private String cloudProvider;
public static final String JSON_PROPERTY_COST = "cost";
private Integer cost;
public static final String JSON_PROPERTY_PRODUCT = "product";
private String product;
public static final String JSON_PROPERTY_PRODUCT_ID = "product_id";
private String productId;
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 RelatedResource() {
}
public RelatedResource 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 RelatedResource 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 RelatedResource 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 RelatedResource availabilityZoneType(String availabilityZoneType) {
this.availabilityZoneType = availabilityZoneType;
return this;
}
/**
* Get availabilityZoneType
* @return availabilityZoneType
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_AVAILABILITY_ZONE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getAvailabilityZoneType() {
return availabilityZoneType;
}
@JsonProperty(JSON_PROPERTY_AVAILABILITY_ZONE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setAvailabilityZoneType(String availabilityZoneType) {
this.availabilityZoneType = availabilityZoneType;
}
public RelatedResource billingModel(String billingModel) {
this.billingModel = billingModel;
return this;
}
/**
* Get billingModel
* @return billingModel
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_BILLING_MODEL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getBillingModel() {
return billingModel;
}
@JsonProperty(JSON_PROPERTY_BILLING_MODEL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setBillingModel(String billingModel) {
this.billingModel = billingModel;
}
public RelatedResource byoc(String 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 String getByoc() {
return byoc;
}
@JsonProperty(JSON_PROPERTY_BYOC)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setByoc(String byoc) {
this.byoc = byoc;
}
public RelatedResource cloudProvider(String cloudProvider) {
this.cloudProvider = cloudProvider;
return this;
}
/**
* Get cloudProvider
* @return cloudProvider
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_CLOUD_PROVIDER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getCloudProvider() {
return cloudProvider;
}
@JsonProperty(JSON_PROPERTY_CLOUD_PROVIDER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCloudProvider(String cloudProvider) {
this.cloudProvider = cloudProvider;
}
public RelatedResource cost(Integer cost) {
this.cost = cost;
return this;
}
/**
* Get cost
* @return cost
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_COST)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getCost() {
return cost;
}
@JsonProperty(JSON_PROPERTY_COST)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCost(Integer cost) {
this.cost = cost;
}
public RelatedResource product(String product) {
this.product = product;
return this;
}
/**
* Get product
* @return product
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_PRODUCT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getProduct() {
return product;
}
@JsonProperty(JSON_PROPERTY_PRODUCT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setProduct(String product) {
this.product = product;
}
public RelatedResource productId(String productId) {
this.productId = productId;
return this;
}
/**
* Get productId
* @return productId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PRODUCT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getProductId() {
return productId;
}
@JsonProperty(JSON_PROPERTY_PRODUCT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProductId(String productId) {
this.productId = productId;
}
public RelatedResource 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 RelatedResource resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
/**
* Get resourceType
* @return resourceType
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_RESOURCE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getResourceType() {
return resourceType;
}
@JsonProperty(JSON_PROPERTY_RESOURCE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
/**
* Return true if this RelatedResource object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RelatedResource relatedResource = (RelatedResource) o;
return Objects.equals(this.href, relatedResource.href) &&
Objects.equals(this.id, relatedResource.id) &&
Objects.equals(this.kind, relatedResource.kind) &&
Objects.equals(this.availabilityZoneType, relatedResource.availabilityZoneType) &&
Objects.equals(this.billingModel, relatedResource.billingModel) &&
Objects.equals(this.byoc, relatedResource.byoc) &&
Objects.equals(this.cloudProvider, relatedResource.cloudProvider) &&
Objects.equals(this.cost, relatedResource.cost) &&
Objects.equals(this.product, relatedResource.product) &&
Objects.equals(this.productId, relatedResource.productId) &&
Objects.equals(this.resourceName, relatedResource.resourceName) &&
Objects.equals(this.resourceType, relatedResource.resourceType);
}
@Override
public int hashCode() {
return Objects.hash(href, id, kind, availabilityZoneType, billingModel, byoc, cloudProvider, cost, product, productId, resourceName, resourceType);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RelatedResource {\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(" availabilityZoneType: ").append(toIndentedString(availabilityZoneType)).append("\n");
sb.append(" billingModel: ").append(toIndentedString(billingModel)).append("\n");
sb.append(" byoc: ").append(toIndentedString(byoc)).append("\n");
sb.append(" cloudProvider: ").append(toIndentedString(cloudProvider)).append("\n");
sb.append(" cost: ").append(toIndentedString(cost)).append("\n");
sb.append(" product: ").append(toIndentedString(product)).append("\n");
sb.append(" productId: ").append(toIndentedString(productId)).append("\n");
sb.append(" resourceName: ").append(toIndentedString(resourceName)).append("\n");
sb.append(" resourceType: ").append(toIndentedString(resourceType)).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 ");
}
}