@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CostCategorySplitChargeRule extends Object implements Serializable, Cloneable, StructuredPojo
Use the split charge rule to split the cost of one Cost Category value across several other target values.
Constructor and Description |
---|
CostCategorySplitChargeRule() |
Modifier and Type | Method and Description |
---|---|
CostCategorySplitChargeRule |
clone() |
boolean |
equals(Object obj) |
String |
getMethod()
The method that's used to define how to split your source costs across your targets.
|
List<CostCategorySplitChargeRuleParameter> |
getParameters()
The parameters for a split charge method.
|
String |
getSource()
The Cost Category value that you want to split.
|
List<String> |
getTargets()
The Cost Category values that you want to split costs across.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMethod(String method)
The method that's used to define how to split your source costs across your targets.
|
void |
setParameters(Collection<CostCategorySplitChargeRuleParameter> parameters)
The parameters for a split charge method.
|
void |
setSource(String source)
The Cost Category value that you want to split.
|
void |
setTargets(Collection<String> targets)
The Cost Category values that you want to split costs across.
|
String |
toString()
Returns a string representation of this object.
|
CostCategorySplitChargeRule |
withMethod(CostCategorySplitChargeMethod method)
The method that's used to define how to split your source costs across your targets.
|
CostCategorySplitChargeRule |
withMethod(String method)
The method that's used to define how to split your source costs across your targets.
|
CostCategorySplitChargeRule |
withParameters(Collection<CostCategorySplitChargeRuleParameter> parameters)
The parameters for a split charge method.
|
CostCategorySplitChargeRule |
withParameters(CostCategorySplitChargeRuleParameter... parameters)
The parameters for a split charge method.
|
CostCategorySplitChargeRule |
withSource(String source)
The Cost Category value that you want to split.
|
CostCategorySplitChargeRule |
withTargets(Collection<String> targets)
The Cost Category values that you want to split costs across.
|
CostCategorySplitChargeRule |
withTargets(String... targets)
The Cost Category values that you want to split costs across.
|
public void setSource(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.
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.public String getSource()
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.
public CostCategorySplitChargeRule withSource(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.
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.public List<String> getTargets()
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.
public void setTargets(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.
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.public CostCategorySplitChargeRule withTargets(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.
NOTE: This method appends the values to the existing list (if any). Use
setTargets(java.util.Collection)
or withTargets(java.util.Collection)
if you want to override
the existing values.
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.public CostCategorySplitChargeRule withTargets(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.
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.public void setMethod(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.
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.
CostCategorySplitChargeMethod
public String getMethod()
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.
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.
CostCategorySplitChargeMethod
public CostCategorySplitChargeRule withMethod(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.
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.
CostCategorySplitChargeMethod
public CostCategorySplitChargeRule withMethod(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.
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.
CostCategorySplitChargeMethod
public List<CostCategorySplitChargeRuleParameter> getParameters()
The parameters for a split charge method. This is only required for the FIXED
method.
FIXED
method.public void setParameters(Collection<CostCategorySplitChargeRuleParameter> parameters)
The parameters for a split charge method. This is only required for the FIXED
method.
parameters
- The parameters for a split charge method. This is only required for the FIXED
method.public CostCategorySplitChargeRule withParameters(CostCategorySplitChargeRuleParameter... parameters)
The parameters for a split charge method. This is only required for the FIXED
method.
NOTE: This method appends the values to the existing list (if any). Use
setParameters(java.util.Collection)
or withParameters(java.util.Collection)
if you want to
override the existing values.
parameters
- The parameters for a split charge method. This is only required for the FIXED
method.public CostCategorySplitChargeRule withParameters(Collection<CostCategorySplitChargeRuleParameter> parameters)
The parameters for a split charge method. This is only required for the FIXED
method.
parameters
- The parameters for a split charge method. This is only required for the FIXED
method.public String toString()
toString
in class Object
Object.toString()
public CostCategorySplitChargeRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.