Interface DescribeBudgetSpendForPrincipalRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BudgetsRequest.Builder,Buildable,CopyableBuilder<DescribeBudgetSpendForPrincipalRequest.Builder,,DescribeBudgetSpendForPrincipalRequest> SdkBuilder<DescribeBudgetSpendForPrincipalRequest.Builder,,DescribeBudgetSpendForPrincipalRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
DescribeBudgetSpendForPrincipalRequest
@Mutable
@NotThreadSafe
public static interface DescribeBudgetSpendForPrincipalRequest.Builder
extends BudgetsRequest.Builder, SdkPojo, CopyableBuilder<DescribeBudgetSpendForPrincipalRequest.Builder,DescribeBudgetSpendForPrincipalRequest>
-
Method Summary
Modifier and TypeMethodDescriptionTheaccountIdthat is associated with the budgets.maxResults(Integer maxResults) The maximum number of results to return in one page.The pagination token that you include in your request to indicate the next set of results that you want to retrieve.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.principal(Consumer<SpendPrincipal.Builder> principal) The principal whose spend you want to describe.principal(SpendPrincipal principal) The principal whose spend you want to describe.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.budgets.model.BudgetsRequest.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
accountIdthat is associated with the budgets.- Parameters:
accountId- TheaccountIdthat is associated with the budgets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
The principal whose spend you want to describe.
- Parameters:
principal- The principal whose spend you want to describe.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
default DescribeBudgetSpendForPrincipalRequest.Builder principal(Consumer<SpendPrincipal.Builder> principal) The principal whose spend you want to describe.
This is a convenience method that creates an instance of theSpendPrincipal.Builderavoiding the need to create one manually viaSpendPrincipal.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprincipal(SpendPrincipal).- Parameters:
principal- a consumer that will call methods onSpendPrincipal.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxResults
The maximum number of results to return in one page. Valid range is 1 to 1000. If you don't specify
MaxResults, the default is 100.- Parameters:
maxResults- The maximum number of results to return in one page. Valid range is 1 to 1000. If you don't specifyMaxResults, the default is 100.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
The pagination token that you include in your request to indicate the next set of results that you want to retrieve.
- Parameters:
nextToken- The pagination token that you include in your request to indicate the next set of results that you want to retrieve.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
DescribeBudgetSpendForPrincipalRequest.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
DescribeBudgetSpendForPrincipalRequest.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.
-