Class SubscriptionDetails


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20190111")
    public final class SubscriptionDetails
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    Commitment summary for a subscription.
    Note: Objects should always be created or deserialized using the SubscriptionDetails.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 SubscriptionDetails.Builder, which maintain a set of all explicitly set fields called SubscriptionDetails.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).
    • 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

      • 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:
        toString in class com.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:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel