@Generated(value="OracleSDKGenerator", comments="API Version: 20211201") public final class Subscription extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Subscription information for compartmentId. Only root compartments are allowed.
Note: Objects should always be created or deserialized using the Subscription.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 the Subscription.Builder
, which maintain a
set of all explicitly set fields called Subscription.Builder.__explicitlySet__
. The hashCode()
and equals(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
).
Modifier and Type | Class and Description |
---|---|
static class |
Subscription.Builder |
static class |
Subscription.LifecycleDetails
Subscription resource intermediate states.
|
static class |
Subscription.LifecycleState
Lifecycle state of the subscription.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
Subscription(String id,
String classicSubscriptionId,
String serviceName,
Subscription.LifecycleState lifecycleState,
Subscription.LifecycleDetails lifecycleDetails,
List<SubscriptionSku> skus)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Subscription.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getClassicSubscriptionId()
Subscription id.
|
String |
getId()
OCID of the subscription details for particular root compartment or tenancy.
|
Subscription.LifecycleDetails |
getLifecycleDetails()
Subscription resource intermediate states.
|
Subscription.LifecycleState |
getLifecycleState()
Lifecycle state of the subscription.
|
String |
getServiceName()
The type of subscription, such as ‘CLOUDCM’/‘SAAS’/‘CRM’, etc.
|
List<SubscriptionSku> |
getSkus()
Stock keeping unit.
|
int |
hashCode() |
Subscription.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"id","classicSubscriptionId","serviceName","lifecycleState","lifecycleDetails","skus"}) public Subscription(String id, String classicSubscriptionId, String serviceName, Subscription.LifecycleState lifecycleState, Subscription.LifecycleDetails lifecycleDetails, List<SubscriptionSku> skus)
public static Subscription.Builder builder()
Create a new builder.
public Subscription.Builder toBuilder()
public String getId()
OCID of the subscription details for particular root compartment or tenancy.
public String getClassicSubscriptionId()
Subscription id.
public String getServiceName()
The type of subscription, such as ‘CLOUDCM’/‘SAAS’/‘CRM’, etc.
public Subscription.LifecycleState getLifecycleState()
Lifecycle state of the subscription.
public Subscription.LifecycleDetails getLifecycleDetails()
Subscription resource intermediate states.
public List<SubscriptionSku> getSkus()
Stock keeping unit.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.