AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
OrganizationCustomRuleMetadata.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/model/MaximumExecutionFrequency.h>
9#include <aws/config/model/OrganizationConfigRuleTriggerType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ConfigService {
23namespace Model {
24
36 public:
37 AWS_CONFIGSERVICE_API OrganizationCustomRuleMetadata() = default;
40 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetDescription() const { return m_description; }
47 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
48 template <typename DescriptionT = Aws::String>
49 void SetDescription(DescriptionT&& value) {
50 m_descriptionHasBeenSet = true;
51 m_description = std::forward<DescriptionT>(value);
52 }
53 template <typename DescriptionT = Aws::String>
55 SetDescription(std::forward<DescriptionT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetLambdaFunctionArn() const { return m_lambdaFunctionArn; }
65 inline bool LambdaFunctionArnHasBeenSet() const { return m_lambdaFunctionArnHasBeenSet; }
66 template <typename LambdaFunctionArnT = Aws::String>
67 void SetLambdaFunctionArn(LambdaFunctionArnT&& value) {
68 m_lambdaFunctionArnHasBeenSet = true;
69 m_lambdaFunctionArn = std::forward<LambdaFunctionArnT>(value);
70 }
71 template <typename LambdaFunctionArnT = Aws::String>
73 SetLambdaFunctionArn(std::forward<LambdaFunctionArnT>(value));
74 return *this;
75 }
77
79
92 return m_organizationConfigRuleTriggerTypes;
93 }
94 inline bool OrganizationConfigRuleTriggerTypesHasBeenSet() const { return m_organizationConfigRuleTriggerTypesHasBeenSet; }
95 template <typename OrganizationConfigRuleTriggerTypesT = Aws::Vector<OrganizationConfigRuleTriggerType>>
96 void SetOrganizationConfigRuleTriggerTypes(OrganizationConfigRuleTriggerTypesT&& value) {
97 m_organizationConfigRuleTriggerTypesHasBeenSet = true;
98 m_organizationConfigRuleTriggerTypes = std::forward<OrganizationConfigRuleTriggerTypesT>(value);
99 }
100 template <typename OrganizationConfigRuleTriggerTypesT = Aws::Vector<OrganizationConfigRuleTriggerType>>
101 OrganizationCustomRuleMetadata& WithOrganizationConfigRuleTriggerTypes(OrganizationConfigRuleTriggerTypesT&& value) {
102 SetOrganizationConfigRuleTriggerTypes(std::forward<OrganizationConfigRuleTriggerTypesT>(value));
103 return *this;
104 }
106 m_organizationConfigRuleTriggerTypesHasBeenSet = true;
107 m_organizationConfigRuleTriggerTypes.push_back(value);
108 return *this;
109 }
111
113
117 inline const Aws::String& GetInputParameters() const { return m_inputParameters; }
118 inline bool InputParametersHasBeenSet() const { return m_inputParametersHasBeenSet; }
119 template <typename InputParametersT = Aws::String>
120 void SetInputParameters(InputParametersT&& value) {
121 m_inputParametersHasBeenSet = true;
122 m_inputParameters = std::forward<InputParametersT>(value);
123 }
124 template <typename InputParametersT = Aws::String>
126 SetInputParameters(std::forward<InputParametersT>(value));
127 return *this;
128 }
130
132
140 inline MaximumExecutionFrequency GetMaximumExecutionFrequency() const { return m_maximumExecutionFrequency; }
141 inline bool MaximumExecutionFrequencyHasBeenSet() const { return m_maximumExecutionFrequencyHasBeenSet; }
143 m_maximumExecutionFrequencyHasBeenSet = true;
144 m_maximumExecutionFrequency = value;
145 }
148 return *this;
149 }
151
153
156 inline const Aws::Vector<Aws::String>& GetResourceTypesScope() const { return m_resourceTypesScope; }
157 inline bool ResourceTypesScopeHasBeenSet() const { return m_resourceTypesScopeHasBeenSet; }
158 template <typename ResourceTypesScopeT = Aws::Vector<Aws::String>>
159 void SetResourceTypesScope(ResourceTypesScopeT&& value) {
160 m_resourceTypesScopeHasBeenSet = true;
161 m_resourceTypesScope = std::forward<ResourceTypesScopeT>(value);
162 }
163 template <typename ResourceTypesScopeT = Aws::Vector<Aws::String>>
165 SetResourceTypesScope(std::forward<ResourceTypesScopeT>(value));
166 return *this;
167 }
168 template <typename ResourceTypesScopeT = Aws::String>
170 m_resourceTypesScopeHasBeenSet = true;
171 m_resourceTypesScope.emplace_back(std::forward<ResourceTypesScopeT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::String& GetResourceIdScope() const { return m_resourceIdScope; }
181 inline bool ResourceIdScopeHasBeenSet() const { return m_resourceIdScopeHasBeenSet; }
182 template <typename ResourceIdScopeT = Aws::String>
183 void SetResourceIdScope(ResourceIdScopeT&& value) {
184 m_resourceIdScopeHasBeenSet = true;
185 m_resourceIdScope = std::forward<ResourceIdScopeT>(value);
186 }
187 template <typename ResourceIdScopeT = Aws::String>
189 SetResourceIdScope(std::forward<ResourceIdScopeT>(value));
190 return *this;
191 }
193
195
199 inline const Aws::String& GetTagKeyScope() const { return m_tagKeyScope; }
200 inline bool TagKeyScopeHasBeenSet() const { return m_tagKeyScopeHasBeenSet; }
201 template <typename TagKeyScopeT = Aws::String>
202 void SetTagKeyScope(TagKeyScopeT&& value) {
203 m_tagKeyScopeHasBeenSet = true;
204 m_tagKeyScope = std::forward<TagKeyScopeT>(value);
205 }
206 template <typename TagKeyScopeT = Aws::String>
208 SetTagKeyScope(std::forward<TagKeyScopeT>(value));
209 return *this;
210 }
212
214
218 inline const Aws::String& GetTagValueScope() const { return m_tagValueScope; }
219 inline bool TagValueScopeHasBeenSet() const { return m_tagValueScopeHasBeenSet; }
220 template <typename TagValueScopeT = Aws::String>
221 void SetTagValueScope(TagValueScopeT&& value) {
222 m_tagValueScopeHasBeenSet = true;
223 m_tagValueScope = std::forward<TagValueScopeT>(value);
224 }
225 template <typename TagValueScopeT = Aws::String>
227 SetTagValueScope(std::forward<TagValueScopeT>(value));
228 return *this;
229 }
231 private:
232 Aws::String m_description;
233
234 Aws::String m_lambdaFunctionArn;
235
236 Aws::Vector<OrganizationConfigRuleTriggerType> m_organizationConfigRuleTriggerTypes;
237
238 Aws::String m_inputParameters;
239
241
242 Aws::Vector<Aws::String> m_resourceTypesScope;
243
244 Aws::String m_resourceIdScope;
245
246 Aws::String m_tagKeyScope;
247
248 Aws::String m_tagValueScope;
249 bool m_descriptionHasBeenSet = false;
250 bool m_lambdaFunctionArnHasBeenSet = false;
251 bool m_organizationConfigRuleTriggerTypesHasBeenSet = false;
252 bool m_inputParametersHasBeenSet = false;
253 bool m_maximumExecutionFrequencyHasBeenSet = false;
254 bool m_resourceTypesScopeHasBeenSet = false;
255 bool m_resourceIdScopeHasBeenSet = false;
256 bool m_tagKeyScopeHasBeenSet = false;
257 bool m_tagValueScopeHasBeenSet = false;
258};
259
260} // namespace Model
261} // namespace ConfigService
262} // namespace Aws
OrganizationCustomRuleMetadata & WithResourceTypesScope(ResourceTypesScopeT &&value)
AWS_CONFIGSERVICE_API OrganizationCustomRuleMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONFIGSERVICE_API OrganizationCustomRuleMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
OrganizationCustomRuleMetadata & WithDescription(DescriptionT &&value)
OrganizationCustomRuleMetadata & WithInputParameters(InputParametersT &&value)
OrganizationCustomRuleMetadata & WithMaximumExecutionFrequency(MaximumExecutionFrequency value)
OrganizationCustomRuleMetadata & AddOrganizationConfigRuleTriggerTypes(OrganizationConfigRuleTriggerType value)
OrganizationCustomRuleMetadata & WithTagKeyScope(TagKeyScopeT &&value)
const Aws::Vector< OrganizationConfigRuleTriggerType > & GetOrganizationConfigRuleTriggerTypes() const
OrganizationCustomRuleMetadata & AddResourceTypesScope(ResourceTypesScopeT &&value)
OrganizationCustomRuleMetadata & WithResourceIdScope(ResourceIdScopeT &&value)
OrganizationCustomRuleMetadata & WithLambdaFunctionArn(LambdaFunctionArnT &&value)
void SetOrganizationConfigRuleTriggerTypes(OrganizationConfigRuleTriggerTypesT &&value)
OrganizationCustomRuleMetadata & WithOrganizationConfigRuleTriggerTypes(OrganizationConfigRuleTriggerTypesT &&value)
OrganizationCustomRuleMetadata & WithTagValueScope(TagValueScopeT &&value)
AWS_CONFIGSERVICE_API OrganizationCustomRuleMetadata()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue