Class SubscriptionDetails
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.onesubscription.model.SubscriptionDetails
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20190111") public final class SubscriptionDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelCommitment summary for a subscription.
Note: Objects should always be created or deserialized using theSubscriptionDetails.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 theSubscriptionDetails.Builder, which maintain a set of all explicitly set fields calledSubscriptionDetails.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 classSubscriptionDetails.Builder
-
Constructor Summary
Constructors Constructor Description SubscriptionDetails(String contractId, String subscriptionId, String customerName, String currencyCode, Date timeCommitmentStart, Date timeCommitmentEnd, Double amountCommitment, Double amountAuthorized, Double amountProvisioned, Double amountConsumed, Double amountAvailable, List<CommitmentPeriod> commitmentPeriods, List<ProductAndService> productsAndServices)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubscriptionDetails.Builderbuilder()Create a new builder.booleanequals(Object o)DoublegetAmountAuthorized()Amount authorized for the subscription.DoublegetAmountAvailable()Amount remaining and available for the subscription.DoublegetAmountCommitment()Total committed amount for the subscription.DoublegetAmountConsumed()Amount consumed from the subscription commitment.DoublegetAmountProvisioned()Amount provisioned for the subscription.List<CommitmentPeriod>getCommitmentPeriods()Commitment periods associated with the subscription.StringgetContractId()Contract identifier.StringgetCurrencyCode()The currency of the subscription, in the format specified by ISO-4217.StringgetCustomerName()Sold-to customer name.List<ProductAndService>getProductsAndServices()Products and services that draw down from the subscription.StringgetSubscriptionId()Subscription identifier.DategetTimeCommitmentEnd()End date and time of the subscription commitment.DategetTimeCommitmentStart()Start date and time of the subscription commitment.inthashCode()SubscriptionDetails.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
SubscriptionDetails
@Deprecated @ConstructorProperties({"contractId","subscriptionId","customerName","currencyCode","timeCommitmentStart","timeCommitmentEnd","amountCommitment","amountAuthorized","amountProvisioned","amountConsumed","amountAvailable","commitmentPeriods","productsAndServices"}) public SubscriptionDetails(String contractId, String subscriptionId, String customerName, String currencyCode, Date timeCommitmentStart, Date timeCommitmentEnd, Double amountCommitment, Double amountAuthorized, Double amountProvisioned, Double amountConsumed, Double amountAvailable, List<CommitmentPeriod> commitmentPeriods, List<ProductAndService> productsAndServices)
Deprecated.
-
-
Method Detail
-
builder
public static SubscriptionDetails.Builder builder()
Create a new builder.
-
toBuilder
public SubscriptionDetails.Builder toBuilder()
-
getContractId
public String getContractId()
Contract identifier.- Returns:
- the value
-
getSubscriptionId
public String getSubscriptionId()
Subscription identifier.- Returns:
- the value
-
getCustomerName
public String getCustomerName()
Sold-to customer name.- Returns:
- the value
-
getCurrencyCode
public String getCurrencyCode()
The currency of the subscription, in the format specified by ISO-4217.- Returns:
- the value
-
getTimeCommitmentStart
public Date getTimeCommitmentStart()
Start date and time of the subscription commitment.- Returns:
- the value
-
getTimeCommitmentEnd
public Date getTimeCommitmentEnd()
End date and time of the subscription commitment.- Returns:
- the value
-
getAmountCommitment
public Double getAmountCommitment()
Total committed amount for the subscription.- Returns:
- the value
-
getAmountAuthorized
public Double getAmountAuthorized()
Amount authorized for the subscription.- Returns:
- the value
-
getAmountProvisioned
public Double getAmountProvisioned()
Amount provisioned for the subscription.- Returns:
- the value
-
getAmountConsumed
public Double getAmountConsumed()
Amount consumed from the subscription commitment.- Returns:
- the value
-
getAmountAvailable
public Double getAmountAvailable()
Amount remaining and available for the subscription.- Returns:
- the value
-
getCommitmentPeriods
public List<CommitmentPeriod> getCommitmentPeriods()
Commitment periods associated with the subscription.- Returns:
- the value
-
getProductsAndServices
public List<ProductAndService> getProductsAndServices()
Products and services that draw down from the subscription.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-