AWS SDK for C++  1.9.1
AWS SDK for C++
CreateCostCategoryDefinitionRequest.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 "CreateCostCategoryDefinition"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
40 
41  inline const Aws::String& GetName() const{ return m_name; }
42 
43 
44  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 
46 
47  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 
49 
50  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 
52 
53  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 
55 
56  inline CreateCostCategoryDefinitionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
57 
58 
59  inline CreateCostCategoryDefinitionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
60 
61 
62  inline CreateCostCategoryDefinitionRequest& WithName(const char* value) { SetName(value); return *this;}
63 
64 
65 
66  inline const CostCategoryRuleVersion& GetRuleVersion() const{ return m_ruleVersion; }
67 
68 
69  inline bool RuleVersionHasBeenSet() const { return m_ruleVersionHasBeenSet; }
70 
71 
72  inline void SetRuleVersion(const CostCategoryRuleVersion& value) { m_ruleVersionHasBeenSet = true; m_ruleVersion = value; }
73 
74 
75  inline void SetRuleVersion(CostCategoryRuleVersion&& value) { m_ruleVersionHasBeenSet = true; m_ruleVersion = std::move(value); }
76 
77 
78  inline CreateCostCategoryDefinitionRequest& WithRuleVersion(const CostCategoryRuleVersion& value) { SetRuleVersion(value); return *this;}
79 
80 
81  inline CreateCostCategoryDefinitionRequest& WithRuleVersion(CostCategoryRuleVersion&& value) { SetRuleVersion(std::move(value)); return *this;}
82 
83 
89  inline const Aws::Vector<CostCategoryRule>& GetRules() const{ return m_rules; }
90 
96  inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
97 
103  inline void SetRules(const Aws::Vector<CostCategoryRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
104 
110  inline void SetRules(Aws::Vector<CostCategoryRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
111 
117  inline CreateCostCategoryDefinitionRequest& WithRules(const Aws::Vector<CostCategoryRule>& value) { SetRules(value); return *this;}
118 
124  inline CreateCostCategoryDefinitionRequest& WithRules(Aws::Vector<CostCategoryRule>&& value) { SetRules(std::move(value)); return *this;}
125 
131  inline CreateCostCategoryDefinitionRequest& AddRules(const CostCategoryRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
132 
138  inline CreateCostCategoryDefinitionRequest& AddRules(CostCategoryRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
139 
140 
141 
142  inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
143 
144 
145  inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
146 
147 
148  inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
149 
150 
151  inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
152 
153 
154  inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
155 
156 
157  inline CreateCostCategoryDefinitionRequest& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
158 
159 
160  inline CreateCostCategoryDefinitionRequest& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;}
161 
162 
163  inline CreateCostCategoryDefinitionRequest& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
164 
165  private:
166 
167  Aws::String m_name;
168  bool m_nameHasBeenSet;
169 
170  CostCategoryRuleVersion m_ruleVersion;
171  bool m_ruleVersionHasBeenSet;
172 
174  bool m_rulesHasBeenSet;
175 
176  Aws::String m_defaultValue;
177  bool m_defaultValueHasBeenSet;
178  };
179 
180 } // namespace Model
181 } // namespace CostExplorer
182 } // namespace Aws
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateCostCategoryDefinitionRequest.h:33
Aws::CostExplorer::CostExplorerRequest
Definition: CostExplorerRequest.h:17
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::GetRuleVersion
const CostCategoryRuleVersion & GetRuleVersion() const
Definition: CreateCostCategoryDefinitionRequest.h:66
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::WithDefaultValue
CreateCostCategoryDefinitionRequest & WithDefaultValue(const char *value)
Definition: CreateCostCategoryDefinitionRequest.h:163
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::RulesHasBeenSet
bool RulesHasBeenSet() const
Definition: CreateCostCategoryDefinitionRequest.h:96
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::WithRuleVersion
CreateCostCategoryDefinitionRequest & WithRuleVersion(const CostCategoryRuleVersion &value)
Definition: CreateCostCategoryDefinitionRequest.h:78
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::AddRules
CreateCostCategoryDefinitionRequest & AddRules(const CostCategoryRule &value)
Definition: CreateCostCategoryDefinitionRequest.h:131
CostExplorerRequest.h
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::WithName
CreateCostCategoryDefinitionRequest & WithName(const char *value)
Definition: CreateCostCategoryDefinitionRequest.h:62
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CostExplorer::Model::CostCategoryRuleVersion
CostCategoryRuleVersion
Definition: CostCategoryRuleVersion.h:17
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::GetName
const Aws::String & GetName() const
Definition: CreateCostCategoryDefinitionRequest.h:41
AWSVector.h
CostCategoryRule.h
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::WithName
CreateCostCategoryDefinitionRequest & WithName(const Aws::String &value)
Definition: CreateCostCategoryDefinitionRequest.h:56
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::DefaultValueHasBeenSet
bool DefaultValueHasBeenSet() const
Definition: CreateCostCategoryDefinitionRequest.h:145
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::WithDefaultValue
CreateCostCategoryDefinitionRequest & WithDefaultValue(const Aws::String &value)
Definition: CreateCostCategoryDefinitionRequest.h:157
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::SetRules
void SetRules(Aws::Vector< CostCategoryRule > &&value)
Definition: CreateCostCategoryDefinitionRequest.h:110
Aws::CostExplorer::Model::CostCategoryRule
Definition: CostCategoryRule.h:37
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::AddRules
CreateCostCategoryDefinitionRequest & AddRules(CostCategoryRule &&value)
Definition: CreateCostCategoryDefinitionRequest.h:138
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateCostCategoryDefinitionRequest.h:50
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::WithRules
CreateCostCategoryDefinitionRequest & WithRules(const Aws::Vector< CostCategoryRule > &value)
Definition: CreateCostCategoryDefinitionRequest.h:117
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::GetDefaultValue
const Aws::String & GetDefaultValue() const
Definition: CreateCostCategoryDefinitionRequest.h:142
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::WithRules
CreateCostCategoryDefinitionRequest & WithRules(Aws::Vector< CostCategoryRule > &&value)
Definition: CreateCostCategoryDefinitionRequest.h:124
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::WithRuleVersion
CreateCostCategoryDefinitionRequest & WithRuleVersion(CostCategoryRuleVersion &&value)
Definition: CreateCostCategoryDefinitionRequest.h:81
AWSString.h
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::WithDefaultValue
CreateCostCategoryDefinitionRequest & WithDefaultValue(Aws::String &&value)
Definition: CreateCostCategoryDefinitionRequest.h:160
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::SetRuleVersion
void SetRuleVersion(const CostCategoryRuleVersion &value)
Definition: CreateCostCategoryDefinitionRequest.h:72
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::SetDefaultValue
void SetDefaultValue(const char *value)
Definition: CreateCostCategoryDefinitionRequest.h:154
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::SetDefaultValue
void SetDefaultValue(Aws::String &&value)
Definition: CreateCostCategoryDefinitionRequest.h:151
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::SetDefaultValue
void SetDefaultValue(const Aws::String &value)
Definition: CreateCostCategoryDefinitionRequest.h:148
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::SetRules
void SetRules(const Aws::Vector< CostCategoryRule > &value)
Definition: CreateCostCategoryDefinitionRequest.h:103
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::RuleVersionHasBeenSet
bool RuleVersionHasBeenSet() const
Definition: CreateCostCategoryDefinitionRequest.h:69
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::SetName
void SetName(const char *value)
Definition: CreateCostCategoryDefinitionRequest.h:53
Aws
Definition: AccessManagementClient.h:15
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::SetRuleVersion
void SetRuleVersion(CostCategoryRuleVersion &&value)
Definition: CreateCostCategoryDefinitionRequest.h:75
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateCostCategoryDefinitionRequest.h:47
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateCostCategoryDefinitionRequest.h:44
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::CreateCostCategoryDefinitionRequest
CreateCostCategoryDefinitionRequest()
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::WithName
CreateCostCategoryDefinitionRequest & WithName(Aws::String &&value)
Definition: CreateCostCategoryDefinitionRequest.h:59
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest
Definition: CreateCostCategoryDefinitionRequest.h:25
CostCategoryRuleVersion.h
Aws::CostExplorer::Model::CreateCostCategoryDefinitionRequest::GetRules
const Aws::Vector< CostCategoryRule > & GetRules() const
Definition: CreateCostCategoryDefinitionRequest.h:89