AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
OrganizationCustomPolicyRuleMetadata.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/config/model/MaximumExecutionFrequency.h>
11#include <aws/config/model/OrganizationConfigRuleTriggerTypeNoSN.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ConfigService
25{
26namespace Model
27{
28
40 {
41 public:
42 AWS_CONFIGSERVICE_API OrganizationCustomPolicyRuleMetadata() = default;
45 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline const Aws::String& GetDescription() const { return m_description; }
54 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
55 template<typename DescriptionT = Aws::String>
56 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
57 template<typename DescriptionT = Aws::String>
58 OrganizationCustomPolicyRuleMetadata& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
60
62
73 inline const Aws::Vector<OrganizationConfigRuleTriggerTypeNoSN>& GetOrganizationConfigRuleTriggerTypes() const { return m_organizationConfigRuleTriggerTypes; }
74 inline bool OrganizationConfigRuleTriggerTypesHasBeenSet() const { return m_organizationConfigRuleTriggerTypesHasBeenSet; }
75 template<typename OrganizationConfigRuleTriggerTypesT = Aws::Vector<OrganizationConfigRuleTriggerTypeNoSN>>
76 void SetOrganizationConfigRuleTriggerTypes(OrganizationConfigRuleTriggerTypesT&& value) { m_organizationConfigRuleTriggerTypesHasBeenSet = true; m_organizationConfigRuleTriggerTypes = std::forward<OrganizationConfigRuleTriggerTypesT>(value); }
77 template<typename OrganizationConfigRuleTriggerTypesT = Aws::Vector<OrganizationConfigRuleTriggerTypeNoSN>>
78 OrganizationCustomPolicyRuleMetadata& WithOrganizationConfigRuleTriggerTypes(OrganizationConfigRuleTriggerTypesT&& value) { SetOrganizationConfigRuleTriggerTypes(std::forward<OrganizationConfigRuleTriggerTypesT>(value)); return *this;}
79 inline OrganizationCustomPolicyRuleMetadata& AddOrganizationConfigRuleTriggerTypes(OrganizationConfigRuleTriggerTypeNoSN value) { m_organizationConfigRuleTriggerTypesHasBeenSet = true; m_organizationConfigRuleTriggerTypes.push_back(value); return *this; }
81
83
87 inline const Aws::String& GetInputParameters() const { return m_inputParameters; }
88 inline bool InputParametersHasBeenSet() const { return m_inputParametersHasBeenSet; }
89 template<typename InputParametersT = Aws::String>
90 void SetInputParameters(InputParametersT&& value) { m_inputParametersHasBeenSet = true; m_inputParameters = std::forward<InputParametersT>(value); }
91 template<typename InputParametersT = Aws::String>
92 OrganizationCustomPolicyRuleMetadata& WithInputParameters(InputParametersT&& value) { SetInputParameters(std::forward<InputParametersT>(value)); return *this;}
94
96
101 inline MaximumExecutionFrequency GetMaximumExecutionFrequency() const { return m_maximumExecutionFrequency; }
102 inline bool MaximumExecutionFrequencyHasBeenSet() const { return m_maximumExecutionFrequencyHasBeenSet; }
103 inline void SetMaximumExecutionFrequency(MaximumExecutionFrequency value) { m_maximumExecutionFrequencyHasBeenSet = true; m_maximumExecutionFrequency = value; }
106
108
111 inline const Aws::Vector<Aws::String>& GetResourceTypesScope() const { return m_resourceTypesScope; }
112 inline bool ResourceTypesScopeHasBeenSet() const { return m_resourceTypesScopeHasBeenSet; }
113 template<typename ResourceTypesScopeT = Aws::Vector<Aws::String>>
114 void SetResourceTypesScope(ResourceTypesScopeT&& value) { m_resourceTypesScopeHasBeenSet = true; m_resourceTypesScope = std::forward<ResourceTypesScopeT>(value); }
115 template<typename ResourceTypesScopeT = Aws::Vector<Aws::String>>
116 OrganizationCustomPolicyRuleMetadata& WithResourceTypesScope(ResourceTypesScopeT&& value) { SetResourceTypesScope(std::forward<ResourceTypesScopeT>(value)); return *this;}
117 template<typename ResourceTypesScopeT = Aws::String>
118 OrganizationCustomPolicyRuleMetadata& AddResourceTypesScope(ResourceTypesScopeT&& value) { m_resourceTypesScopeHasBeenSet = true; m_resourceTypesScope.emplace_back(std::forward<ResourceTypesScopeT>(value)); return *this; }
120
122
125 inline const Aws::String& GetResourceIdScope() const { return m_resourceIdScope; }
126 inline bool ResourceIdScopeHasBeenSet() const { return m_resourceIdScopeHasBeenSet; }
127 template<typename ResourceIdScopeT = Aws::String>
128 void SetResourceIdScope(ResourceIdScopeT&& value) { m_resourceIdScopeHasBeenSet = true; m_resourceIdScope = std::forward<ResourceIdScopeT>(value); }
129 template<typename ResourceIdScopeT = Aws::String>
130 OrganizationCustomPolicyRuleMetadata& WithResourceIdScope(ResourceIdScopeT&& value) { SetResourceIdScope(std::forward<ResourceIdScopeT>(value)); return *this;}
132
134
138 inline const Aws::String& GetTagKeyScope() const { return m_tagKeyScope; }
139 inline bool TagKeyScopeHasBeenSet() const { return m_tagKeyScopeHasBeenSet; }
140 template<typename TagKeyScopeT = Aws::String>
141 void SetTagKeyScope(TagKeyScopeT&& value) { m_tagKeyScopeHasBeenSet = true; m_tagKeyScope = std::forward<TagKeyScopeT>(value); }
142 template<typename TagKeyScopeT = Aws::String>
143 OrganizationCustomPolicyRuleMetadata& WithTagKeyScope(TagKeyScopeT&& value) { SetTagKeyScope(std::forward<TagKeyScopeT>(value)); return *this;}
145
147
151 inline const Aws::String& GetTagValueScope() const { return m_tagValueScope; }
152 inline bool TagValueScopeHasBeenSet() const { return m_tagValueScopeHasBeenSet; }
153 template<typename TagValueScopeT = Aws::String>
154 void SetTagValueScope(TagValueScopeT&& value) { m_tagValueScopeHasBeenSet = true; m_tagValueScope = std::forward<TagValueScopeT>(value); }
155 template<typename TagValueScopeT = Aws::String>
156 OrganizationCustomPolicyRuleMetadata& WithTagValueScope(TagValueScopeT&& value) { SetTagValueScope(std::forward<TagValueScopeT>(value)); return *this;}
158
160
167 inline const Aws::String& GetPolicyRuntime() const { return m_policyRuntime; }
168 inline bool PolicyRuntimeHasBeenSet() const { return m_policyRuntimeHasBeenSet; }
169 template<typename PolicyRuntimeT = Aws::String>
170 void SetPolicyRuntime(PolicyRuntimeT&& value) { m_policyRuntimeHasBeenSet = true; m_policyRuntime = std::forward<PolicyRuntimeT>(value); }
171 template<typename PolicyRuntimeT = Aws::String>
172 OrganizationCustomPolicyRuleMetadata& WithPolicyRuntime(PolicyRuntimeT&& value) { SetPolicyRuntime(std::forward<PolicyRuntimeT>(value)); return *this;}
174
176
180 inline const Aws::String& GetPolicyText() const { return m_policyText; }
181 inline bool PolicyTextHasBeenSet() const { return m_policyTextHasBeenSet; }
182 template<typename PolicyTextT = Aws::String>
183 void SetPolicyText(PolicyTextT&& value) { m_policyTextHasBeenSet = true; m_policyText = std::forward<PolicyTextT>(value); }
184 template<typename PolicyTextT = Aws::String>
185 OrganizationCustomPolicyRuleMetadata& WithPolicyText(PolicyTextT&& value) { SetPolicyText(std::forward<PolicyTextT>(value)); return *this;}
187
189
194 inline const Aws::Vector<Aws::String>& GetDebugLogDeliveryAccounts() const { return m_debugLogDeliveryAccounts; }
195 inline bool DebugLogDeliveryAccountsHasBeenSet() const { return m_debugLogDeliveryAccountsHasBeenSet; }
196 template<typename DebugLogDeliveryAccountsT = Aws::Vector<Aws::String>>
197 void SetDebugLogDeliveryAccounts(DebugLogDeliveryAccountsT&& value) { m_debugLogDeliveryAccountsHasBeenSet = true; m_debugLogDeliveryAccounts = std::forward<DebugLogDeliveryAccountsT>(value); }
198 template<typename DebugLogDeliveryAccountsT = Aws::Vector<Aws::String>>
199 OrganizationCustomPolicyRuleMetadata& WithDebugLogDeliveryAccounts(DebugLogDeliveryAccountsT&& value) { SetDebugLogDeliveryAccounts(std::forward<DebugLogDeliveryAccountsT>(value)); return *this;}
200 template<typename DebugLogDeliveryAccountsT = Aws::String>
201 OrganizationCustomPolicyRuleMetadata& AddDebugLogDeliveryAccounts(DebugLogDeliveryAccountsT&& value) { m_debugLogDeliveryAccountsHasBeenSet = true; m_debugLogDeliveryAccounts.emplace_back(std::forward<DebugLogDeliveryAccountsT>(value)); return *this; }
203 private:
204
205 Aws::String m_description;
206 bool m_descriptionHasBeenSet = false;
207
208 Aws::Vector<OrganizationConfigRuleTriggerTypeNoSN> m_organizationConfigRuleTriggerTypes;
209 bool m_organizationConfigRuleTriggerTypesHasBeenSet = false;
210
211 Aws::String m_inputParameters;
212 bool m_inputParametersHasBeenSet = false;
213
215 bool m_maximumExecutionFrequencyHasBeenSet = false;
216
217 Aws::Vector<Aws::String> m_resourceTypesScope;
218 bool m_resourceTypesScopeHasBeenSet = false;
219
220 Aws::String m_resourceIdScope;
221 bool m_resourceIdScopeHasBeenSet = false;
222
223 Aws::String m_tagKeyScope;
224 bool m_tagKeyScopeHasBeenSet = false;
225
226 Aws::String m_tagValueScope;
227 bool m_tagValueScopeHasBeenSet = false;
228
229 Aws::String m_policyRuntime;
230 bool m_policyRuntimeHasBeenSet = false;
231
232 Aws::String m_policyText;
233 bool m_policyTextHasBeenSet = false;
234
235 Aws::Vector<Aws::String> m_debugLogDeliveryAccounts;
236 bool m_debugLogDeliveryAccountsHasBeenSet = false;
237 };
238
239} // namespace Model
240} // namespace ConfigService
241} // namespace Aws
void SetOrganizationConfigRuleTriggerTypes(OrganizationConfigRuleTriggerTypesT &&value)
OrganizationCustomPolicyRuleMetadata & WithResourceIdScope(ResourceIdScopeT &&value)
OrganizationCustomPolicyRuleMetadata & AddOrganizationConfigRuleTriggerTypes(OrganizationConfigRuleTriggerTypeNoSN value)
AWS_CONFIGSERVICE_API OrganizationCustomPolicyRuleMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API OrganizationCustomPolicyRuleMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
OrganizationCustomPolicyRuleMetadata & WithOrganizationConfigRuleTriggerTypes(OrganizationConfigRuleTriggerTypesT &&value)
OrganizationCustomPolicyRuleMetadata & WithInputParameters(InputParametersT &&value)
OrganizationCustomPolicyRuleMetadata & AddDebugLogDeliveryAccounts(DebugLogDeliveryAccountsT &&value)
OrganizationCustomPolicyRuleMetadata & WithResourceTypesScope(ResourceTypesScopeT &&value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
OrganizationCustomPolicyRuleMetadata & AddResourceTypesScope(ResourceTypesScopeT &&value)
OrganizationCustomPolicyRuleMetadata & WithDebugLogDeliveryAccounts(DebugLogDeliveryAccountsT &&value)
OrganizationCustomPolicyRuleMetadata & WithPolicyText(PolicyTextT &&value)
OrganizationCustomPolicyRuleMetadata & WithMaximumExecutionFrequency(MaximumExecutionFrequency value)
const Aws::Vector< OrganizationConfigRuleTriggerTypeNoSN > & GetOrganizationConfigRuleTriggerTypes() const
AWS_CONFIGSERVICE_API OrganizationCustomPolicyRuleMetadata()=default
OrganizationCustomPolicyRuleMetadata & WithTagValueScope(TagValueScopeT &&value)
OrganizationCustomPolicyRuleMetadata & WithDescription(DescriptionT &&value)
OrganizationCustomPolicyRuleMetadata & WithTagKeyScope(TagKeyScopeT &&value)
OrganizationCustomPolicyRuleMetadata & WithPolicyRuntime(PolicyRuntimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue