Interface CostCategorySplitChargeRule.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CostCategorySplitChargeRule.Builder,
,CostCategorySplitChargeRule> SdkBuilder<CostCategorySplitChargeRule.Builder,
,CostCategorySplitChargeRule> SdkPojo
- Enclosing class:
CostCategorySplitChargeRule
-
Method Summary
Modifier and TypeMethodDescriptionThe method that's used to define how to split your source costs across your targets.method
(CostCategorySplitChargeMethod method) The method that's used to define how to split your source costs across your targets.parameters
(Collection<CostCategorySplitChargeRuleParameter> parameters) The parameters for a split charge method.parameters
(Consumer<CostCategorySplitChargeRuleParameter.Builder>... parameters) The parameters for a split charge method.parameters
(CostCategorySplitChargeRuleParameter... parameters) The parameters for a split charge method.The Cost Category value that you want to split.The Cost Category values that you want to split costs across.targets
(Collection<String> targets) The Cost Category values that you want to split costs across.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
source
The Cost Category value that you want to split. That value can't be used as a source or a target in other split charge rules. To indicate uncategorized costs, you can use an empty string as the source.
- Parameters:
source
- The Cost Category value that you want to split. That value can't be used as a source or a target in other split charge rules. To indicate uncategorized costs, you can use an empty string as the source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The Cost Category values that you want to split costs across. These values can't be used as a source in other split charge rules.
- Parameters:
targets
- The Cost Category values that you want to split costs across. These values can't be used as a source in other split charge rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The Cost Category values that you want to split costs across. These values can't be used as a source in other split charge rules.
- Parameters:
targets
- The Cost Category values that you want to split costs across. These values can't be used as a source in other split charge rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
method
The method that's used to define how to split your source costs across your targets.
Proportional
- Allocates charges across your targets based on the proportional weighted cost of each target.Fixed
- Allocates charges across your targets based on your defined allocation percentage.>
Even
- Allocates costs evenly across all targets.- Parameters:
method
- The method that's used to define how to split your source costs across your targets.Proportional
- Allocates charges across your targets based on the proportional weighted cost of each target.Fixed
- Allocates charges across your targets based on your defined allocation percentage.>
Even
- Allocates costs evenly across all targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
method
The method that's used to define how to split your source costs across your targets.
Proportional
- Allocates charges across your targets based on the proportional weighted cost of each target.Fixed
- Allocates charges across your targets based on your defined allocation percentage.>
Even
- Allocates costs evenly across all targets.- Parameters:
method
- The method that's used to define how to split your source costs across your targets.Proportional
- Allocates charges across your targets based on the proportional weighted cost of each target.Fixed
- Allocates charges across your targets based on your defined allocation percentage.>
Even
- Allocates costs evenly across all targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
parameters
CostCategorySplitChargeRule.Builder parameters(Collection<CostCategorySplitChargeRuleParameter> parameters) The parameters for a split charge method. This is only required for the
FIXED
method.- Parameters:
parameters
- The parameters for a split charge method. This is only required for theFIXED
method.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameters
The parameters for a split charge method. This is only required for the
FIXED
method.- Parameters:
parameters
- The parameters for a split charge method. This is only required for theFIXED
method.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameters
CostCategorySplitChargeRule.Builder parameters(Consumer<CostCategorySplitChargeRuleParameter.Builder>... parameters) The parameters for a split charge method. This is only required for the
This is a convenience method that creates an instance of theFIXED
method.CostCategorySplitChargeRuleParameter.Builder
avoiding the need to create one manually viaCostCategorySplitChargeRuleParameter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toparameters(List<CostCategorySplitChargeRuleParameter>)
.- Parameters:
parameters
- a consumer that will call methods onCostCategorySplitChargeRuleParameter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-