Package com.oracle.bmc.ccdoffers.model
Enum BundleSku.QuantityRule
- java.lang.Object
-
- java.lang.Enum<BundleSku.QuantityRule>
-
- com.oracle.bmc.ccdoffers.model.BundleSku.QuantityRule
-
- All Implemented Interfaces:
BmcEnum,Serializable,Comparable<BundleSku.QuantityRule>
- Enclosing class:
- BundleSku
public static enum BundleSku.QuantityRule extends Enum<BundleSku.QuantityRule> implements BmcEnum
Determines how CCD resolves the bundled SKU quantity.FIXED_RATIO quantities are derived from the primary quantity using ratio. CUSTOMER_SELECTED quantities are provided by the customer within the configured minimum and maximum.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CustomerSelectedFixedRatioUnknownEnumValueThis value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BundleSku.QuantityRulecreate(String key)StringgetValue()static BundleSku.QuantityRulevalueOf(String name)Returns the enum constant of this type with the specified name.static BundleSku.QuantityRule[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FixedRatio
public static final BundleSku.QuantityRule FixedRatio
-
CustomerSelected
public static final BundleSku.QuantityRule CustomerSelected
-
UnknownEnumValue
public static final BundleSku.QuantityRule UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
-
-
Method Detail
-
values
public static BundleSku.QuantityRule[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BundleSku.QuantityRule c : BundleSku.QuantityRule.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BundleSku.QuantityRule valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
create
public static BundleSku.QuantityRule create(String key)
-
-