Class ClassicSubscription
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.tenantmanagercontrolplane.model.Subscription
-
- com.oracle.bmc.tenantmanagercontrolplane.model.ClassicSubscription
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20230401") public final class ClassicSubscription extends Subscription
Subscription information for the compartmentId.Only root compartments are allowed.
Note: Objects should always be created or deserialized using theClassicSubscription.Builder
. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theClassicSubscription.Builder
, which maintain a set of all explicitly set fields calledClassicSubscription.Builder.__explicitlySet__
. ThehashCode()
andequals(Object)
methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClassicSubscription.Builder
-
Nested classes/interfaces inherited from class com.oracle.bmc.tenantmanagercontrolplane.model.Subscription
Subscription.EntityVersion
-
-
Constructor Summary
Constructors Constructor Description ClassicSubscription(String id, String compartmentId, String serviceName, Date timeCreated, Date timeUpdated, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, String classicSubscriptionId, Boolean isClassicSubscription, String paymentModel, String regionAssignment, ClassicSubscriptionLifecycleState lifecycleState, List<SubscriptionSku> skus, String programType, String customerCountryCode, String cloudAmountCurrency, String csiNumber, String subscriptionTier, Boolean isGovernmentSubscription, List<Promotion> promotion, String purchaseEntitlementId, Date startDate, Date endDate, List<String> regionAssignments)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClassicSubscription.Builder
builder()
Create a new builder.boolean
equals(Object o)
String
getClassicSubscriptionId()
Classic subscription ID.String
getCloudAmountCurrency()
The currency code for the customer associated with the subscription.String
getCsiNumber()
Customer service identifier for the customer associated with the subscription.String
getCustomerCountryCode()
The country code for the customer associated with the subscription.Date
getEndDate()
Subscription end time.Boolean
getIsClassicSubscription()
Specifies whether or not the subscription is from classic systems.Boolean
getIsGovernmentSubscription()
Specifies whether or not the subscription is a government subscription.ClassicSubscriptionLifecycleState
getLifecycleState()
Lifecycle state of the subscription.String
getPaymentModel()
The pay model of the subscription, such as ‘Pay as you go’ or ‘Monthly’.String
getProgramType()
Specifies any program that is associated with the subscription.List<Promotion>
getPromotion()
List of promotions related to the subscription.String
getPurchaseEntitlementId()
Purchase entitlement ID associated with the subscription.String
getRegionAssignment()
Region for the subscription.List<String>
getRegionAssignments()
This list will contain up to 5 regions where the subscription has a physical presenceList<SubscriptionSku>
getSkus()
List of SKUs linked to this subscription.Date
getStartDate()
Subscription start time.String
getSubscriptionTier()
Tier for the subscription, whether a free promotion subscription or a paid subscription.int
hashCode()
ClassicSubscription.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.-
Methods inherited from class com.oracle.bmc.tenantmanagercontrolplane.model.Subscription
getCompartmentId, getDefinedTags, getFreeformTags, getId, getServiceName, getTimeCreated, getTimeUpdated
-
-
-
-
Constructor Detail
-
ClassicSubscription
@Deprecated public ClassicSubscription(String id, String compartmentId, String serviceName, Date timeCreated, Date timeUpdated, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, String classicSubscriptionId, Boolean isClassicSubscription, String paymentModel, String regionAssignment, ClassicSubscriptionLifecycleState lifecycleState, List<SubscriptionSku> skus, String programType, String customerCountryCode, String cloudAmountCurrency, String csiNumber, String subscriptionTier, Boolean isGovernmentSubscription, List<Promotion> promotion, String purchaseEntitlementId, Date startDate, Date endDate, List<String> regionAssignments)
Deprecated.
-
-
Method Detail
-
builder
public static ClassicSubscription.Builder builder()
Create a new builder.
-
toBuilder
public ClassicSubscription.Builder toBuilder()
-
getClassicSubscriptionId
public String getClassicSubscriptionId()
Classic subscription ID.- Returns:
- the value
-
getIsClassicSubscription
public Boolean getIsClassicSubscription()
Specifies whether or not the subscription is from classic systems.- Returns:
- the value
-
getPaymentModel
public String getPaymentModel()
The pay model of the subscription, such as ‘Pay as you go’ or ‘Monthly’.- Returns:
- the value
-
getRegionAssignment
public String getRegionAssignment()
Region for the subscription.- Returns:
- the value
-
getLifecycleState
public ClassicSubscriptionLifecycleState getLifecycleState()
Lifecycle state of the subscription.- Returns:
- the value
-
getSkus
public List<SubscriptionSku> getSkus()
List of SKUs linked to this subscription.- Returns:
- the value
-
getProgramType
public String getProgramType()
Specifies any program that is associated with the subscription.- Returns:
- the value
-
getCustomerCountryCode
public String getCustomerCountryCode()
The country code for the customer associated with the subscription.- Returns:
- the value
-
getCloudAmountCurrency
public String getCloudAmountCurrency()
The currency code for the customer associated with the subscription.- Returns:
- the value
-
getCsiNumber
public String getCsiNumber()
Customer service identifier for the customer associated with the subscription.- Returns:
- the value
-
getSubscriptionTier
public String getSubscriptionTier()
Tier for the subscription, whether a free promotion subscription or a paid subscription.- Returns:
- the value
-
getIsGovernmentSubscription
public Boolean getIsGovernmentSubscription()
Specifies whether or not the subscription is a government subscription.- Returns:
- the value
-
getPromotion
public List<Promotion> getPromotion()
List of promotions related to the subscription.- Returns:
- the value
-
getPurchaseEntitlementId
public String getPurchaseEntitlementId()
Purchase entitlement ID associated with the subscription.- Returns:
- the value
-
getStartDate
public Date getStartDate()
Subscription start time.- Returns:
- the value
-
getEndDate
public Date getEndDate()
Subscription end time.- Returns:
- the value
-
getRegionAssignments
public List<String> getRegionAssignments()
This list will contain up to 5 regions where the subscription has a physical presence- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classSubscription
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toString
in classSubscription
- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classSubscription
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classSubscription
-
-