Class SecondarySkus
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.ccdoffers.model.SecondarySkus
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20240601") public final class SecondarySkus extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelA 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 theSecondarySkus.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 theSecondarySkus.Builder, which maintain a set of all explicitly set fields calledSecondarySkus.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 classSecondarySkus.Builder
-
Constructor Summary
Constructors Constructor Description SecondarySkus(String sku, String skuDisplayName, String skuMetric, Long quantity)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SecondarySkus.Builderbuilder()Create a new builder.booleanequals(Object o)LonggetQuantity()The resolved hourly commitment quantity for this secondary SKU.StringgetSku()The secondary SKU part number (prefaced with “B”).StringgetSkuDisplayName()The canonical SKU display name derived from the associated offer.StringgetSkuMetric()The canonical billing metric derived from the associated offer.inthashCode()SecondarySkus.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
SecondarySkus
@Deprecated @ConstructorProperties({"sku","skuDisplayName","skuMetric","quantity"}) public SecondarySkus(String sku, String skuDisplayName, String skuMetric, Long quantity)
Deprecated.
-
-
Method Detail
-
builder
public static SecondarySkus.Builder builder()
Create a new builder.
-
toBuilder
public SecondarySkus.Builder toBuilder()
-
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:
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
-
-