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.CloudResource 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.CloudResourceAllOf;
import dev.bf2.ffm.ams.client.models.ObjectReference;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* CloudResource
*/
@JsonPropertyOrder({
CloudResource.JSON_PROPERTY_HREF,
CloudResource.JSON_PROPERTY_ID,
CloudResource.JSON_PROPERTY_KIND,
CloudResource.JSON_PROPERTY_ACTIVE,
CloudResource.JSON_PROPERTY_CATEGORY,
CloudResource.JSON_PROPERTY_CATEGORY_PRETTY,
CloudResource.JSON_PROPERTY_CLOUD_PROVIDER,
CloudResource.JSON_PROPERTY_CPU_CORES,
CloudResource.JSON_PROPERTY_CREATED_AT,
CloudResource.JSON_PROPERTY_GENERIC_NAME,
CloudResource.JSON_PROPERTY_MEMORY,
CloudResource.JSON_PROPERTY_MEMORY_PRETTY,
CloudResource.JSON_PROPERTY_NAME_PRETTY,
CloudResource.JSON_PROPERTY_RESOURCE_TYPE,
CloudResource.JSON_PROPERTY_SIZE_PRETTY,
CloudResource.JSON_PROPERTY_UPDATED_AT
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CloudResource {
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_ACTIVE = "active";
private Boolean active = true;
public static final String JSON_PROPERTY_CATEGORY = "category";
private String category;
public static final String JSON_PROPERTY_CATEGORY_PRETTY = "category_pretty";
private String categoryPretty;
public static final String JSON_PROPERTY_CLOUD_PROVIDER = "cloud_provider";
private String cloudProvider;
public static final String JSON_PROPERTY_CPU_CORES = "cpu_cores";
private Integer cpuCores;
public static final String JSON_PROPERTY_CREATED_AT = "created_at";
private OffsetDateTime createdAt;
public static final String JSON_PROPERTY_GENERIC_NAME = "generic_name";
private String genericName;
public static final String JSON_PROPERTY_MEMORY = "memory";
private Long memory;
public static final String JSON_PROPERTY_MEMORY_PRETTY = "memory_pretty";
private String memoryPretty;
public static final String JSON_PROPERTY_NAME_PRETTY = "name_pretty";
private String namePretty;
/**
* Gets or Sets resourceType
*/
public enum ResourceTypeEnum {
ADDON("addon"),
COMPUTE_NODE("compute.node"),
CLUSTER("cluster"),
NETWORK_IO("network.io"),
NETWORK_LOADBALANCER("network.loadbalancer"),
PV_STORAGE("pv.storage");
private String value;
ResourceTypeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static ResourceTypeEnum fromValue(String value) {
for (ResourceTypeEnum b : ResourceTypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_RESOURCE_TYPE = "resource_type";
private ResourceTypeEnum resourceType;
public static final String JSON_PROPERTY_SIZE_PRETTY = "size_pretty";
private String sizePretty;
public static final String JSON_PROPERTY_UPDATED_AT = "updated_at";
private OffsetDateTime updatedAt;
public CloudResource() {
}
public CloudResource 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 CloudResource 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 CloudResource 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 CloudResource active(Boolean active) {
this.active = active;
return this;
}
/**
* Get active
* @return active
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ACTIVE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getActive() {
return active;
}
@JsonProperty(JSON_PROPERTY_ACTIVE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setActive(Boolean active) {
this.active = active;
}
public CloudResource category(String category) {
this.category = category;
return this;
}
/**
* Get category
* @return category
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CATEGORY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCategory() {
return category;
}
@JsonProperty(JSON_PROPERTY_CATEGORY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCategory(String category) {
this.category = category;
}
public CloudResource categoryPretty(String categoryPretty) {
this.categoryPretty = categoryPretty;
return this;
}
/**
* Get categoryPretty
* @return categoryPretty
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CATEGORY_PRETTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCategoryPretty() {
return categoryPretty;
}
@JsonProperty(JSON_PROPERTY_CATEGORY_PRETTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCategoryPretty(String categoryPretty) {
this.categoryPretty = categoryPretty;
}
public CloudResource cloudProvider(String cloudProvider) {
this.cloudProvider = cloudProvider;
return this;
}
/**
* Get cloudProvider
* @return cloudProvider
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CLOUD_PROVIDER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCloudProvider() {
return cloudProvider;
}
@JsonProperty(JSON_PROPERTY_CLOUD_PROVIDER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCloudProvider(String cloudProvider) {
this.cloudProvider = cloudProvider;
}
public CloudResource cpuCores(Integer cpuCores) {
this.cpuCores = cpuCores;
return this;
}
/**
* Get cpuCores
* @return cpuCores
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CPU_CORES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getCpuCores() {
return cpuCores;
}
@JsonProperty(JSON_PROPERTY_CPU_CORES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCpuCores(Integer cpuCores) {
this.cpuCores = cpuCores;
}
public CloudResource 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 CloudResource genericName(String genericName) {
this.genericName = genericName;
return this;
}
/**
* Get genericName
* @return genericName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_GENERIC_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getGenericName() {
return genericName;
}
@JsonProperty(JSON_PROPERTY_GENERIC_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setGenericName(String genericName) {
this.genericName = genericName;
}
public CloudResource memory(Long memory) {
this.memory = memory;
return this;
}
/**
* Get memory
* @return memory
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MEMORY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getMemory() {
return memory;
}
@JsonProperty(JSON_PROPERTY_MEMORY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMemory(Long memory) {
this.memory = memory;
}
public CloudResource memoryPretty(String memoryPretty) {
this.memoryPretty = memoryPretty;
return this;
}
/**
* Get memoryPretty
* @return memoryPretty
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MEMORY_PRETTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getMemoryPretty() {
return memoryPretty;
}
@JsonProperty(JSON_PROPERTY_MEMORY_PRETTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMemoryPretty(String memoryPretty) {
this.memoryPretty = memoryPretty;
}
public CloudResource namePretty(String namePretty) {
this.namePretty = namePretty;
return this;
}
/**
* Get namePretty
* @return namePretty
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME_PRETTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getNamePretty() {
return namePretty;
}
@JsonProperty(JSON_PROPERTY_NAME_PRETTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setNamePretty(String namePretty) {
this.namePretty = namePretty;
}
public CloudResource resourceType(ResourceTypeEnum 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 ResourceTypeEnum getResourceType() {
return resourceType;
}
@JsonProperty(JSON_PROPERTY_RESOURCE_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setResourceType(ResourceTypeEnum resourceType) {
this.resourceType = resourceType;
}
public CloudResource sizePretty(String sizePretty) {
this.sizePretty = sizePretty;
return this;
}
/**
* Get sizePretty
* @return sizePretty
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SIZE_PRETTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSizePretty() {
return sizePretty;
}
@JsonProperty(JSON_PROPERTY_SIZE_PRETTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSizePretty(String sizePretty) {
this.sizePretty = sizePretty;
}
public CloudResource 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 CloudResource object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CloudResource cloudResource = (CloudResource) o;
return Objects.equals(this.href, cloudResource.href) &&
Objects.equals(this.id, cloudResource.id) &&
Objects.equals(this.kind, cloudResource.kind) &&
Objects.equals(this.active, cloudResource.active) &&
Objects.equals(this.category, cloudResource.category) &&
Objects.equals(this.categoryPretty, cloudResource.categoryPretty) &&
Objects.equals(this.cloudProvider, cloudResource.cloudProvider) &&
Objects.equals(this.cpuCores, cloudResource.cpuCores) &&
Objects.equals(this.createdAt, cloudResource.createdAt) &&
Objects.equals(this.genericName, cloudResource.genericName) &&
Objects.equals(this.memory, cloudResource.memory) &&
Objects.equals(this.memoryPretty, cloudResource.memoryPretty) &&
Objects.equals(this.namePretty, cloudResource.namePretty) &&
Objects.equals(this.resourceType, cloudResource.resourceType) &&
Objects.equals(this.sizePretty, cloudResource.sizePretty) &&
Objects.equals(this.updatedAt, cloudResource.updatedAt);
}
@Override
public int hashCode() {
return Objects.hash(href, id, kind, active, category, categoryPretty, cloudProvider, cpuCores, createdAt, genericName, memory, memoryPretty, namePretty, resourceType, sizePretty, updatedAt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CloudResource {\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(" active: ").append(toIndentedString(active)).append("\n");
sb.append(" category: ").append(toIndentedString(category)).append("\n");
sb.append(" categoryPretty: ").append(toIndentedString(categoryPretty)).append("\n");
sb.append(" cloudProvider: ").append(toIndentedString(cloudProvider)).append("\n");
sb.append(" cpuCores: ").append(toIndentedString(cpuCores)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" genericName: ").append(toIndentedString(genericName)).append("\n");
sb.append(" memory: ").append(toIndentedString(memory)).append("\n");
sb.append(" memoryPretty: ").append(toIndentedString(memoryPretty)).append("\n");
sb.append(" namePretty: ").append(toIndentedString(namePretty)).append("\n");
sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n");
sb.append(" sizePretty: ").append(toIndentedString(sizePretty)).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 ");
}
}