All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.bf2.ffm.ams.client.models.Subscription Maven / Gradle / Ivy

There is a newer version: 0.0.2
Show newest version
/*
 * 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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy