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.DeletedSubscription 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.DeletedSubscriptionAllOf;
import dev.bf2.ffm.ams.client.models.SubscriptionCommonFields;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* DeletedSubscription
*/
@JsonPropertyOrder({
DeletedSubscription.JSON_PROPERTY_HREF,
DeletedSubscription.JSON_PROPERTY_ID,
DeletedSubscription.JSON_PROPERTY_KIND,
DeletedSubscription.JSON_PROPERTY_BILLING_EXPIRATION_DATE,
DeletedSubscription.JSON_PROPERTY_BILLING_MARKETPLACE_ACCOUNT,
DeletedSubscription.JSON_PROPERTY_CLOUD_ACCOUNT_ID,
DeletedSubscription.JSON_PROPERTY_CLOUD_PROVIDER_ID,
DeletedSubscription.JSON_PROPERTY_CLUSTER_BILLING_MODEL,
DeletedSubscription.JSON_PROPERTY_CLUSTER_ID,
DeletedSubscription.JSON_PROPERTY_CONSOLE_URL,
DeletedSubscription.JSON_PROPERTY_CONSUMER_UUID,
DeletedSubscription.JSON_PROPERTY_CPU_TOTAL,
DeletedSubscription.JSON_PROPERTY_CREATOR_ID,
DeletedSubscription.JSON_PROPERTY_DISPLAY_NAME,
DeletedSubscription.JSON_PROPERTY_EXTERNAL_CLUSTER_ID,
DeletedSubscription.JSON_PROPERTY_LAST_RECONCILE_DATE,
DeletedSubscription.JSON_PROPERTY_LAST_RELEASED_AT,
DeletedSubscription.JSON_PROPERTY_LAST_TELEMETRY_DATE,
DeletedSubscription.JSON_PROPERTY_MANAGED,
DeletedSubscription.JSON_PROPERTY_ORGANIZATION_ID,
DeletedSubscription.JSON_PROPERTY_PLAN_ID,
DeletedSubscription.JSON_PROPERTY_PRODUCT_BUNDLE,
DeletedSubscription.JSON_PROPERTY_PROVENANCE,
DeletedSubscription.JSON_PROPERTY_REGION_ID,
DeletedSubscription.JSON_PROPERTY_RELEASED,
DeletedSubscription.JSON_PROPERTY_SERVICE_LEVEL,
DeletedSubscription.JSON_PROPERTY_SOCKET_TOTAL,
DeletedSubscription.JSON_PROPERTY_STATUS,
DeletedSubscription.JSON_PROPERTY_SUPPORT_LEVEL,
DeletedSubscription.JSON_PROPERTY_SYSTEM_UNITS,
DeletedSubscription.JSON_PROPERTY_TRIAL_END_DATE,
DeletedSubscription.JSON_PROPERTY_USAGE,
DeletedSubscription.JSON_PROPERTY_CREATED_AT,
DeletedSubscription.JSON_PROPERTY_METRICS,
DeletedSubscription.JSON_PROPERTY_QUERY_TIMESTAMP
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class DeletedSubscription {
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_BILLING_EXPIRATION_DATE = "billing_expiration_date";
private OffsetDateTime billingExpirationDate;
public static final String JSON_PROPERTY_BILLING_MARKETPLACE_ACCOUNT = "billing_marketplace_account";
private String billingMarketplaceAccount;
public static final String JSON_PROPERTY_CLOUD_ACCOUNT_ID = "cloud_account_id";
private String cloudAccountId;
public static final String JSON_PROPERTY_CLOUD_PROVIDER_ID = "cloud_provider_id";
private String cloudProviderId;
public static final String JSON_PROPERTY_CLUSTER_BILLING_MODEL = "cluster_billing_model";
private String clusterBillingModel;
public static final String JSON_PROPERTY_CLUSTER_ID = "cluster_id";
private String clusterId;
public static final String JSON_PROPERTY_CONSOLE_URL = "console_url";
private String consoleUrl;
public static final String JSON_PROPERTY_CONSUMER_UUID = "consumer_uuid";
private String consumerUuid;
public static final String JSON_PROPERTY_CPU_TOTAL = "cpu_total";
private Integer cpuTotal;
public static final String JSON_PROPERTY_CREATOR_ID = "creator_id";
private String creatorId;
public static final String JSON_PROPERTY_DISPLAY_NAME = "display_name";
private String displayName;
public static final String JSON_PROPERTY_EXTERNAL_CLUSTER_ID = "external_cluster_id";
private String externalClusterId;
public static final String JSON_PROPERTY_LAST_RECONCILE_DATE = "last_reconcile_date";
private OffsetDateTime lastReconcileDate;
public static final String JSON_PROPERTY_LAST_RELEASED_AT = "last_released_at";
private OffsetDateTime lastReleasedAt;
public static final String JSON_PROPERTY_LAST_TELEMETRY_DATE = "last_telemetry_date";
private OffsetDateTime lastTelemetryDate;
public static final String JSON_PROPERTY_MANAGED = "managed";
private Boolean managed;
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;
/**
* Gets or Sets productBundle
*/
public enum ProductBundleEnum {
OPENSHIFT("Openshift"),
JBOSS_MIDDLEWARE("JBoss-Middleware"),
IBM_CLOUDPAK("IBM-CloudPak");
private String value;
ProductBundleEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static ProductBundleEnum fromValue(String value) {
for (ProductBundleEnum b : ProductBundleEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_PRODUCT_BUNDLE = "product_bundle";
private ProductBundleEnum productBundle;
public static final String JSON_PROPERTY_PROVENANCE = "provenance";
private String provenance;
public static final String JSON_PROPERTY_REGION_ID = "region_id";
private String regionId;
public static final String JSON_PROPERTY_RELEASED = "released";
private Boolean released;
/**
* Gets or Sets serviceLevel
*/
public enum ServiceLevelEnum {
L1_L3("L1-L3"),
L3_ONLY("L3-only");
private String value;
ServiceLevelEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static ServiceLevelEnum fromValue(String value) {
for (ServiceLevelEnum b : ServiceLevelEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_SERVICE_LEVEL = "service_level";
private ServiceLevelEnum serviceLevel;
public static final String JSON_PROPERTY_SOCKET_TOTAL = "socket_total";
private Integer socketTotal;
public static final String JSON_PROPERTY_STATUS = "status";
private String status;
/**
* Gets or Sets supportLevel
*/
public enum SupportLevelEnum {
EVAL("Eval"),
STANDARD("Standard"),
PREMIUM("Premium"),
SELF_SUPPORT("Self-Support"),
NONE("None");
private String value;
SupportLevelEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static SupportLevelEnum fromValue(String value) {
for (SupportLevelEnum b : SupportLevelEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_SUPPORT_LEVEL = "support_level";
private SupportLevelEnum supportLevel;
/**
* Gets or Sets systemUnits
*/
public enum SystemUnitsEnum {
CORES_VCPU("Cores/vCPU"),
SOCKETS("Sockets");
private String value;
SystemUnitsEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static SystemUnitsEnum fromValue(String value) {
for (SystemUnitsEnum b : SystemUnitsEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_SYSTEM_UNITS = "system_units";
private SystemUnitsEnum systemUnits;
public static final String JSON_PROPERTY_TRIAL_END_DATE = "trial_end_date";
private OffsetDateTime trialEndDate;
/**
* Gets or Sets usage
*/
public enum UsageEnum {
PRODUCTION("Production"),
DEVELOPMENT_TEST("Development/Test"),
DISASTER_RECOVERY("Disaster Recovery"),
ACADEMIC("Academic");
private String value;
UsageEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static UsageEnum fromValue(String value) {
for (UsageEnum b : UsageEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_USAGE = "usage";
private UsageEnum usage;
public static final String JSON_PROPERTY_CREATED_AT = "created_at";
private OffsetDateTime createdAt;
public static final String JSON_PROPERTY_METRICS = "metrics";
private String metrics;
public static final String JSON_PROPERTY_QUERY_TIMESTAMP = "query_timestamp";
private OffsetDateTime queryTimestamp;
public DeletedSubscription() {
}
public DeletedSubscription 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 DeletedSubscription 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 DeletedSubscription 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 DeletedSubscription billingExpirationDate(OffsetDateTime billingExpirationDate) {
this.billingExpirationDate = billingExpirationDate;
return this;
}
/**
* If set, the date the subscription expires based on the billing model
* @return billingExpirationDate
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "If set, the date the subscription expires based on the billing model")
@JsonProperty(JSON_PROPERTY_BILLING_EXPIRATION_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getBillingExpirationDate() {
return billingExpirationDate;
}
@JsonProperty(JSON_PROPERTY_BILLING_EXPIRATION_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBillingExpirationDate(OffsetDateTime billingExpirationDate) {
this.billingExpirationDate = billingExpirationDate;
}
public DeletedSubscription billingMarketplaceAccount(String billingMarketplaceAccount) {
this.billingMarketplaceAccount = billingMarketplaceAccount;
return this;
}
/**
* Get billingMarketplaceAccount
* @return billingMarketplaceAccount
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BILLING_MARKETPLACE_ACCOUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBillingMarketplaceAccount() {
return billingMarketplaceAccount;
}
@JsonProperty(JSON_PROPERTY_BILLING_MARKETPLACE_ACCOUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBillingMarketplaceAccount(String billingMarketplaceAccount) {
this.billingMarketplaceAccount = billingMarketplaceAccount;
}
public DeletedSubscription cloudAccountId(String cloudAccountId) {
this.cloudAccountId = cloudAccountId;
return this;
}
/**
* Get cloudAccountId
* @return cloudAccountId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CLOUD_ACCOUNT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCloudAccountId() {
return cloudAccountId;
}
@JsonProperty(JSON_PROPERTY_CLOUD_ACCOUNT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCloudAccountId(String cloudAccountId) {
this.cloudAccountId = cloudAccountId;
}
public DeletedSubscription 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 DeletedSubscription clusterBillingModel(String clusterBillingModel) {
this.clusterBillingModel = clusterBillingModel;
return this;
}
/**
* Get clusterBillingModel
* @return clusterBillingModel
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CLUSTER_BILLING_MODEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getClusterBillingModel() {
return clusterBillingModel;
}
@JsonProperty(JSON_PROPERTY_CLUSTER_BILLING_MODEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setClusterBillingModel(String clusterBillingModel) {
this.clusterBillingModel = clusterBillingModel;
}
public DeletedSubscription 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 DeletedSubscription consoleUrl(String consoleUrl) {
this.consoleUrl = consoleUrl;
return this;
}
/**
* Get consoleUrl
* @return consoleUrl
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CONSOLE_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getConsoleUrl() {
return consoleUrl;
}
@JsonProperty(JSON_PROPERTY_CONSOLE_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setConsoleUrl(String consoleUrl) {
this.consoleUrl = consoleUrl;
}
public DeletedSubscription consumerUuid(String consumerUuid) {
this.consumerUuid = consumerUuid;
return this;
}
/**
* Get consumerUuid
* @return consumerUuid
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CONSUMER_UUID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getConsumerUuid() {
return consumerUuid;
}
@JsonProperty(JSON_PROPERTY_CONSUMER_UUID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setConsumerUuid(String consumerUuid) {
this.consumerUuid = consumerUuid;
}
public DeletedSubscription cpuTotal(Integer cpuTotal) {
this.cpuTotal = cpuTotal;
return this;
}
/**
* Get cpuTotal
* @return cpuTotal
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CPU_TOTAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getCpuTotal() {
return cpuTotal;
}
@JsonProperty(JSON_PROPERTY_CPU_TOTAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCpuTotal(Integer cpuTotal) {
this.cpuTotal = cpuTotal;
}
public DeletedSubscription creatorId(String creatorId) {
this.creatorId = creatorId;
return this;
}
/**
* Get creatorId
* @return creatorId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CREATOR_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCreatorId() {
return creatorId;
}
@JsonProperty(JSON_PROPERTY_CREATOR_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCreatorId(String creatorId) {
this.creatorId = creatorId;
}
public DeletedSubscription displayName(String displayName) {
this.displayName = displayName;
return this;
}
/**
* Get displayName
* @return displayName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DISPLAY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDisplayName() {
return displayName;
}
@JsonProperty(JSON_PROPERTY_DISPLAY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
public DeletedSubscription externalClusterId(String externalClusterId) {
this.externalClusterId = externalClusterId;
return this;
}
/**
* Get externalClusterId
* @return externalClusterId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_EXTERNAL_CLUSTER_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getExternalClusterId() {
return externalClusterId;
}
@JsonProperty(JSON_PROPERTY_EXTERNAL_CLUSTER_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setExternalClusterId(String externalClusterId) {
this.externalClusterId = externalClusterId;
}
public DeletedSubscription lastReconcileDate(OffsetDateTime lastReconcileDate) {
this.lastReconcileDate = lastReconcileDate;
return this;
}
/**
* Last time this subscription were reconciled about cluster usage
* @return lastReconcileDate
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Last time this subscription were reconciled about cluster usage")
@JsonProperty(JSON_PROPERTY_LAST_RECONCILE_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getLastReconcileDate() {
return lastReconcileDate;
}
@JsonProperty(JSON_PROPERTY_LAST_RECONCILE_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLastReconcileDate(OffsetDateTime lastReconcileDate) {
this.lastReconcileDate = lastReconcileDate;
}
public DeletedSubscription lastReleasedAt(OffsetDateTime lastReleasedAt) {
this.lastReleasedAt = lastReleasedAt;
return this;
}
/**
* Last time status was set to Released for this cluster/subscription in Unix time
* @return lastReleasedAt
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Last time status was set to Released for this cluster/subscription in Unix time")
@JsonProperty(JSON_PROPERTY_LAST_RELEASED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getLastReleasedAt() {
return lastReleasedAt;
}
@JsonProperty(JSON_PROPERTY_LAST_RELEASED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLastReleasedAt(OffsetDateTime lastReleasedAt) {
this.lastReleasedAt = lastReleasedAt;
}
public DeletedSubscription lastTelemetryDate(OffsetDateTime lastTelemetryDate) {
this.lastTelemetryDate = lastTelemetryDate;
return this;
}
/**
* Last telemetry authorization request for this cluster/subscription in Unix time
* @return lastTelemetryDate
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Last telemetry authorization request for this cluster/subscription in Unix time")
@JsonProperty(JSON_PROPERTY_LAST_TELEMETRY_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getLastTelemetryDate() {
return lastTelemetryDate;
}
@JsonProperty(JSON_PROPERTY_LAST_TELEMETRY_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLastTelemetryDate(OffsetDateTime lastTelemetryDate) {
this.lastTelemetryDate = lastTelemetryDate;
}
public DeletedSubscription managed(Boolean managed) {
this.managed = managed;
return this;
}
/**
* Get managed
* @return managed
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_MANAGED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getManaged() {
return managed;
}
@JsonProperty(JSON_PROPERTY_MANAGED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setManaged(Boolean managed) {
this.managed = managed;
}
public DeletedSubscription 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 DeletedSubscription 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 DeletedSubscription productBundle(ProductBundleEnum productBundle) {
this.productBundle = productBundle;
return this;
}
/**
* Get productBundle
* @return productBundle
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PRODUCT_BUNDLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ProductBundleEnum getProductBundle() {
return productBundle;
}
@JsonProperty(JSON_PROPERTY_PRODUCT_BUNDLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProductBundle(ProductBundleEnum productBundle) {
this.productBundle = productBundle;
}
public DeletedSubscription provenance(String provenance) {
this.provenance = provenance;
return this;
}
/**
* Get provenance
* @return provenance
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PROVENANCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getProvenance() {
return provenance;
}
@JsonProperty(JSON_PROPERTY_PROVENANCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProvenance(String provenance) {
this.provenance = provenance;
}
public DeletedSubscription regionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* Get regionId
* @return regionId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_REGION_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRegionId() {
return regionId;
}
@JsonProperty(JSON_PROPERTY_REGION_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRegionId(String regionId) {
this.regionId = regionId;
}
public DeletedSubscription released(Boolean released) {
this.released = released;
return this;
}
/**
* Get released
* @return released
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_RELEASED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getReleased() {
return released;
}
@JsonProperty(JSON_PROPERTY_RELEASED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setReleased(Boolean released) {
this.released = released;
}
public DeletedSubscription serviceLevel(ServiceLevelEnum serviceLevel) {
this.serviceLevel = serviceLevel;
return this;
}
/**
* Get serviceLevel
* @return serviceLevel
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SERVICE_LEVEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ServiceLevelEnum getServiceLevel() {
return serviceLevel;
}
@JsonProperty(JSON_PROPERTY_SERVICE_LEVEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setServiceLevel(ServiceLevelEnum serviceLevel) {
this.serviceLevel = serviceLevel;
}
public DeletedSubscription socketTotal(Integer socketTotal) {
this.socketTotal = socketTotal;
return this;
}
/**
* Get socketTotal
* @return socketTotal
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SOCKET_TOTAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getSocketTotal() {
return socketTotal;
}
@JsonProperty(JSON_PROPERTY_SOCKET_TOTAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSocketTotal(Integer socketTotal) {
this.socketTotal = socketTotal;
}
public DeletedSubscription status(String status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getStatus() {
return status;
}
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStatus(String status) {
this.status = status;
}
public DeletedSubscription supportLevel(SupportLevelEnum supportLevel) {
this.supportLevel = supportLevel;
return this;
}
/**
* Get supportLevel
* @return supportLevel
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SUPPORT_LEVEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public SupportLevelEnum getSupportLevel() {
return supportLevel;
}
@JsonProperty(JSON_PROPERTY_SUPPORT_LEVEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSupportLevel(SupportLevelEnum supportLevel) {
this.supportLevel = supportLevel;
}
public DeletedSubscription systemUnits(SystemUnitsEnum systemUnits) {
this.systemUnits = systemUnits;
return this;
}
/**
* Get systemUnits
* @return systemUnits
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SYSTEM_UNITS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public SystemUnitsEnum getSystemUnits() {
return systemUnits;
}
@JsonProperty(JSON_PROPERTY_SYSTEM_UNITS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSystemUnits(SystemUnitsEnum systemUnits) {
this.systemUnits = systemUnits;
}
public DeletedSubscription trialEndDate(OffsetDateTime trialEndDate) {
this.trialEndDate = trialEndDate;
return this;
}
/**
* If the subscription is a trial, date the trial ends
* @return trialEndDate
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "If the subscription is a trial, date the trial ends")
@JsonProperty(JSON_PROPERTY_TRIAL_END_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getTrialEndDate() {
return trialEndDate;
}
@JsonProperty(JSON_PROPERTY_TRIAL_END_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTrialEndDate(OffsetDateTime trialEndDate) {
this.trialEndDate = trialEndDate;
}
public DeletedSubscription usage(UsageEnum usage) {
this.usage = usage;
return this;
}
/**
* Get usage
* @return usage
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_USAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public UsageEnum getUsage() {
return usage;
}
@JsonProperty(JSON_PROPERTY_USAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setUsage(UsageEnum usage) {
this.usage = usage;
}
public DeletedSubscription 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 DeletedSubscription metrics(String metrics) {
this.metrics = metrics;
return this;
}
/**
* Get metrics
* @return metrics
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_METRICS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getMetrics() {
return metrics;
}
@JsonProperty(JSON_PROPERTY_METRICS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMetrics(String metrics) {
this.metrics = metrics;
}
public DeletedSubscription queryTimestamp(OffsetDateTime queryTimestamp) {
this.queryTimestamp = queryTimestamp;
return this;
}
/**
* Get queryTimestamp
* @return queryTimestamp
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_QUERY_TIMESTAMP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getQueryTimestamp() {
return queryTimestamp;
}
@JsonProperty(JSON_PROPERTY_QUERY_TIMESTAMP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setQueryTimestamp(OffsetDateTime queryTimestamp) {
this.queryTimestamp = queryTimestamp;
}
/**
* Return true if this DeletedSubscription object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DeletedSubscription deletedSubscription = (DeletedSubscription) o;
return Objects.equals(this.href, deletedSubscription.href) &&
Objects.equals(this.id, deletedSubscription.id) &&
Objects.equals(this.kind, deletedSubscription.kind) &&
Objects.equals(this.billingExpirationDate, deletedSubscription.billingExpirationDate) &&
Objects.equals(this.billingMarketplaceAccount, deletedSubscription.billingMarketplaceAccount) &&
Objects.equals(this.cloudAccountId, deletedSubscription.cloudAccountId) &&
Objects.equals(this.cloudProviderId, deletedSubscription.cloudProviderId) &&
Objects.equals(this.clusterBillingModel, deletedSubscription.clusterBillingModel) &&
Objects.equals(this.clusterId, deletedSubscription.clusterId) &&
Objects.equals(this.consoleUrl, deletedSubscription.consoleUrl) &&
Objects.equals(this.consumerUuid, deletedSubscription.consumerUuid) &&
Objects.equals(this.cpuTotal, deletedSubscription.cpuTotal) &&
Objects.equals(this.creatorId, deletedSubscription.creatorId) &&
Objects.equals(this.displayName, deletedSubscription.displayName) &&
Objects.equals(this.externalClusterId, deletedSubscription.externalClusterId) &&
Objects.equals(this.lastReconcileDate, deletedSubscription.lastReconcileDate) &&
Objects.equals(this.lastReleasedAt, deletedSubscription.lastReleasedAt) &&
Objects.equals(this.lastTelemetryDate, deletedSubscription.lastTelemetryDate) &&
Objects.equals(this.managed, deletedSubscription.managed) &&
Objects.equals(this.organizationId, deletedSubscription.organizationId) &&
Objects.equals(this.planId, deletedSubscription.planId) &&
Objects.equals(this.productBundle, deletedSubscription.productBundle) &&
Objects.equals(this.provenance, deletedSubscription.provenance) &&
Objects.equals(this.regionId, deletedSubscription.regionId) &&
Objects.equals(this.released, deletedSubscription.released) &&
Objects.equals(this.serviceLevel, deletedSubscription.serviceLevel) &&
Objects.equals(this.socketTotal, deletedSubscription.socketTotal) &&
Objects.equals(this.status, deletedSubscription.status) &&
Objects.equals(this.supportLevel, deletedSubscription.supportLevel) &&
Objects.equals(this.systemUnits, deletedSubscription.systemUnits) &&
Objects.equals(this.trialEndDate, deletedSubscription.trialEndDate) &&
Objects.equals(this.usage, deletedSubscription.usage) &&
Objects.equals(this.createdAt, deletedSubscription.createdAt) &&
Objects.equals(this.metrics, deletedSubscription.metrics) &&
Objects.equals(this.queryTimestamp, deletedSubscription.queryTimestamp);
}
@Override
public int hashCode() {
return Objects.hash(href, id, kind, billingExpirationDate, billingMarketplaceAccount, cloudAccountId, cloudProviderId, clusterBillingModel, clusterId, consoleUrl, consumerUuid, cpuTotal, creatorId, displayName, externalClusterId, lastReconcileDate, lastReleasedAt, lastTelemetryDate, managed, organizationId, planId, productBundle, provenance, regionId, released, serviceLevel, socketTotal, status, supportLevel, systemUnits, trialEndDate, usage, createdAt, metrics, queryTimestamp);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DeletedSubscription {\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(" billingExpirationDate: ").append(toIndentedString(billingExpirationDate)).append("\n");
sb.append(" billingMarketplaceAccount: ").append(toIndentedString(billingMarketplaceAccount)).append("\n");
sb.append(" cloudAccountId: ").append(toIndentedString(cloudAccountId)).append("\n");
sb.append(" cloudProviderId: ").append(toIndentedString(cloudProviderId)).append("\n");
sb.append(" clusterBillingModel: ").append(toIndentedString(clusterBillingModel)).append("\n");
sb.append(" clusterId: ").append(toIndentedString(clusterId)).append("\n");
sb.append(" consoleUrl: ").append(toIndentedString(consoleUrl)).append("\n");
sb.append(" consumerUuid: ").append(toIndentedString(consumerUuid)).append("\n");
sb.append(" cpuTotal: ").append(toIndentedString(cpuTotal)).append("\n");
sb.append(" creatorId: ").append(toIndentedString(creatorId)).append("\n");
sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n");
sb.append(" externalClusterId: ").append(toIndentedString(externalClusterId)).append("\n");
sb.append(" lastReconcileDate: ").append(toIndentedString(lastReconcileDate)).append("\n");
sb.append(" lastReleasedAt: ").append(toIndentedString(lastReleasedAt)).append("\n");
sb.append(" lastTelemetryDate: ").append(toIndentedString(lastTelemetryDate)).append("\n");
sb.append(" managed: ").append(toIndentedString(managed)).append("\n");
sb.append(" organizationId: ").append(toIndentedString(organizationId)).append("\n");
sb.append(" planId: ").append(toIndentedString(planId)).append("\n");
sb.append(" productBundle: ").append(toIndentedString(productBundle)).append("\n");
sb.append(" provenance: ").append(toIndentedString(provenance)).append("\n");
sb.append(" regionId: ").append(toIndentedString(regionId)).append("\n");
sb.append(" released: ").append(toIndentedString(released)).append("\n");
sb.append(" serviceLevel: ").append(toIndentedString(serviceLevel)).append("\n");
sb.append(" socketTotal: ").append(toIndentedString(socketTotal)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" supportLevel: ").append(toIndentedString(supportLevel)).append("\n");
sb.append(" systemUnits: ").append(toIndentedString(systemUnits)).append("\n");
sb.append(" trialEndDate: ").append(toIndentedString(trialEndDate)).append("\n");
sb.append(" usage: ").append(toIndentedString(usage)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n");
sb.append(" queryTimestamp: ").append(toIndentedString(queryTimestamp)).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 ");
}
}