Interface CostCategorySplitChargeRule.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CostCategorySplitChargeRule.Builder,CostCategorySplitChargeRule>,SdkBuilder<CostCategorySplitChargeRule.Builder,CostCategorySplitChargeRule>,SdkPojo
- Enclosing class:
- CostCategorySplitChargeRule
public static interface CostCategorySplitChargeRule.Builder extends SdkPojo, CopyableBuilder<CostCategorySplitChargeRule.Builder,CostCategorySplitChargeRule>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CostCategorySplitChargeRule.Buildermethod(String method)The method that's used to define how to split your source costs across your targets.CostCategorySplitChargeRule.Buildermethod(CostCategorySplitChargeMethod method)The method that's used to define how to split your source costs across your targets.CostCategorySplitChargeRule.Builderparameters(Collection<CostCategorySplitChargeRuleParameter> parameters)The parameters for a split charge method.CostCategorySplitChargeRule.Builderparameters(Consumer<CostCategorySplitChargeRuleParameter.Builder>... parameters)The parameters for a split charge method.CostCategorySplitChargeRule.Builderparameters(CostCategorySplitChargeRuleParameter... parameters)The parameters for a split charge method.CostCategorySplitChargeRule.Buildersource(String source)The Cost Category value that you want to split.CostCategorySplitChargeRule.Buildertargets(String... targets)The Cost Category values that you want to split costs across.CostCategorySplitChargeRule.Buildertargets(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 Detail
-
source
CostCategorySplitChargeRule.Builder source(String 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
CostCategorySplitChargeRule.Builder targets(Collection<String> 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
CostCategorySplitChargeRule.Builder targets(String... 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
CostCategorySplitChargeRule.Builder method(String 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:
CostCategorySplitChargeMethod,CostCategorySplitChargeMethod
-
method
CostCategorySplitChargeRule.Builder method(CostCategorySplitChargeMethod 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:
CostCategorySplitChargeMethod,CostCategorySplitChargeMethod
-
parameters
CostCategorySplitChargeRule.Builder parameters(Collection<CostCategorySplitChargeRuleParameter> parameters)
The parameters for a split charge method. This is only required for the
FIXEDmethod.- Parameters:
parameters- The parameters for a split charge method. This is only required for theFIXEDmethod.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameters
CostCategorySplitChargeRule.Builder parameters(CostCategorySplitChargeRuleParameter... parameters)
The parameters for a split charge method. This is only required for the
FIXEDmethod.- Parameters:
parameters- The parameters for a split charge method. This is only required for theFIXEDmethod.- 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 theFIXEDmethod.CostCategorySplitChargeRuleParameter.Builderavoiding the need to create one manually viaCostCategorySplitChargeRuleParameter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#parameters(List.) - 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:
#parameters(java.util.Collection)
-
-