Interface BatchCreateBillScenarioCommitmentModificationEntry.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<BatchCreateBillScenarioCommitmentModificationEntry.Builder,
,BatchCreateBillScenarioCommitmentModificationEntry> SdkBuilder<BatchCreateBillScenarioCommitmentModificationEntry.Builder,
,BatchCreateBillScenarioCommitmentModificationEntry> SdkPojo
- Enclosing class:
BatchCreateBillScenarioCommitmentModificationEntry
@Mutable
@NotThreadSafe
public static interface BatchCreateBillScenarioCommitmentModificationEntry.Builder
extends SdkPojo, CopyableBuilder<BatchCreateBillScenarioCommitmentModificationEntry.Builder,BatchCreateBillScenarioCommitmentModificationEntry>
-
Method Summary
Modifier and TypeMethodDescriptioncommitmentAction
(Consumer<BillScenarioCommitmentModificationAction.Builder> commitmentAction) The specific commitment action to be taken (e.g., adding a Reserved Instance or Savings Plan).commitmentAction
(BillScenarioCommitmentModificationAction commitmentAction) The specific commitment action to be taken (e.g., adding a Reserved Instance or Savings Plan).An optional group identifier for the commitment modification.A unique identifier for this entry in the batch operation.usageAccountId
(String usageAccountId) The Amazon Web Services account ID to which this commitment will be applied to.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
key
A unique identifier for this entry in the batch operation. This can be any valid string. This key is useful to identify errors associated with any commitment entry as any error is returned with this key.
- Parameters:
key
- A unique identifier for this entry in the batch operation. This can be any valid string. This key is useful to identify errors associated with any commitment entry as any error is returned with this key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
group
An optional group identifier for the commitment modification.
- Parameters:
group
- An optional group identifier for the commitment modification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageAccountId
The Amazon Web Services account ID to which this commitment will be applied to.
- Parameters:
usageAccountId
- The Amazon Web Services account ID to which this commitment will be applied to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commitmentAction
BatchCreateBillScenarioCommitmentModificationEntry.Builder commitmentAction(BillScenarioCommitmentModificationAction commitmentAction) The specific commitment action to be taken (e.g., adding a Reserved Instance or Savings Plan).
- Parameters:
commitmentAction
- The specific commitment action to be taken (e.g., adding a Reserved Instance or Savings Plan).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commitmentAction
default BatchCreateBillScenarioCommitmentModificationEntry.Builder commitmentAction(Consumer<BillScenarioCommitmentModificationAction.Builder> commitmentAction) The specific commitment action to be taken (e.g., adding a Reserved Instance or Savings Plan).
This is a convenience method that creates an instance of theBillScenarioCommitmentModificationAction.Builder
avoiding the need to create one manually viaBillScenarioCommitmentModificationAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocommitmentAction(BillScenarioCommitmentModificationAction)
.- Parameters:
commitmentAction
- a consumer that will call methods onBillScenarioCommitmentModificationAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-