Interface SpendSummary.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SpendSummary.Builder,,SpendSummary> SdkBuilder<SpendSummary.Builder,,SpendSummary> SdkPojo
- Enclosing class:
SpendSummary
@Mutable
@NotThreadSafe
public static interface SpendSummary.Builder
extends SdkPojo, CopyableBuilder<SpendSummary.Builder,SpendSummary>
-
Method Summary
Modifier and TypeMethodDescriptionlastUpdatedTime(Instant lastUpdatedTime) The time when Amazon Web Services Budgets last updated the spend for the current period.limitsReached(Integer limitsReached) The number of budget limits that have been reached in the current period.principalsWithSpend(Integer principalsWithSpend) The number of principals that have spend in the current period.default SpendSummary.BuildertotalSpend(Consumer<Spend.Builder> totalSpend) The total spend of the budget in the current period.totalSpend(Spend totalSpend) The total spend of the budget in the current period.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
-
principalsWithSpend
The number of principals that have spend in the current period. Amazon Web Services Budgets doesn't return this field for a budget without
BudgetLimitDimensions.- Parameters:
principalsWithSpend- The number of principals that have spend in the current period. Amazon Web Services Budgets doesn't return this field for a budget withoutBudgetLimitDimensions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
limitsReached
The number of budget limits that have been reached in the current period. Amazon Web Services Budgets doesn't return this field for a budget that has no
BudgetLimitDimensions.- Parameters:
limitsReached- The number of budget limits that have been reached in the current period. Amazon Web Services Budgets doesn't return this field for a budget that has noBudgetLimitDimensions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalSpend
The total spend of the budget in the current period.
- Parameters:
totalSpend- The total spend of the budget in the current period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalSpend
The total spend of the budget in the current period.
This is a convenience method that creates an instance of theSpend.Builderavoiding the need to create one manually viaSpend.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tototalSpend(Spend).- Parameters:
totalSpend- a consumer that will call methods onSpend.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lastUpdatedTime
The time when Amazon Web Services Budgets last updated the spend for the current period.
- Parameters:
lastUpdatedTime- The time when Amazon Web Services Budgets last updated the spend for the current period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-