Class ClassicAssignedSubscription
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.tenantmanagercontrolplane.model.AssignedSubscription
- 
- com.oracle.bmc.tenantmanagercontrolplane.model.ClassicAssignedSubscription
 
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20230401") public final class ClassicAssignedSubscription extends AssignedSubscriptionAssigned subscription information.
 Note: Objects should always be created or deserialized using theClassicAssignedSubscription.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 theClassicAssignedSubscription.Builder, which maintain a set of all explicitly set fields calledClassicAssignedSubscription.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 SummaryNested Classes Modifier and Type Class Description static classClassicAssignedSubscription.Builder- 
Nested classes/interfaces inherited from class com.oracle.bmc.tenantmanagercontrolplane.model.AssignedSubscriptionAssignedSubscription.EntityVersion
 
- 
 - 
Constructor SummaryConstructors Constructor Description ClassicAssignedSubscription(String id, String compartmentId, String serviceName, Date timeCreated, Date timeUpdated, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, ClassicSubscriptionLifecycleState lifecycleState, String classicSubscriptionId, Boolean isClassicSubscription, String regionAssignment, List<SubscriptionSku> skus, List<String> orderIds, String programType, String customerCountryCode, String cloudAmountCurrency, String csiNumber, String subscriptionTier, Boolean isGovernmentSubscription, List<Promotion> promotion, String purchaseEntitlementId, Date startDate, Date endDate, ClassicSubscriptionManagedBy managedBy)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClassicAssignedSubscription.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetClassicSubscriptionId()Subscription ID.StringgetCloudAmountCurrency()The currency code for the customer associated with the subscription.StringgetCsiNumber()Customer service identifier for the customer associated with the subscription.StringgetCustomerCountryCode()The country code for the customer associated with the subscription.DategetEndDate()Subscription end time.BooleangetIsClassicSubscription()Specifies whether or not the subscription is legacy.BooleangetIsGovernmentSubscription()Specifies whether or not the subscription is a government subscription.ClassicSubscriptionLifecycleStategetLifecycleState()Lifecycle state of the subscription.ClassicSubscriptionManagedBygetManagedBy()Service or component which is used to provision and manage the subscription.List<String>getOrderIds()List of subscription order OCIDs that contributed to this subscription.StringgetProgramType()Specifies any program that is associated with the subscription.List<Promotion>getPromotion()List of promotions related to the subscription.StringgetPurchaseEntitlementId()Purchase entitlement ID associated with the subscription.StringgetRegionAssignment()Region for the subscription.List<SubscriptionSku>getSkus()List of SKUs linked to the subscription.DategetStartDate()Subscription start time.StringgetSubscriptionTier()Tier for the subscription, whether a free promotion subscription or a paid subscription.inthashCode()ClassicAssignedSubscription.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.- 
Methods inherited from class com.oracle.bmc.tenantmanagercontrolplane.model.AssignedSubscriptiongetCompartmentId, getDefinedTags, getFreeformTags, getId, getServiceName, getTimeCreated, getTimeUpdated
 
- 
 
- 
- 
- 
Constructor Detail- 
ClassicAssignedSubscription@Deprecated public ClassicAssignedSubscription(String id, String compartmentId, String serviceName, Date timeCreated, Date timeUpdated, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, ClassicSubscriptionLifecycleState lifecycleState, String classicSubscriptionId, Boolean isClassicSubscription, String regionAssignment, List<SubscriptionSku> skus, List<String> orderIds, String programType, String customerCountryCode, String cloudAmountCurrency, String csiNumber, String subscriptionTier, Boolean isGovernmentSubscription, List<Promotion> promotion, String purchaseEntitlementId, Date startDate, Date endDate, ClassicSubscriptionManagedBy managedBy) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static ClassicAssignedSubscription.Builder builder() Create a new builder.
 - 
toBuilderpublic ClassicAssignedSubscription.Builder toBuilder() 
 - 
getLifecycleStatepublic ClassicSubscriptionLifecycleState getLifecycleState() Lifecycle state of the subscription.- Returns:
- the value
 
 - 
getClassicSubscriptionIdpublic String getClassicSubscriptionId() Subscription ID.- Returns:
- the value
 
 - 
getIsClassicSubscriptionpublic Boolean getIsClassicSubscription() Specifies whether or not the subscription is legacy.- Returns:
- the value
 
 - 
getRegionAssignmentpublic String getRegionAssignment() Region for the subscription.- Returns:
- the value
 
 - 
getSkuspublic List<SubscriptionSku> getSkus() List of SKUs linked to the subscription.- Returns:
- the value
 
 - 
getOrderIdspublic List<String> getOrderIds() List of subscription order OCIDs that contributed to this subscription.- Returns:
- the value
 
 - 
getProgramTypepublic String getProgramType() Specifies any program that is associated with the subscription.- Returns:
- the value
 
 - 
getCustomerCountryCodepublic String getCustomerCountryCode() The country code for the customer associated with the subscription.- Returns:
- the value
 
 - 
getCloudAmountCurrencypublic String getCloudAmountCurrency() The currency code for the customer associated with the subscription.- Returns:
- the value
 
 - 
getCsiNumberpublic String getCsiNumber() Customer service identifier for the customer associated with the subscription.- Returns:
- the value
 
 - 
getSubscriptionTierpublic String getSubscriptionTier() Tier for the subscription, whether a free promotion subscription or a paid subscription.- Returns:
- the value
 
 - 
getIsGovernmentSubscriptionpublic Boolean getIsGovernmentSubscription() Specifies whether or not the subscription is a government subscription.- Returns:
- the value
 
 - 
getPromotionpublic List<Promotion> getPromotion() List of promotions related to the subscription.- Returns:
- the value
 
 - 
getPurchaseEntitlementIdpublic String getPurchaseEntitlementId() Purchase entitlement ID associated with the subscription.- Returns:
- the value
 
 - 
getStartDatepublic Date getStartDate() Subscription start time.- Returns:
- the value
 
 - 
getEndDatepublic Date getEndDate() Subscription end time.- Returns:
- the value
 
 - 
getManagedBypublic ClassicSubscriptionManagedBy getManagedBy() Service or component which is used to provision and manage the subscription.- Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- AssignedSubscription
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Overrides:
- toStringin class- AssignedSubscription
- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- AssignedSubscription
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- AssignedSubscription
 
 
- 
 
-