Interface BatchCreateBillScenarioCommitmentModificationEntry.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<BatchCreateBillScenarioCommitmentModificationEntry.Builder,BatchCreateBillScenarioCommitmentModificationEntry>,SdkBuilder<BatchCreateBillScenarioCommitmentModificationEntry.Builder,BatchCreateBillScenarioCommitmentModificationEntry>,SdkPojo
- Enclosing class:
- BatchCreateBillScenarioCommitmentModificationEntry
public static interface BatchCreateBillScenarioCommitmentModificationEntry.Builder extends SdkPojo, CopyableBuilder<BatchCreateBillScenarioCommitmentModificationEntry.Builder,BatchCreateBillScenarioCommitmentModificationEntry>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default BatchCreateBillScenarioCommitmentModificationEntry.BuildercommitmentAction(Consumer<BillScenarioCommitmentModificationAction.Builder> commitmentAction)The specific commitment action to be taken (e.g., adding a Reserved Instance or Savings Plan).BatchCreateBillScenarioCommitmentModificationEntry.BuildercommitmentAction(BillScenarioCommitmentModificationAction commitmentAction)The specific commitment action to be taken (e.g., adding a Reserved Instance or Savings Plan).BatchCreateBillScenarioCommitmentModificationEntry.Buildergroup(String group)An optional group identifier for the commitment modification.BatchCreateBillScenarioCommitmentModificationEntry.Builderkey(String key)A unique identifier for this entry in the batch operation.BatchCreateBillScenarioCommitmentModificationEntry.BuilderusageAccountId(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 Detail
-
key
BatchCreateBillScenarioCommitmentModificationEntry.Builder key(String 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
BatchCreateBillScenarioCommitmentModificationEntry.Builder group(String 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
BatchCreateBillScenarioCommitmentModificationEntry.Builder usageAccountId(String 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.Builderavoiding the need to create one manually viaBillScenarioCommitmentModificationAction.builder().When the
Consumercompletes,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:
commitmentAction(BillScenarioCommitmentModificationAction)
-
-