AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OrganizationConfigRule.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/config/model/OrganizationManagedRuleMetadata.h>
10#include <aws/config/model/OrganizationCustomRuleMetadata.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/config/model/OrganizationCustomPolicyRuleMetadataNoPolicy.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ConfigService
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_CONFIGSERVICE_API OrganizationConfigRule();
41 AWS_CONFIGSERVICE_API OrganizationConfigRule(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetOrganizationConfigRuleName() const{ return m_organizationConfigRuleName; }
51 inline bool OrganizationConfigRuleNameHasBeenSet() const { return m_organizationConfigRuleNameHasBeenSet; }
52 inline void SetOrganizationConfigRuleName(const Aws::String& value) { m_organizationConfigRuleNameHasBeenSet = true; m_organizationConfigRuleName = value; }
53 inline void SetOrganizationConfigRuleName(Aws::String&& value) { m_organizationConfigRuleNameHasBeenSet = true; m_organizationConfigRuleName = std::move(value); }
54 inline void SetOrganizationConfigRuleName(const char* value) { m_organizationConfigRuleNameHasBeenSet = true; m_organizationConfigRuleName.assign(value); }
59
61
64 inline const Aws::String& GetOrganizationConfigRuleArn() const{ return m_organizationConfigRuleArn; }
65 inline bool OrganizationConfigRuleArnHasBeenSet() const { return m_organizationConfigRuleArnHasBeenSet; }
66 inline void SetOrganizationConfigRuleArn(const Aws::String& value) { m_organizationConfigRuleArnHasBeenSet = true; m_organizationConfigRuleArn = value; }
67 inline void SetOrganizationConfigRuleArn(Aws::String&& value) { m_organizationConfigRuleArnHasBeenSet = true; m_organizationConfigRuleArn = std::move(value); }
68 inline void SetOrganizationConfigRuleArn(const char* value) { m_organizationConfigRuleArnHasBeenSet = true; m_organizationConfigRuleArn.assign(value); }
71 inline OrganizationConfigRule& WithOrganizationConfigRuleArn(const char* value) { SetOrganizationConfigRuleArn(value); return *this;}
73
75
78 inline const OrganizationManagedRuleMetadata& GetOrganizationManagedRuleMetadata() const{ return m_organizationManagedRuleMetadata; }
79 inline bool OrganizationManagedRuleMetadataHasBeenSet() const { return m_organizationManagedRuleMetadataHasBeenSet; }
80 inline void SetOrganizationManagedRuleMetadata(const OrganizationManagedRuleMetadata& value) { m_organizationManagedRuleMetadataHasBeenSet = true; m_organizationManagedRuleMetadata = value; }
81 inline void SetOrganizationManagedRuleMetadata(OrganizationManagedRuleMetadata&& value) { m_organizationManagedRuleMetadataHasBeenSet = true; m_organizationManagedRuleMetadata = std::move(value); }
85
87
90 inline const OrganizationCustomRuleMetadata& GetOrganizationCustomRuleMetadata() const{ return m_organizationCustomRuleMetadata; }
91 inline bool OrganizationCustomRuleMetadataHasBeenSet() const { return m_organizationCustomRuleMetadataHasBeenSet; }
92 inline void SetOrganizationCustomRuleMetadata(const OrganizationCustomRuleMetadata& value) { m_organizationCustomRuleMetadataHasBeenSet = true; m_organizationCustomRuleMetadata = value; }
93 inline void SetOrganizationCustomRuleMetadata(OrganizationCustomRuleMetadata&& value) { m_organizationCustomRuleMetadataHasBeenSet = true; m_organizationCustomRuleMetadata = std::move(value); }
97
99
103 inline const Aws::Vector<Aws::String>& GetExcludedAccounts() const{ return m_excludedAccounts; }
104 inline bool ExcludedAccountsHasBeenSet() const { return m_excludedAccountsHasBeenSet; }
105 inline void SetExcludedAccounts(const Aws::Vector<Aws::String>& value) { m_excludedAccountsHasBeenSet = true; m_excludedAccounts = value; }
106 inline void SetExcludedAccounts(Aws::Vector<Aws::String>&& value) { m_excludedAccountsHasBeenSet = true; m_excludedAccounts = std::move(value); }
109 inline OrganizationConfigRule& AddExcludedAccounts(const Aws::String& value) { m_excludedAccountsHasBeenSet = true; m_excludedAccounts.push_back(value); return *this; }
110 inline OrganizationConfigRule& AddExcludedAccounts(Aws::String&& value) { m_excludedAccountsHasBeenSet = true; m_excludedAccounts.push_back(std::move(value)); return *this; }
111 inline OrganizationConfigRule& AddExcludedAccounts(const char* value) { m_excludedAccountsHasBeenSet = true; m_excludedAccounts.push_back(value); return *this; }
113
115
118 inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; }
119 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
120 inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; }
121 inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); }
123 inline OrganizationConfigRule& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;}
125
127
135 inline const OrganizationCustomPolicyRuleMetadataNoPolicy& GetOrganizationCustomPolicyRuleMetadata() const{ return m_organizationCustomPolicyRuleMetadata; }
136 inline bool OrganizationCustomPolicyRuleMetadataHasBeenSet() const { return m_organizationCustomPolicyRuleMetadataHasBeenSet; }
137 inline void SetOrganizationCustomPolicyRuleMetadata(const OrganizationCustomPolicyRuleMetadataNoPolicy& value) { m_organizationCustomPolicyRuleMetadataHasBeenSet = true; m_organizationCustomPolicyRuleMetadata = value; }
138 inline void SetOrganizationCustomPolicyRuleMetadata(OrganizationCustomPolicyRuleMetadataNoPolicy&& value) { m_organizationCustomPolicyRuleMetadataHasBeenSet = true; m_organizationCustomPolicyRuleMetadata = std::move(value); }
142 private:
143
144 Aws::String m_organizationConfigRuleName;
145 bool m_organizationConfigRuleNameHasBeenSet = false;
146
147 Aws::String m_organizationConfigRuleArn;
148 bool m_organizationConfigRuleArnHasBeenSet = false;
149
150 OrganizationManagedRuleMetadata m_organizationManagedRuleMetadata;
151 bool m_organizationManagedRuleMetadataHasBeenSet = false;
152
153 OrganizationCustomRuleMetadata m_organizationCustomRuleMetadata;
154 bool m_organizationCustomRuleMetadataHasBeenSet = false;
155
156 Aws::Vector<Aws::String> m_excludedAccounts;
157 bool m_excludedAccountsHasBeenSet = false;
158
159 Aws::Utils::DateTime m_lastUpdateTime;
160 bool m_lastUpdateTimeHasBeenSet = false;
161
162 OrganizationCustomPolicyRuleMetadataNoPolicy m_organizationCustomPolicyRuleMetadata;
163 bool m_organizationCustomPolicyRuleMetadataHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace ConfigService
168} // namespace Aws
OrganizationConfigRule & WithExcludedAccounts(Aws::Vector< Aws::String > &&value)
OrganizationConfigRule & AddExcludedAccounts(const Aws::String &value)
OrganizationConfigRule & WithOrganizationConfigRuleName(const char *value)
OrganizationConfigRule & WithOrganizationConfigRuleArn(const char *value)
void SetOrganizationCustomPolicyRuleMetadata(const OrganizationCustomPolicyRuleMetadataNoPolicy &value)
void SetOrganizationManagedRuleMetadata(OrganizationManagedRuleMetadata &&value)
void SetExcludedAccounts(Aws::Vector< Aws::String > &&value)
OrganizationConfigRule & WithOrganizationManagedRuleMetadata(OrganizationManagedRuleMetadata &&value)
OrganizationConfigRule & WithOrganizationCustomRuleMetadata(OrganizationCustomRuleMetadata &&value)
AWS_CONFIGSERVICE_API OrganizationConfigRule(Aws::Utils::Json::JsonView jsonValue)
OrganizationConfigRule & WithExcludedAccounts(const Aws::Vector< Aws::String > &value)
OrganizationConfigRule & AddExcludedAccounts(Aws::String &&value)
const OrganizationCustomRuleMetadata & GetOrganizationCustomRuleMetadata() const
OrganizationConfigRule & WithOrganizationConfigRuleName(const Aws::String &value)
OrganizationConfigRule & WithOrganizationCustomRuleMetadata(const OrganizationCustomRuleMetadata &value)
const Aws::Vector< Aws::String > & GetExcludedAccounts() const
AWS_CONFIGSERVICE_API OrganizationConfigRule & operator=(Aws::Utils::Json::JsonView jsonValue)
OrganizationConfigRule & WithOrganizationManagedRuleMetadata(const OrganizationManagedRuleMetadata &value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastUpdateTime() const
OrganizationConfigRule & WithOrganizationConfigRuleName(Aws::String &&value)
OrganizationConfigRule & WithLastUpdateTime(Aws::Utils::DateTime &&value)
void SetOrganizationCustomRuleMetadata(OrganizationCustomRuleMetadata &&value)
OrganizationConfigRule & AddExcludedAccounts(const char *value)
void SetLastUpdateTime(const Aws::Utils::DateTime &value)
void SetOrganizationManagedRuleMetadata(const OrganizationManagedRuleMetadata &value)
OrganizationConfigRule & WithOrganizationConfigRuleArn(Aws::String &&value)
OrganizationConfigRule & WithOrganizationCustomPolicyRuleMetadata(OrganizationCustomPolicyRuleMetadataNoPolicy &&value)
OrganizationConfigRule & WithOrganizationConfigRuleArn(const Aws::String &value)
void SetExcludedAccounts(const Aws::Vector< Aws::String > &value)
OrganizationConfigRule & WithLastUpdateTime(const Aws::Utils::DateTime &value)
const OrganizationCustomPolicyRuleMetadataNoPolicy & GetOrganizationCustomPolicyRuleMetadata() const
const OrganizationManagedRuleMetadata & GetOrganizationManagedRuleMetadata() const
void SetOrganizationCustomRuleMetadata(const OrganizationCustomRuleMetadata &value)
OrganizationConfigRule & WithOrganizationCustomPolicyRuleMetadata(const OrganizationCustomPolicyRuleMetadataNoPolicy &value)
void SetOrganizationCustomPolicyRuleMetadata(OrganizationCustomPolicyRuleMetadataNoPolicy &&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