/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace CostExplorer { namespace Model { /** */ class UpdateCostCategoryDefinitionRequest : public CostExplorerRequest { public: AWS_COSTEXPLORER_API UpdateCostCategoryDefinitionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateCostCategoryDefinition"; } AWS_COSTEXPLORER_API Aws::String SerializePayload() const override; AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The unique identifier for your Cost Category.

*/ inline const Aws::String& GetCostCategoryArn() const{ return m_costCategoryArn; } /** *

The unique identifier for your Cost Category.

*/ inline bool CostCategoryArnHasBeenSet() const { return m_costCategoryArnHasBeenSet; } /** *

The unique identifier for your Cost Category.

*/ inline void SetCostCategoryArn(const Aws::String& value) { m_costCategoryArnHasBeenSet = true; m_costCategoryArn = value; } /** *

The unique identifier for your Cost Category.

*/ inline void SetCostCategoryArn(Aws::String&& value) { m_costCategoryArnHasBeenSet = true; m_costCategoryArn = std::move(value); } /** *

The unique identifier for your Cost Category.

*/ inline void SetCostCategoryArn(const char* value) { m_costCategoryArnHasBeenSet = true; m_costCategoryArn.assign(value); } /** *

The unique identifier for your Cost Category.

*/ inline UpdateCostCategoryDefinitionRequest& WithCostCategoryArn(const Aws::String& value) { SetCostCategoryArn(value); return *this;} /** *

The unique identifier for your Cost Category.

*/ inline UpdateCostCategoryDefinitionRequest& WithCostCategoryArn(Aws::String&& value) { SetCostCategoryArn(std::move(value)); return *this;} /** *

The unique identifier for your Cost Category.

*/ inline UpdateCostCategoryDefinitionRequest& WithCostCategoryArn(const char* value) { SetCostCategoryArn(value); return *this;} /** *

The Cost Category's effective start date. It can only be a billing start date * (first day of the month). If the date isn't provided, it's the first day of the * current month. Dates can't be before the previous twelve months, or in the * future.

*/ inline const Aws::String& GetEffectiveStart() const{ return m_effectiveStart; } /** *

The Cost Category's effective start date. It can only be a billing start date * (first day of the month). If the date isn't provided, it's the first day of the * current month. Dates can't be before the previous twelve months, or in the * future.

*/ inline bool EffectiveStartHasBeenSet() const { return m_effectiveStartHasBeenSet; } /** *

The Cost Category's effective start date. It can only be a billing start date * (first day of the month). If the date isn't provided, it's the first day of the * current month. Dates can't be before the previous twelve months, or in the * future.

*/ inline void SetEffectiveStart(const Aws::String& value) { m_effectiveStartHasBeenSet = true; m_effectiveStart = value; } /** *

The Cost Category's effective start date. It can only be a billing start date * (first day of the month). If the date isn't provided, it's the first day of the * current month. Dates can't be before the previous twelve months, or in the * future.

*/ inline void SetEffectiveStart(Aws::String&& value) { m_effectiveStartHasBeenSet = true; m_effectiveStart = std::move(value); } /** *

The Cost Category's effective start date. It can only be a billing start date * (first day of the month). If the date isn't provided, it's the first day of the * current month. Dates can't be before the previous twelve months, or in the * future.

*/ inline void SetEffectiveStart(const char* value) { m_effectiveStartHasBeenSet = true; m_effectiveStart.assign(value); } /** *

The Cost Category's effective start date. It can only be a billing start date * (first day of the month). If the date isn't provided, it's the first day of the * current month. Dates can't be before the previous twelve months, or in the * future.

*/ inline UpdateCostCategoryDefinitionRequest& WithEffectiveStart(const Aws::String& value) { SetEffectiveStart(value); return *this;} /** *

The Cost Category's effective start date. It can only be a billing start date * (first day of the month). If the date isn't provided, it's the first day of the * current month. Dates can't be before the previous twelve months, or in the * future.

*/ inline UpdateCostCategoryDefinitionRequest& WithEffectiveStart(Aws::String&& value) { SetEffectiveStart(std::move(value)); return *this;} /** *

The Cost Category's effective start date. It can only be a billing start date * (first day of the month). If the date isn't provided, it's the first day of the * current month. Dates can't be before the previous twelve months, or in the * future.

*/ inline UpdateCostCategoryDefinitionRequest& WithEffectiveStart(const char* value) { SetEffectiveStart(value); return *this;} inline const CostCategoryRuleVersion& GetRuleVersion() const{ return m_ruleVersion; } inline bool RuleVersionHasBeenSet() const { return m_ruleVersionHasBeenSet; } inline void SetRuleVersion(const CostCategoryRuleVersion& value) { m_ruleVersionHasBeenSet = true; m_ruleVersion = value; } inline void SetRuleVersion(CostCategoryRuleVersion&& value) { m_ruleVersionHasBeenSet = true; m_ruleVersion = std::move(value); } inline UpdateCostCategoryDefinitionRequest& WithRuleVersion(const CostCategoryRuleVersion& value) { SetRuleVersion(value); return *this;} inline UpdateCostCategoryDefinitionRequest& WithRuleVersion(CostCategoryRuleVersion&& value) { SetRuleVersion(std::move(value)); return *this;} /** *

The Expression object used to categorize costs. For more * information, see CostCategoryRule * .

*/ inline const Aws::Vector& GetRules() const{ return m_rules; } /** *

The Expression object used to categorize costs. For more * information, see CostCategoryRule * .

*/ inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; } /** *

The Expression object used to categorize costs. For more * information, see CostCategoryRule * .

*/ inline void SetRules(const Aws::Vector& value) { m_rulesHasBeenSet = true; m_rules = value; } /** *

The Expression object used to categorize costs. For more * information, see CostCategoryRule * .

*/ inline void SetRules(Aws::Vector&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); } /** *

The Expression object used to categorize costs. For more * information, see CostCategoryRule * .

*/ inline UpdateCostCategoryDefinitionRequest& WithRules(const Aws::Vector& value) { SetRules(value); return *this;} /** *

The Expression object used to categorize costs. For more * information, see CostCategoryRule * .

*/ inline UpdateCostCategoryDefinitionRequest& WithRules(Aws::Vector&& value) { SetRules(std::move(value)); return *this;} /** *

The Expression object used to categorize costs. For more * information, see CostCategoryRule * .

*/ inline UpdateCostCategoryDefinitionRequest& AddRules(const CostCategoryRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; } /** *

The Expression object used to categorize costs. For more * information, see CostCategoryRule * .

*/ inline UpdateCostCategoryDefinitionRequest& AddRules(CostCategoryRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; } inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; } inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; } inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; } inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); } inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); } inline UpdateCostCategoryDefinitionRequest& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;} inline UpdateCostCategoryDefinitionRequest& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;} inline UpdateCostCategoryDefinitionRequest& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;} /** *

The split charge rules used to allocate your charges between your Cost * Category values.

*/ inline const Aws::Vector& GetSplitChargeRules() const{ return m_splitChargeRules; } /** *

The split charge rules used to allocate your charges between your Cost * Category values.

*/ inline bool SplitChargeRulesHasBeenSet() const { return m_splitChargeRulesHasBeenSet; } /** *

The split charge rules used to allocate your charges between your Cost * Category values.

*/ inline void SetSplitChargeRules(const Aws::Vector& value) { m_splitChargeRulesHasBeenSet = true; m_splitChargeRules = value; } /** *

The split charge rules used to allocate your charges between your Cost * Category values.

*/ inline void SetSplitChargeRules(Aws::Vector&& value) { m_splitChargeRulesHasBeenSet = true; m_splitChargeRules = std::move(value); } /** *

The split charge rules used to allocate your charges between your Cost * Category values.

*/ inline UpdateCostCategoryDefinitionRequest& WithSplitChargeRules(const Aws::Vector& value) { SetSplitChargeRules(value); return *this;} /** *

The split charge rules used to allocate your charges between your Cost * Category values.

*/ inline UpdateCostCategoryDefinitionRequest& WithSplitChargeRules(Aws::Vector&& value) { SetSplitChargeRules(std::move(value)); return *this;} /** *

The split charge rules used to allocate your charges between your Cost * Category values.

*/ inline UpdateCostCategoryDefinitionRequest& AddSplitChargeRules(const CostCategorySplitChargeRule& value) { m_splitChargeRulesHasBeenSet = true; m_splitChargeRules.push_back(value); return *this; } /** *

The split charge rules used to allocate your charges between your Cost * Category values.

*/ inline UpdateCostCategoryDefinitionRequest& AddSplitChargeRules(CostCategorySplitChargeRule&& value) { m_splitChargeRulesHasBeenSet = true; m_splitChargeRules.push_back(std::move(value)); return *this; } private: Aws::String m_costCategoryArn; bool m_costCategoryArnHasBeenSet = false; Aws::String m_effectiveStart; bool m_effectiveStartHasBeenSet = false; CostCategoryRuleVersion m_ruleVersion; bool m_ruleVersionHasBeenSet = false; Aws::Vector m_rules; bool m_rulesHasBeenSet = false; Aws::String m_defaultValue; bool m_defaultValueHasBeenSet = false; Aws::Vector m_splitChargeRules; bool m_splitChargeRulesHasBeenSet = false; }; } // namespace Model } // namespace CostExplorer } // namespace Aws