Class SecondarySkus


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20240601")
    public final class SecondarySkus
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    A secondary SKU associated with a CCD commitment.

    Its quantity behavior is defined by the corresponding bundled SKU on the CCD offer.
    Note: Objects should always be created or deserialized using the SecondarySkus.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 SecondarySkus.Builder, which maintain a set of all explicitly set fields called SecondarySkus.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).

    • Method Detail

      • getSku

        public String getSku()
        The secondary SKU part number (prefaced with “B”).

        For example, the “E4 MEMORY” SKU will be the secondary SKU with the main “E4 OCPUs” SKU. Must also be the same as CcdOffers’s bundleSkus sku value.

        Returns:
        the value
      • getSkuDisplayName

        public String getSkuDisplayName()
        The canonical SKU display name derived from the associated offer.

        This property remains accepted in create and update requests for compatibility, but CCD uses the offer-derived value. Avoid entering confidential information.

        Returns:
        the value
      • getSkuMetric

        public String getSkuMetric()
        The canonical billing metric derived from the associated offer.

        This property remains accepted in create and update requests for compatibility, but CCD uses the offer-derived value.

        Returns:
        the value
      • getQuantity

        public Long getQuantity()
        The resolved hourly commitment quantity for this secondary SKU.

        In create or update requests, this property is required when the corresponding offer component uses CUSTOMER_SELECTED, and the value must be within the offer component’s minimum and maximum. For FLEX offers with CUSTOMER_SELECTED, this quantity must equal the offer component’s minQuantity and, if defined, maxQuantity. For FIXED_RATIO, this property may be omitted because CCD derives it from the primary quantity and the offer-defined ratio. If an existing client supplies a quantity for FIXED_RATIO, the offer-defined ratio is authoritative.

        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