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.Subscription 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.Account;
import dev.bf2.ffm.ams.client.models.AccountReference;
import dev.bf2.ffm.ams.client.models.Capability;
import dev.bf2.ffm.ams.client.models.Label;
import dev.bf2.ffm.ams.client.models.OneMetric;
import dev.bf2.ffm.ams.client.models.Plan;
import dev.bf2.ffm.ams.client.models.SubscriptionAllOf;
import dev.bf2.ffm.ams.client.models.SubscriptionCommonFields;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Subscription
*/
@JsonPropertyOrder({
Subscription.JSON_PROPERTY_HREF,
Subscription.JSON_PROPERTY_ID,
Subscription.JSON_PROPERTY_KIND,
Subscription.JSON_PROPERTY_BILLING_EXPIRATION_DATE,
Subscription.JSON_PROPERTY_BILLING_MARKETPLACE_ACCOUNT,
Subscription.JSON_PROPERTY_CLOUD_ACCOUNT_ID,
Subscription.JSON_PROPERTY_CLOUD_PROVIDER_ID,
Subscription.JSON_PROPERTY_CLUSTER_BILLING_MODEL,
Subscription.JSON_PROPERTY_CLUSTER_ID,
Subscription.JSON_PROPERTY_CONSOLE_URL,
Subscription.JSON_PROPERTY_CONSUMER_UUID,
Subscription.JSON_PROPERTY_CPU_TOTAL,
Subscription.JSON_PROPERTY_CREATOR_ID,
Subscription.JSON_PROPERTY_DISPLAY_NAME,
Subscription.JSON_PROPERTY_EXTERNAL_CLUSTER_ID,
Subscription.JSON_PROPERTY_LAST_RECONCILE_DATE,
Subscription.JSON_PROPERTY_LAST_RELEASED_AT,
Subscription.JSON_PROPERTY_LAST_TELEMETRY_DATE,
Subscription.JSON_PROPERTY_MANAGED,
Subscription.JSON_PROPERTY_ORGANIZATION_ID,
Subscription.JSON_PROPERTY_PLAN_ID,
Subscription.JSON_PROPERTY_PRODUCT_BUNDLE,
Subscription.JSON_PROPERTY_PROVENANCE,
Subscription.JSON_PROPERTY_REGION_ID,
Subscription.JSON_PROPERTY_RELEASED,
Subscription.JSON_PROPERTY_SERVICE_LEVEL,
Subscription.JSON_PROPERTY_SOCKET_TOTAL,
Subscription.JSON_PROPERTY_STATUS,
Subscription.JSON_PROPERTY_SUPPORT_LEVEL,
Subscription.JSON_PROPERTY_SYSTEM_UNITS,
Subscription.JSON_PROPERTY_TRIAL_END_DATE,
Subscription.JSON_PROPERTY_USAGE,
Subscription.JSON_PROPERTY_CAPABILITIES,
Subscription.JSON_PROPERTY_CREATED_AT,
Subscription.JSON_PROPERTY_CREATOR,
Subscription.JSON_PROPERTY_EVAL_EXPIRATION_DATE,
Subscription.JSON_PROPERTY_LABELS,
Subscription.JSON_PROPERTY_METRICS,
Subscription.JSON_PROPERTY_NOTIFICATION_CONTACTS,
Subscription.JSON_PROPERTY_PLAN,
Subscription.JSON_PROPERTY_UPDATED_AT
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Subscription {
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_CAPABILITIES = "capabilities";
private List capabilities = null;
public static final String JSON_PROPERTY_CREATED_AT = "created_at";
private OffsetDateTime createdAt;
public static final String JSON_PROPERTY_CREATOR = "creator";
private AccountReference creator;
public static final String JSON_PROPERTY_EVAL_EXPIRATION_DATE = "eval_expiration_date";
private OffsetDateTime evalExpirationDate;
public static final String JSON_PROPERTY_LABELS = "labels";
private List labels = null;
public static final String JSON_PROPERTY_METRICS = "metrics";
private List metrics = null;
public static final String JSON_PROPERTY_NOTIFICATION_CONTACTS = "notification_contacts";
private List notificationContacts = null;
public static final String JSON_PROPERTY_PLAN = "plan";
private Plan plan;
public static final String JSON_PROPERTY_UPDATED_AT = "updated_at";
private OffsetDateTime updatedAt;
public Subscription() {
}
public Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription 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 Subscription capabilities(List capabilities) {
this.capabilities = capabilities;
return this;
}
public Subscription addCapabilitiesItem(Capability capabilitiesItem) {
if (this.capabilities == null) {
this.capabilities = new ArrayList<>();
}
this.capabilities.add(capabilitiesItem);
return this;
}
/**
* Get capabilities
* @return capabilities
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CAPABILITIES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getCapabilities() {
return capabilities;
}
@JsonProperty(JSON_PROPERTY_CAPABILITIES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCapabilities(List capabilities) {
this.capabilities = capabilities;
}
public Subscription 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 Subscription creator(AccountReference creator) {
this.creator = creator;
return this;
}
/**
* Get creator
* @return creator
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CREATOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public AccountReference getCreator() {
return creator;
}
@JsonProperty(JSON_PROPERTY_CREATOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCreator(AccountReference creator) {
this.creator = creator;
}
public Subscription evalExpirationDate(OffsetDateTime evalExpirationDate) {
this.evalExpirationDate = evalExpirationDate;
return this;
}
/**
* Calulated as the subscription created date + 60 days
* @return evalExpirationDate
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Calulated as the subscription created date + 60 days")
@JsonProperty(JSON_PROPERTY_EVAL_EXPIRATION_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getEvalExpirationDate() {
return evalExpirationDate;
}
@JsonProperty(JSON_PROPERTY_EVAL_EXPIRATION_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEvalExpirationDate(OffsetDateTime evalExpirationDate) {
this.evalExpirationDate = evalExpirationDate;
}
public Subscription labels(List labels) {
this.labels = labels;
return this;
}
public Subscription addLabelsItem(Label labelsItem) {
if (this.labels == null) {
this.labels = new ArrayList<>();
}
this.labels.add(labelsItem);
return this;
}
/**
* Get labels
* @return labels
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_LABELS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getLabels() {
return labels;
}
@JsonProperty(JSON_PROPERTY_LABELS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLabels(List labels) {
this.labels = labels;
}
public Subscription metrics(List metrics) {
this.metrics = metrics;
return this;
}
public Subscription addMetricsItem(OneMetric metricsItem) {
if (this.metrics == null) {
this.metrics = new ArrayList<>();
}
this.metrics.add(metricsItem);
return this;
}
/**
* Get metrics
* @return metrics
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_METRICS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getMetrics() {
return metrics;
}
@JsonProperty(JSON_PROPERTY_METRICS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMetrics(List metrics) {
this.metrics = metrics;
}
public Subscription notificationContacts(List notificationContacts) {
this.notificationContacts = notificationContacts;
return this;
}
public Subscription addNotificationContactsItem(Account notificationContactsItem) {
if (this.notificationContacts == null) {
this.notificationContacts = new ArrayList<>();
}
this.notificationContacts.add(notificationContactsItem);
return this;
}
/**
* Get notificationContacts
* @return notificationContacts
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NOTIFICATION_CONTACTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getNotificationContacts() {
return notificationContacts;
}
@JsonProperty(JSON_PROPERTY_NOTIFICATION_CONTACTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setNotificationContacts(List notificationContacts) {
this.notificationContacts = notificationContacts;
}
public Subscription plan(Plan plan) {
this.plan = plan;
return this;
}
/**
* Get plan
* @return plan
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PLAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Plan getPlan() {
return plan;
}
@JsonProperty(JSON_PROPERTY_PLAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPlan(Plan plan) {
this.plan = plan;
}
public Subscription 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 Subscription object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Subscription subscription = (Subscription) o;
return Objects.equals(this.href, subscription.href) &&
Objects.equals(this.id, subscription.id) &&
Objects.equals(this.kind, subscription.kind) &&
Objects.equals(this.billingExpirationDate, subscription.billingExpirationDate) &&
Objects.equals(this.billingMarketplaceAccount, subscription.billingMarketplaceAccount) &&
Objects.equals(this.cloudAccountId, subscription.cloudAccountId) &&
Objects.equals(this.cloudProviderId, subscription.cloudProviderId) &&
Objects.equals(this.clusterBillingModel, subscription.clusterBillingModel) &&
Objects.equals(this.clusterId, subscription.clusterId) &&
Objects.equals(this.consoleUrl, subscription.consoleUrl) &&
Objects.equals(this.consumerUuid, subscription.consumerUuid) &&
Objects.equals(this.cpuTotal, subscription.cpuTotal) &&
Objects.equals(this.creatorId, subscription.creatorId) &&
Objects.equals(this.displayName, subscription.displayName) &&
Objects.equals(this.externalClusterId, subscription.externalClusterId) &&
Objects.equals(this.lastReconcileDate, subscription.lastReconcileDate) &&
Objects.equals(this.lastReleasedAt, subscription.lastReleasedAt) &&
Objects.equals(this.lastTelemetryDate, subscription.lastTelemetryDate) &&
Objects.equals(this.managed, subscription.managed) &&
Objects.equals(this.organizationId, subscription.organizationId) &&
Objects.equals(this.planId, subscription.planId) &&
Objects.equals(this.productBundle, subscription.productBundle) &&
Objects.equals(this.provenance, subscription.provenance) &&
Objects.equals(this.regionId, subscription.regionId) &&
Objects.equals(this.released, subscription.released) &&
Objects.equals(this.serviceLevel, subscription.serviceLevel) &&
Objects.equals(this.socketTotal, subscription.socketTotal) &&
Objects.equals(this.status, subscription.status) &&
Objects.equals(this.supportLevel, subscription.supportLevel) &&
Objects.equals(this.systemUnits, subscription.systemUnits) &&
Objects.equals(this.trialEndDate, subscription.trialEndDate) &&
Objects.equals(this.usage, subscription.usage) &&
Objects.equals(this.capabilities, subscription.capabilities) &&
Objects.equals(this.createdAt, subscription.createdAt) &&
Objects.equals(this.creator, subscription.creator) &&
Objects.equals(this.evalExpirationDate, subscription.evalExpirationDate) &&
Objects.equals(this.labels, subscription.labels) &&
Objects.equals(this.metrics, subscription.metrics) &&
Objects.equals(this.notificationContacts, subscription.notificationContacts) &&
Objects.equals(this.plan, subscription.plan) &&
Objects.equals(this.updatedAt, subscription.updatedAt);
}
@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, capabilities, createdAt, creator, evalExpirationDate, labels, metrics, notificationContacts, plan, updatedAt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Subscription {\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(" capabilities: ").append(toIndentedString(capabilities)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" creator: ").append(toIndentedString(creator)).append("\n");
sb.append(" evalExpirationDate: ").append(toIndentedString(evalExpirationDate)).append("\n");
sb.append(" labels: ").append(toIndentedString(labels)).append("\n");
sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n");
sb.append(" notificationContacts: ").append(toIndentedString(notificationContacts)).append("\n");
sb.append(" plan: ").append(toIndentedString(plan)).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 ");
}
}