Package com.oracle.bmc.ccdoffers.model
Class FixedRatioBundleSku
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.ccdoffers.model.BundleSku
-
- com.oracle.bmc.ccdoffers.model.FixedRatioBundleSku
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20240601") public final class FixedRatioBundleSku extends BundleSkuA bundle SKU whose quantity is derived from the primary SKU quantity using a fixed ratio.
Note: Objects should always be created or deserialized using theFixedRatioBundleSku.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 theFixedRatioBundleSku.Builder, which maintain a set of all explicitly set fields calledFixedRatioBundleSku.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 classFixedRatioBundleSku.Builder-
Nested classes/interfaces inherited from class com.oracle.bmc.ccdoffers.model.BundleSku
BundleSku.QuantityRule
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FixedRatioBundleSku.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetRatio()The primary-to-bundled SKU quantity ratio.inthashCode()FixedRatioBundleSku.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.-
Methods inherited from class com.oracle.bmc.ccdoffers.model.BundleSku
getCurrencyCode, getListPrice, getSku, getSkuDisplayName, getSkuMetric
-
-
-
-
Method Detail
-
builder
public static FixedRatioBundleSku.Builder builder()
Create a new builder.
-
toBuilder
public FixedRatioBundleSku.Builder toBuilder()
-
getRatio
public String getRatio()
The primary-to-bundled SKU quantity ratio.- Returns:
- the value
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-