/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Use the split charge rule to split the cost of one Cost Category value across
* several other target values. See Also:
AWS
* API Reference
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.
*/ inline const Aws::String& GetSource() const{ return m_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.
*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *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.
*/ inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; } /** *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.
*/ inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *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.
*/ inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); } /** *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.
*/ inline CostCategorySplitChargeRule& WithSource(const Aws::String& value) { SetSource(value); return *this;} /** *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.
*/ inline CostCategorySplitChargeRule& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;} /** *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.
*/ inline CostCategorySplitChargeRule& WithSource(const char* value) { SetSource(value); return *this;} /** *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.
*/ inline const Aws::VectorThe Cost Category values that you want to split costs across. These values * can't be used as a source in other split charge rules.
*/ inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; } /** *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.
*/ inline void SetTargets(const Aws::VectorThe Cost Category values that you want to split costs across. These values * can't be used as a source in other split charge rules.
*/ inline void SetTargets(Aws::VectorThe Cost Category values that you want to split costs across. These values * can't be used as a source in other split charge rules.
*/ inline CostCategorySplitChargeRule& WithTargets(const Aws::VectorThe Cost Category values that you want to split costs across. These values * can't be used as a source in other split charge rules.
*/ inline CostCategorySplitChargeRule& WithTargets(Aws::VectorThe Cost Category values that you want to split costs across. These values * can't be used as a source in other split charge rules.
*/ inline CostCategorySplitChargeRule& AddTargets(const Aws::String& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; } /** *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.
*/ inline CostCategorySplitChargeRule& AddTargets(Aws::String&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; } /** *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.
*/ inline CostCategorySplitChargeRule& AddTargets(const char* value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; } /** *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.
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.
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.
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.
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.
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.
The parameters for a split charge method. This is only required for the
* FIXED
method.
The parameters for a split charge method. This is only required for the
* FIXED
method.
The parameters for a split charge method. This is only required for the
* FIXED
method.
The parameters for a split charge method. This is only required for the
* FIXED
method.
The parameters for a split charge method. This is only required for the
* FIXED
method.
The parameters for a split charge method. This is only required for the
* FIXED
method.
The parameters for a split charge method. This is only required for the
* FIXED
method.
The parameters for a split charge method. This is only required for the
* FIXED
method.