Interface SpendGroup.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SpendGroup.Builder,,SpendGroup> SdkBuilder<SpendGroup.Builder,,SpendGroup> SdkPojo
- Enclosing class:
SpendGroup
-
Method Summary
Modifier and TypeMethodDescriptionThe values that identify the row, one for each entry inGroupDefinitions, in the same order.keys(Collection<String> keys) The values that identify the row, one for each entry inGroupDefinitions, in the same order.lastUsageTime(Instant lastUsageTime) The time of the most recent usage that counts toward the row.limitStatus(String limitStatus) Specifies whether the spend has reached the budget limit that the row counts toward.limitStatus(LimitStatus limitStatus) Specifies whether the spend has reached the budget limit that the row counts toward.default SpendGroup.Builderspend(Consumer<Spend.Builder> spend) The spend of the row in the current period.The spend of the row 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
-
keys
The values that identify the row, one for each entry in
GroupDefinitions, in the same order. When you group by the budget'sSpendAttributionskey, the value is the ID of the principal. The list is empty for the total spend of a budget withoutBudgetLimitDimensions.- Parameters:
keys- The values that identify the row, one for each entry inGroupDefinitions, in the same order. When you group by the budget'sSpendAttributionskey, the value is the ID of the principal. The list is empty for the total spend of a budget withoutBudgetLimitDimensions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keys
The values that identify the row, one for each entry in
GroupDefinitions, in the same order. When you group by the budget'sSpendAttributionskey, the value is the ID of the principal. The list is empty for the total spend of a budget withoutBudgetLimitDimensions.- Parameters:
keys- The values that identify the row, one for each entry inGroupDefinitions, in the same order. When you group by the budget'sSpendAttributionskey, the value is the ID of the principal. The list is empty for the total spend of a budget withoutBudgetLimitDimensions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spend
The spend of the row in the current period.
- Parameters:
spend- The spend of the row in the current period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spend
The spend of the row 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 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 spend has reached the budget limit that the row counts toward. That limit is the principal's own limit, or the limit of the whole budget.
- Parameters:
limitStatus- Specifies whether the spend has reached the budget limit that the row counts toward. That limit is the principal's own limit, or the limit of the whole budget.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
limitStatus
Specifies whether the spend has reached the budget limit that the row counts toward. That limit is the principal's own limit, or the limit of the whole budget.
- Parameters:
limitStatus- Specifies whether the spend has reached the budget limit that the row counts toward. That limit is the principal's own limit, or the limit of the whole budget.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lastUsageTime
The time of the most recent usage that counts toward the row. Amazon Web Services Budgets doesn't return this field when the budget has no
BudgetLimitDimensionsor when the budget has no usage in the current period yet.- Parameters:
lastUsageTime- The time of the most recent usage that counts toward the row. Amazon Web Services Budgets doesn't return this field when the budget has noBudgetLimitDimensionsor when the budget has no usage in the current period yet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-