Interface PerBudgetSpendItem.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PerBudgetSpendItem.Builder,,PerBudgetSpendItem> SdkBuilder<PerBudgetSpendItem.Builder,,PerBudgetSpendItem> SdkPojo
- Enclosing class:
PerBudgetSpendItem
-
Method Summary
Modifier and TypeMethodDescriptiondefault PerBudgetSpendItem.BuilderbudgetLimit(Consumer<Spend.Builder> budgetLimit) The budget limit that applies to the principal.budgetLimit(Spend budgetLimit) The budget limit that applies to the principal.budgetLimitDimensions(Collection<BudgetLimitDimension> budgetLimitDimensions) The dimension that the budget limit applies to.budgetLimitDimensions(Consumer<BudgetLimitDimension.Builder>... budgetLimitDimensions) The dimension that the budget limit applies to.budgetLimitDimensions(BudgetLimitDimension... budgetLimitDimensions) The dimension that the budget limit applies to.budgetName(String budgetName) The name of the budget.The values of the budget'sBudgetLimitDimensions, in the same order.keys(Collection<String> keys) The values of the budget'sBudgetLimitDimensions, in the same order.lastUpdatedTime(Instant lastUpdatedTime) The time when Amazon Web Services Budgets last updated the spend for the current period.lastUsageTime(Instant lastUsageTime) The time of the principal's most recent usage that counts toward the budget.limitStatus(String limitStatus) Specifies whether the principal's spend has reached the budget limit.limitStatus(LimitStatus limitStatus) Specifies whether the principal's spend has reached the budget limit.default PerBudgetSpendItem.Builderspend(Consumer<Spend.Builder> spend) The principal's spend in the budget for the current period.The principal's spend in the budget for the current period.default PerBudgetSpendItem.BuildertimePeriod(Consumer<TimePeriod.Builder> timePeriod) The current period of the budget.timePeriod(TimePeriod timePeriod) The current period of the budget.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
-
budgetName
The name of the budget.
- Parameters:
budgetName- The name of the budget.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
budgetLimit
The budget limit that applies to the principal.
- Parameters:
budgetLimit- The budget limit that applies to the principal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
budgetLimit
The budget limit that applies to the principal.
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 tobudgetLimit(Spend).- Parameters:
budgetLimit- 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:
-
timePeriod
The current period of the budget.
- Parameters:
timePeriod- The current period of the budget.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timePeriod
The current period of the budget.
This is a convenience method that creates an instance of theTimePeriod.Builderavoiding the need to create one manually viaTimePeriod.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totimePeriod(TimePeriod).- Parameters:
timePeriod- a consumer that will call methods onTimePeriod.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
spend
The principal's spend in the budget for the current period.
- Parameters:
spend- The principal's spend in the budget for the current period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spend
The principal's spend in the budget for 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 tospend(Spend).- Parameters:
spend- 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:
-
limitStatus
Specifies whether the principal's spend has reached the budget limit.
- Parameters:
limitStatus- Specifies whether the principal's spend has reached the budget limit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
limitStatus
Specifies whether the principal's spend has reached the budget limit.
- Parameters:
limitStatus- Specifies whether the principal's spend has reached the budget limit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lastUsageTime
The time of the principal's most recent usage that counts toward the budget.
- Parameters:
lastUsageTime- The time of the principal's most recent usage that counts toward the budget.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
budgetLimitDimensions
PerBudgetSpendItem.Builder budgetLimitDimensions(Collection<BudgetLimitDimension> budgetLimitDimensions) The dimension that the budget limit applies to.
- Parameters:
budgetLimitDimensions- The dimension that the budget limit applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
budgetLimitDimensions
The dimension that the budget limit applies to.
- Parameters:
budgetLimitDimensions- The dimension that the budget limit applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
budgetLimitDimensions
PerBudgetSpendItem.Builder budgetLimitDimensions(Consumer<BudgetLimitDimension.Builder>... budgetLimitDimensions) The dimension that the budget limit applies to.
This is a convenience method that creates an instance of theBudgetLimitDimension.Builderavoiding the need to create one manually viaBudgetLimitDimension.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobudgetLimitDimensions(List<BudgetLimitDimension>).- Parameters:
budgetLimitDimensions- a consumer that will call methods onBudgetLimitDimension.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.
-
keys
The values of the budget's
BudgetLimitDimensions, in the same order. For a budget with a limit for each principal, this is the ID of the principal. For a budget with one limit for all principals, the list is empty.- Parameters:
keys- The values of the budget'sBudgetLimitDimensions, in the same order. For a budget with a limit for each principal, this is the ID of the principal. For a budget with one limit for all principals, the list is empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keys
The values of the budget's
BudgetLimitDimensions, in the same order. For a budget with a limit for each principal, this is the ID of the principal. For a budget with one limit for all principals, the list is empty.- Parameters:
keys- The values of the budget'sBudgetLimitDimensions, in the same order. For a budget with a limit for each principal, this is the ID of the principal. For a budget with one limit for all principals, the list is empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-