AWS SDK for C++  1.9.1
AWS SDK for C++
UpdateCostCategoryDefinitionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace CostExplorer
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "UpdateCostCategoryDefinition"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetCostCategoryArn() const{ return m_costCategoryArn; }
44 
48  inline bool CostCategoryArnHasBeenSet() const { return m_costCategoryArnHasBeenSet; }
49 
53  inline void SetCostCategoryArn(const Aws::String& value) { m_costCategoryArnHasBeenSet = true; m_costCategoryArn = value; }
54 
58  inline void SetCostCategoryArn(Aws::String&& value) { m_costCategoryArnHasBeenSet = true; m_costCategoryArn = std::move(value); }
59 
63  inline void SetCostCategoryArn(const char* value) { m_costCategoryArnHasBeenSet = true; m_costCategoryArn.assign(value); }
64 
68  inline UpdateCostCategoryDefinitionRequest& WithCostCategoryArn(const Aws::String& value) { SetCostCategoryArn(value); return *this;}
69 
73  inline UpdateCostCategoryDefinitionRequest& WithCostCategoryArn(Aws::String&& value) { SetCostCategoryArn(std::move(value)); return *this;}
74 
78  inline UpdateCostCategoryDefinitionRequest& WithCostCategoryArn(const char* value) { SetCostCategoryArn(value); return *this;}
79 
80 
81 
82  inline const CostCategoryRuleVersion& GetRuleVersion() const{ return m_ruleVersion; }
83 
84 
85  inline bool RuleVersionHasBeenSet() const { return m_ruleVersionHasBeenSet; }
86 
87 
88  inline void SetRuleVersion(const CostCategoryRuleVersion& value) { m_ruleVersionHasBeenSet = true; m_ruleVersion = value; }
89 
90 
91  inline void SetRuleVersion(CostCategoryRuleVersion&& value) { m_ruleVersionHasBeenSet = true; m_ruleVersion = std::move(value); }
92 
93 
94  inline UpdateCostCategoryDefinitionRequest& WithRuleVersion(const CostCategoryRuleVersion& value) { SetRuleVersion(value); return *this;}
95 
96 
97  inline UpdateCostCategoryDefinitionRequest& WithRuleVersion(CostCategoryRuleVersion&& value) { SetRuleVersion(std::move(value)); return *this;}
98 
99 
106  inline const Aws::Vector<CostCategoryRule>& GetRules() const{ return m_rules; }
107 
114  inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
115 
122  inline void SetRules(const Aws::Vector<CostCategoryRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
123 
130  inline void SetRules(Aws::Vector<CostCategoryRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
131 
138  inline UpdateCostCategoryDefinitionRequest& WithRules(const Aws::Vector<CostCategoryRule>& value) { SetRules(value); return *this;}
139 
146  inline UpdateCostCategoryDefinitionRequest& WithRules(Aws::Vector<CostCategoryRule>&& value) { SetRules(std::move(value)); return *this;}
147 
154  inline UpdateCostCategoryDefinitionRequest& AddRules(const CostCategoryRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
155 
162  inline UpdateCostCategoryDefinitionRequest& AddRules(CostCategoryRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
163 
164 
165 
166  inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
167 
168 
169  inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
170 
171 
172  inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
173 
174 
175  inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
176 
177 
178  inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
179 
180 
181  inline UpdateCostCategoryDefinitionRequest& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
182 
183 
184  inline UpdateCostCategoryDefinitionRequest& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;}
185 
186 
187  inline UpdateCostCategoryDefinitionRequest& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
188 
189  private:
190 
191  Aws::String m_costCategoryArn;
192  bool m_costCategoryArnHasBeenSet;
193 
194  CostCategoryRuleVersion m_ruleVersion;
195  bool m_ruleVersionHasBeenSet;
196 
198  bool m_rulesHasBeenSet;
199 
200  Aws::String m_defaultValue;
201  bool m_defaultValueHasBeenSet;
202  };
203 
204 } // namespace Model
205 } // namespace CostExplorer
206 } // namespace Aws
Aws::CostExplorer::CostExplorerRequest
Definition: CostExplorerRequest.h:17
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::RulesHasBeenSet
bool RulesHasBeenSet() const
Definition: UpdateCostCategoryDefinitionRequest.h:114
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::WithCostCategoryArn
UpdateCostCategoryDefinitionRequest & WithCostCategoryArn(const char *value)
Definition: UpdateCostCategoryDefinitionRequest.h:78
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::WithRuleVersion
UpdateCostCategoryDefinitionRequest & WithRuleVersion(CostCategoryRuleVersion &&value)
Definition: UpdateCostCategoryDefinitionRequest.h:97
CostExplorerRequest.h
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::WithDefaultValue
UpdateCostCategoryDefinitionRequest & WithDefaultValue(const Aws::String &value)
Definition: UpdateCostCategoryDefinitionRequest.h:181
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CostExplorer::Model::CostCategoryRuleVersion
CostCategoryRuleVersion
Definition: CostCategoryRuleVersion.h:17
AWSVector.h
CostCategoryRule.h
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::GetDefaultValue
const Aws::String & GetDefaultValue() const
Definition: UpdateCostCategoryDefinitionRequest.h:166
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::SetRuleVersion
void SetRuleVersion(const CostCategoryRuleVersion &value)
Definition: UpdateCostCategoryDefinitionRequest.h:88
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::CostCategoryArnHasBeenSet
bool CostCategoryArnHasBeenSet() const
Definition: UpdateCostCategoryDefinitionRequest.h:48
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateCostCategoryDefinitionRequest.h:33
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::GetRules
const Aws::Vector< CostCategoryRule > & GetRules() const
Definition: UpdateCostCategoryDefinitionRequest.h:106
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::GetRuleVersion
const CostCategoryRuleVersion & GetRuleVersion() const
Definition: UpdateCostCategoryDefinitionRequest.h:82
Aws::CostExplorer::Model::CostCategoryRule
Definition: CostCategoryRule.h:37
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::WithRules
UpdateCostCategoryDefinitionRequest & WithRules(Aws::Vector< CostCategoryRule > &&value)
Definition: UpdateCostCategoryDefinitionRequest.h:146
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::UpdateCostCategoryDefinitionRequest
UpdateCostCategoryDefinitionRequest()
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::WithDefaultValue
UpdateCostCategoryDefinitionRequest & WithDefaultValue(Aws::String &&value)
Definition: UpdateCostCategoryDefinitionRequest.h:184
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::SetDefaultValue
void SetDefaultValue(const char *value)
Definition: UpdateCostCategoryDefinitionRequest.h:178
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::SetCostCategoryArn
void SetCostCategoryArn(const char *value)
Definition: UpdateCostCategoryDefinitionRequest.h:63
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest
Definition: UpdateCostCategoryDefinitionRequest.h:25
AWSString.h
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::GetCostCategoryArn
const Aws::String & GetCostCategoryArn() const
Definition: UpdateCostCategoryDefinitionRequest.h:43
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::SetCostCategoryArn
void SetCostCategoryArn(const Aws::String &value)
Definition: UpdateCostCategoryDefinitionRequest.h:53
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::WithCostCategoryArn
UpdateCostCategoryDefinitionRequest & WithCostCategoryArn(const Aws::String &value)
Definition: UpdateCostCategoryDefinitionRequest.h:68
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::SetDefaultValue
void SetDefaultValue(Aws::String &&value)
Definition: UpdateCostCategoryDefinitionRequest.h:175
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::SetRuleVersion
void SetRuleVersion(CostCategoryRuleVersion &&value)
Definition: UpdateCostCategoryDefinitionRequest.h:91
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::DefaultValueHasBeenSet
bool DefaultValueHasBeenSet() const
Definition: UpdateCostCategoryDefinitionRequest.h:169
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::WithDefaultValue
UpdateCostCategoryDefinitionRequest & WithDefaultValue(const char *value)
Definition: UpdateCostCategoryDefinitionRequest.h:187
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::WithCostCategoryArn
UpdateCostCategoryDefinitionRequest & WithCostCategoryArn(Aws::String &&value)
Definition: UpdateCostCategoryDefinitionRequest.h:73
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::RuleVersionHasBeenSet
bool RuleVersionHasBeenSet() const
Definition: UpdateCostCategoryDefinitionRequest.h:85
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::SetDefaultValue
void SetDefaultValue(const Aws::String &value)
Definition: UpdateCostCategoryDefinitionRequest.h:172
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::SetRules
void SetRules(const Aws::Vector< CostCategoryRule > &value)
Definition: UpdateCostCategoryDefinitionRequest.h:122
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::SetCostCategoryArn
void SetCostCategoryArn(Aws::String &&value)
Definition: UpdateCostCategoryDefinitionRequest.h:58
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::WithRuleVersion
UpdateCostCategoryDefinitionRequest & WithRuleVersion(const CostCategoryRuleVersion &value)
Definition: UpdateCostCategoryDefinitionRequest.h:94
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::AddRules
UpdateCostCategoryDefinitionRequest & AddRules(CostCategoryRule &&value)
Definition: UpdateCostCategoryDefinitionRequest.h:162
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::WithRules
UpdateCostCategoryDefinitionRequest & WithRules(const Aws::Vector< CostCategoryRule > &value)
Definition: UpdateCostCategoryDefinitionRequest.h:138
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::SetRules
void SetRules(Aws::Vector< CostCategoryRule > &&value)
Definition: UpdateCostCategoryDefinitionRequest.h:130
CostCategoryRuleVersion.h
Aws::CostExplorer::Model::UpdateCostCategoryDefinitionRequest::AddRules
UpdateCostCategoryDefinitionRequest & AddRules(const CostCategoryRule &value)
Definition: UpdateCostCategoryDefinitionRequest.h:154