Interface GetCreditsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BillingRequest.Builder,Buildable,CopyableBuilder<GetCreditsRequest.Builder,,GetCreditsRequest> SdkBuilder<GetCreditsRequest.Builder,,GetCreditsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
GetCreditsRequest
@Mutable
@NotThreadSafe
public static interface GetCreditsRequest.Builder
extends BillingRequest.Builder, SdkPojo, CopyableBuilder<GetCreditsRequest.Builder,GetCreditsRequest>
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Web Services account ID.The end date for the credit period as Unix epoch seconds.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.payerAccountFlag(Boolean payerAccountFlag) Whentrueand the caller is the management account, the response aggregates credits across the entire consolidated billing family.The start date for the credit period as Unix epoch seconds.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.billing.model.BillingRequest.Builder
buildMethods 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
-
accountId
The Amazon Web Services account ID. Must be a 12-digit numeric string.
- Parameters:
accountId- The Amazon Web Services account ID. Must be a 12-digit numeric string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startDate
The start date for the credit period as Unix epoch seconds. Must be a past date that is not more than one year before the current date.
- Parameters:
startDate- The start date for the credit period as Unix epoch seconds. Must be a past date that is not more than one year before the current date.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endDate
The end date for the credit period as Unix epoch seconds. Must not be a future date and must be on or after
startDate. Defaults to the current date when omitted.- Parameters:
endDate- The end date for the credit period as Unix epoch seconds. Must not be a future date and must be on or afterstartDate. Defaults to the current date when omitted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payerAccountFlag
When
trueand the caller is the management account, the response aggregates credits across the entire consolidated billing family. Whenfalseor omitted, returns only credits for the specifiedaccountId.- Parameters:
payerAccountFlag- Whentrueand the caller is the management account, the response aggregates credits across the entire consolidated billing family. Whenfalseor omitted, returns only credits for the specifiedaccountId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
GetCreditsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
GetCreditsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-