Interface CreditCode.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CreditCode.Builder,,CreditCode> SdkBuilder<CreditCode.Builder,,CreditCode> SdkPojo
- Enclosing class:
CreditCode
@Mutable
@NotThreadSafe
public static interface CreditCode.Builder
extends SdkPojo, CopyableBuilder<CreditCode.Builder,CreditCode>
-
Method Summary
Modifier and TypeMethodDescriptionawsAccountId(String awsAccountId) The AWS account ID that the credit code is associated with or can be applied to.awsCreditCode(String awsCreditCode) The actual credit code string that can be redeemed in the AWS billing console.The timestamp when the credit code expires and can no longer be redeemed.The timestamp when the credit code was issued.The current status of the credit code (e.g., active, redeemed, expired).status(BenefitAllocationStatus status) The current status of the credit code (e.g., active, redeemed, expired).default CreditCode.Buildervalue(Consumer<MonetaryValue.Builder> value) The monetary value of the credit code.value(MonetaryValue value) The monetary value of the credit code.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
awsAccountId
The AWS account ID that the credit code is associated with or can be applied to.
- Parameters:
awsAccountId- The AWS account ID that the credit code is associated with or can be applied to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
The monetary value of the credit code.
- Parameters:
value- The monetary value of the credit code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
The monetary value of the credit code.
This is a convenience method that creates an instance of theMonetaryValue.Builderavoiding the need to create one manually viaMonetaryValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovalue(MonetaryValue).- Parameters:
value- a consumer that will call methods onMonetaryValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
awsCreditCode
The actual credit code string that can be redeemed in the AWS billing console.
- Parameters:
awsCreditCode- The actual credit code string that can be redeemed in the AWS billing console.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The current status of the credit code (e.g., active, redeemed, expired).
- Parameters:
status- The current status of the credit code (e.g., active, redeemed, expired).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the credit code (e.g., active, redeemed, expired).
- Parameters:
status- The current status of the credit code (e.g., active, redeemed, expired).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
issuedAt
The timestamp when the credit code was issued.
- Parameters:
issuedAt- The timestamp when the credit code was issued.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expiresAt
The timestamp when the credit code expires and can no longer be redeemed.
- Parameters:
expiresAt- The timestamp when the credit code expires and can no longer be redeemed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-