Interface CreditData.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CreditData.Builder,,CreditData> SdkBuilder<CreditData.Builder,,CreditData> SdkPojo
- Enclosing class:
CreditData
-
Method Summary
Modifier and TypeMethodDescriptionaccountHasCreditSharingEnabled(Boolean accountHasCreditSharingEnabled) Whether the owning account has account-level credit sharing turned on.The Amazon Web Services account ID that owns the credit.applicableProductNames(String... applicableProductNames) The names of Amazon Web Services services this credit applies to.applicableProductNames(Collection<String> applicableProductNames) The names of Amazon Web Services services this credit applies to.applicationType(String applicationType) When the credit is applied during bill computation.applicationType(ApplicationType applicationType) When the credit is applied during bill computation.costCategoryArn(String costCategoryArn) The Amazon Resource Name (ARN) of the Cost Category controlling the credit's sharing scope.creditConsoleVisibility(String creditConsoleVisibility) The display configuration for the credit in the Amazon Web Services Billing console.The unique identifier for the credit.creditSharingType(String creditSharingType) The sharing configuration for the credit.creditSharingType(CreditSharingType creditSharingType) The sharing configuration for the credit.creditStatus(String creditStatus) Whether the credit participates in billing runs.creditStatus(CreditStatus creditStatus) Whether the credit participates in billing runs.creditType(String creditType) The type of credit.description(String description) A human-readable description of the credit.The date the credit expires, as Unix epoch seconds.default CreditData.BuilderestimatedAmount(Consumer<Amount.Builder> estimatedAmount) The estimated remaining balance, including in-flight (open) bills that have not yet been finalized.estimatedAmount(Amount estimatedAmount) The estimated remaining balance, including in-flight (open) bills that have not yet been finalized.exhaustDate(Instant exhaustDate) The date the credit balance reached zero, as Unix epoch seconds.default CreditData.BuilderinitialAmount(Consumer<Amount.Builder> initialAmount) The initial amount of the credit when it was issued.initialAmount(Amount initialAmount) The initial amount of the credit when it was issued.purchaseTypeApplications(String... purchaseTypeApplications) Restricts which purchase types this credit applies to.purchaseTypeApplications(Collection<String> purchaseTypeApplications) Restricts which purchase types this credit applies to.default CreditData.BuilderremainingAmount(Consumer<Amount.Builder> remainingAmount) The unused balance of the credit.remainingAmount(Amount remainingAmount) The unused balance of the credit.The rule name within the Cost Category.shareableAccounts(String... shareableAccounts) The Amazon Web Services account IDs entitled to apply this credit.shareableAccounts(Collection<String> shareableAccounts) The Amazon Web Services account IDs entitled to apply this credit.The date the credit becomes valid, as Unix epoch seconds.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
-
creditId
The unique identifier for the credit.
- Parameters:
creditId- The unique identifier for the credit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountId
The Amazon Web Services account ID that owns the credit.
- Parameters:
accountId- The Amazon Web Services account ID that owns the credit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creditType
The type of credit. Examples:
Promotion,Refund,TrueUp.- Parameters:
creditType- The type of credit. Examples:Promotion,Refund,TrueUp.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
initialAmount
The initial amount of the credit when it was issued.
- Parameters:
initialAmount- The initial amount of the credit when it was issued.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
initialAmount
The initial amount of the credit when it was issued.
This is a convenience method that creates an instance of theAmount.Builderavoiding the need to create one manually viaAmount.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinitialAmount(Amount).- Parameters:
initialAmount- a consumer that will call methods onAmount.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
remainingAmount
The unused balance of the credit.
- Parameters:
remainingAmount- The unused balance of the credit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
remainingAmount
The unused balance of the credit.
This is a convenience method that creates an instance of theAmount.Builderavoiding the need to create one manually viaAmount.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toremainingAmount(Amount).- Parameters:
remainingAmount- a consumer that will call methods onAmount.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
estimatedAmount
The estimated remaining balance, including in-flight (open) bills that have not yet been finalized.
- Parameters:
estimatedAmount- The estimated remaining balance, including in-flight (open) bills that have not yet been finalized.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
estimatedAmount
The estimated remaining balance, including in-flight (open) bills that have not yet been finalized.
This is a convenience method that creates an instance of theAmount.Builderavoiding the need to create one manually viaAmount.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toestimatedAmount(Amount).- Parameters:
estimatedAmount- a consumer that will call methods onAmount.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
applicableProductNames
The names of Amazon Web Services services this credit applies to.
- Parameters:
applicableProductNames- The names of Amazon Web Services services this credit applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
applicableProductNames
The names of Amazon Web Services services this credit applies to.
- Parameters:
applicableProductNames- The names of Amazon Web Services services this credit applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A human-readable description of the credit.
- Parameters:
description- A human-readable description of the credit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startDate
The date the credit becomes valid, as Unix epoch seconds.
- Parameters:
startDate- The date the credit becomes valid, as Unix epoch seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endDate
The date the credit expires, as Unix epoch seconds.
- Parameters:
endDate- The date the credit expires, as Unix epoch seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exhaustDate
The date the credit balance reached zero, as Unix epoch seconds.
- Parameters:
exhaustDate- The date the credit balance reached zero, as Unix epoch seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
applicationType
When the credit is applied during bill computation. Valid values:
BEFORE_CROSS_SERVICE_DISCOUNTS,AFTER_DISCOUNTS.- Parameters:
applicationType- When the credit is applied during bill computation. Valid values:BEFORE_CROSS_SERVICE_DISCOUNTS,AFTER_DISCOUNTS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
applicationType
When the credit is applied during bill computation. Valid values:
BEFORE_CROSS_SERVICE_DISCOUNTS,AFTER_DISCOUNTS.- Parameters:
applicationType- When the credit is applied during bill computation. Valid values:BEFORE_CROSS_SERVICE_DISCOUNTS,AFTER_DISCOUNTS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accountHasCreditSharingEnabled
Whether the owning account has account-level credit sharing turned on.
- Parameters:
accountHasCreditSharingEnabled- Whether the owning account has account-level credit sharing turned on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creditConsoleVisibility
The display configuration for the credit in the Amazon Web Services Billing console.
- Parameters:
creditConsoleVisibility- The display configuration for the credit in the Amazon Web Services Billing console.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creditSharingType
The sharing configuration for the credit. Valid values:
DEFAULT,DISABLED,CUSTOM,COST_CATEGORY_RULE.- Parameters:
creditSharingType- The sharing configuration for the credit. Valid values:DEFAULT,DISABLED,CUSTOM,COST_CATEGORY_RULE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
creditSharingType
The sharing configuration for the credit. Valid values:
DEFAULT,DISABLED,CUSTOM,COST_CATEGORY_RULE.- Parameters:
creditSharingType- The sharing configuration for the credit. Valid values:DEFAULT,DISABLED,CUSTOM,COST_CATEGORY_RULE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
costCategoryArn
The Amazon Resource Name (ARN) of the Cost Category controlling the credit's sharing scope. Present only when
creditSharingTypeisCOST_CATEGORY_RULE.- Parameters:
costCategoryArn- The Amazon Resource Name (ARN) of the Cost Category controlling the credit's sharing scope. Present only whencreditSharingTypeisCOST_CATEGORY_RULE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleName
The rule name within the Cost Category. Present only when
creditSharingTypeisCOST_CATEGORY_RULE.- Parameters:
ruleName- The rule name within the Cost Category. Present only whencreditSharingTypeisCOST_CATEGORY_RULE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creditStatus
Whether the credit participates in billing runs. Valid values:
ENABLED,DISABLED.- Parameters:
creditStatus- Whether the credit participates in billing runs. Valid values:ENABLED,DISABLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
creditStatus
Whether the credit participates in billing runs. Valid values:
ENABLED,DISABLED.- Parameters:
creditStatus- Whether the credit participates in billing runs. Valid values:ENABLED,DISABLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
purchaseTypeApplications
Restricts which purchase types this credit applies to. When
nullor omitted, the credit applies to all purchase types.- Parameters:
purchaseTypeApplications- Restricts which purchase types this credit applies to. Whennullor omitted, the credit applies to all purchase types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
purchaseTypeApplications
Restricts which purchase types this credit applies to. When
nullor omitted, the credit applies to all purchase types.- Parameters:
purchaseTypeApplications- Restricts which purchase types this credit applies to. Whennullor omitted, the credit applies to all purchase types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-