Class BillScenarioCommitmentModificationAction
- java.lang.Object
-
- software.amazon.awssdk.services.bcmpricingcalculator.model.BillScenarioCommitmentModificationAction
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<BillScenarioCommitmentModificationAction.Builder,BillScenarioCommitmentModificationAction>
@Generated("software.amazon.awssdk:codegen") public final class BillScenarioCommitmentModificationAction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BillScenarioCommitmentModificationAction.Builder,BillScenarioCommitmentModificationAction>
Represents an action to modify commitments in a bill scenario.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBillScenarioCommitmentModificationAction.Builderstatic classBillScenarioCommitmentModificationAction.Type
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
addReservedInstanceAction
public final AddReservedInstanceAction addReservedInstanceAction()
Action to add a Reserved Instance to the scenario.
- Returns:
- Action to add a Reserved Instance to the scenario.
-
addSavingsPlanAction
public final AddSavingsPlanAction addSavingsPlanAction()
Action to add a Savings Plan to the scenario.
- Returns:
- Action to add a Savings Plan to the scenario.
-
negateReservedInstanceAction
public final NegateReservedInstanceAction negateReservedInstanceAction()
Action to remove a Reserved Instance from the scenario.
- Returns:
- Action to remove a Reserved Instance from the scenario.
-
negateSavingsPlanAction
public final NegateSavingsPlanAction negateSavingsPlanAction()
Action to remove a Savings Plan from the scenario.
- Returns:
- Action to remove a Savings Plan from the scenario.
-
toBuilder
public BillScenarioCommitmentModificationAction.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<BillScenarioCommitmentModificationAction.Builder,BillScenarioCommitmentModificationAction>
-
builder
public static BillScenarioCommitmentModificationAction.Builder builder()
-
serializableBuilderClass
public static Class<? extends BillScenarioCommitmentModificationAction.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
fromAddReservedInstanceAction
public static BillScenarioCommitmentModificationAction fromAddReservedInstanceAction(AddReservedInstanceAction addReservedInstanceAction)
Create an instance of this class withaddReservedInstanceAction()initialized to the given value.Action to add a Reserved Instance to the scenario.
- Parameters:
addReservedInstanceAction- Action to add a Reserved Instance to the scenario.
-
fromAddReservedInstanceAction
public static BillScenarioCommitmentModificationAction fromAddReservedInstanceAction(Consumer<AddReservedInstanceAction.Builder> addReservedInstanceAction)
Create an instance of this class withaddReservedInstanceAction()initialized to the given value.Action to add a Reserved Instance to the scenario.
- Parameters:
addReservedInstanceAction- Action to add a Reserved Instance to the scenario.
-
fromAddSavingsPlanAction
public static BillScenarioCommitmentModificationAction fromAddSavingsPlanAction(AddSavingsPlanAction addSavingsPlanAction)
Create an instance of this class withaddSavingsPlanAction()initialized to the given value.Action to add a Savings Plan to the scenario.
- Parameters:
addSavingsPlanAction- Action to add a Savings Plan to the scenario.
-
fromAddSavingsPlanAction
public static BillScenarioCommitmentModificationAction fromAddSavingsPlanAction(Consumer<AddSavingsPlanAction.Builder> addSavingsPlanAction)
Create an instance of this class withaddSavingsPlanAction()initialized to the given value.Action to add a Savings Plan to the scenario.
- Parameters:
addSavingsPlanAction- Action to add a Savings Plan to the scenario.
-
fromNegateReservedInstanceAction
public static BillScenarioCommitmentModificationAction fromNegateReservedInstanceAction(NegateReservedInstanceAction negateReservedInstanceAction)
Create an instance of this class withnegateReservedInstanceAction()initialized to the given value.Action to remove a Reserved Instance from the scenario.
- Parameters:
negateReservedInstanceAction- Action to remove a Reserved Instance from the scenario.
-
fromNegateReservedInstanceAction
public static BillScenarioCommitmentModificationAction fromNegateReservedInstanceAction(Consumer<NegateReservedInstanceAction.Builder> negateReservedInstanceAction)
Create an instance of this class withnegateReservedInstanceAction()initialized to the given value.Action to remove a Reserved Instance from the scenario.
- Parameters:
negateReservedInstanceAction- Action to remove a Reserved Instance from the scenario.
-
fromNegateSavingsPlanAction
public static BillScenarioCommitmentModificationAction fromNegateSavingsPlanAction(NegateSavingsPlanAction negateSavingsPlanAction)
Create an instance of this class withnegateSavingsPlanAction()initialized to the given value.Action to remove a Savings Plan from the scenario.
- Parameters:
negateSavingsPlanAction- Action to remove a Savings Plan from the scenario.
-
fromNegateSavingsPlanAction
public static BillScenarioCommitmentModificationAction fromNegateSavingsPlanAction(Consumer<NegateSavingsPlanAction.Builder> negateSavingsPlanAction)
Create an instance of this class withnegateSavingsPlanAction()initialized to the given value.Action to remove a Savings Plan from the scenario.
- Parameters:
negateSavingsPlanAction- Action to remove a Savings Plan from the scenario.
-
type
public BillScenarioCommitmentModificationAction.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beBillScenarioCommitmentModificationAction.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beBillScenarioCommitmentModificationAction.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-