AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutOrganizationConfigRuleRequest.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/ConfigServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/config/model/OrganizationManagedRuleMetadata.h>
11#include <aws/config/model/OrganizationCustomRuleMetadata.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/config/model/OrganizationCustomPolicyRuleMetadata.h>
14#include <utility>
15
16namespace Aws
17{
18namespace ConfigService
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CONFIGSERVICE_API PutOrganizationConfigRuleRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "PutOrganizationConfigRule"; }
35
36 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
37
38 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetOrganizationConfigRuleName() const{ return m_organizationConfigRuleName; }
46 inline bool OrganizationConfigRuleNameHasBeenSet() const { return m_organizationConfigRuleNameHasBeenSet; }
47 inline void SetOrganizationConfigRuleName(const Aws::String& value) { m_organizationConfigRuleNameHasBeenSet = true; m_organizationConfigRuleName = value; }
48 inline void SetOrganizationConfigRuleName(Aws::String&& value) { m_organizationConfigRuleNameHasBeenSet = true; m_organizationConfigRuleName = std::move(value); }
49 inline void SetOrganizationConfigRuleName(const char* value) { m_organizationConfigRuleNameHasBeenSet = true; m_organizationConfigRuleName.assign(value); }
54
56
63 inline const OrganizationManagedRuleMetadata& GetOrganizationManagedRuleMetadata() const{ return m_organizationManagedRuleMetadata; }
64 inline bool OrganizationManagedRuleMetadataHasBeenSet() const { return m_organizationManagedRuleMetadataHasBeenSet; }
65 inline void SetOrganizationManagedRuleMetadata(const OrganizationManagedRuleMetadata& value) { m_organizationManagedRuleMetadataHasBeenSet = true; m_organizationManagedRuleMetadata = value; }
66 inline void SetOrganizationManagedRuleMetadata(OrganizationManagedRuleMetadata&& value) { m_organizationManagedRuleMetadataHasBeenSet = true; m_organizationManagedRuleMetadata = std::move(value); }
70
72
80 inline const OrganizationCustomRuleMetadata& GetOrganizationCustomRuleMetadata() const{ return m_organizationCustomRuleMetadata; }
81 inline bool OrganizationCustomRuleMetadataHasBeenSet() const { return m_organizationCustomRuleMetadataHasBeenSet; }
82 inline void SetOrganizationCustomRuleMetadata(const OrganizationCustomRuleMetadata& value) { m_organizationCustomRuleMetadataHasBeenSet = true; m_organizationCustomRuleMetadata = value; }
83 inline void SetOrganizationCustomRuleMetadata(OrganizationCustomRuleMetadata&& value) { m_organizationCustomRuleMetadataHasBeenSet = true; m_organizationCustomRuleMetadata = std::move(value); }
87
89
93 inline const Aws::Vector<Aws::String>& GetExcludedAccounts() const{ return m_excludedAccounts; }
94 inline bool ExcludedAccountsHasBeenSet() const { return m_excludedAccountsHasBeenSet; }
95 inline void SetExcludedAccounts(const Aws::Vector<Aws::String>& value) { m_excludedAccountsHasBeenSet = true; m_excludedAccounts = value; }
96 inline void SetExcludedAccounts(Aws::Vector<Aws::String>&& value) { m_excludedAccountsHasBeenSet = true; m_excludedAccounts = std::move(value); }
99 inline PutOrganizationConfigRuleRequest& AddExcludedAccounts(const Aws::String& value) { m_excludedAccountsHasBeenSet = true; m_excludedAccounts.push_back(value); return *this; }
100 inline PutOrganizationConfigRuleRequest& AddExcludedAccounts(Aws::String&& value) { m_excludedAccountsHasBeenSet = true; m_excludedAccounts.push_back(std::move(value)); return *this; }
101 inline PutOrganizationConfigRuleRequest& AddExcludedAccounts(const char* value) { m_excludedAccountsHasBeenSet = true; m_excludedAccounts.push_back(value); return *this; }
103
105
113 inline const OrganizationCustomPolicyRuleMetadata& GetOrganizationCustomPolicyRuleMetadata() const{ return m_organizationCustomPolicyRuleMetadata; }
114 inline bool OrganizationCustomPolicyRuleMetadataHasBeenSet() const { return m_organizationCustomPolicyRuleMetadataHasBeenSet; }
115 inline void SetOrganizationCustomPolicyRuleMetadata(const OrganizationCustomPolicyRuleMetadata& value) { m_organizationCustomPolicyRuleMetadataHasBeenSet = true; m_organizationCustomPolicyRuleMetadata = value; }
116 inline void SetOrganizationCustomPolicyRuleMetadata(OrganizationCustomPolicyRuleMetadata&& value) { m_organizationCustomPolicyRuleMetadataHasBeenSet = true; m_organizationCustomPolicyRuleMetadata = std::move(value); }
120 private:
121
122 Aws::String m_organizationConfigRuleName;
123 bool m_organizationConfigRuleNameHasBeenSet = false;
124
125 OrganizationManagedRuleMetadata m_organizationManagedRuleMetadata;
126 bool m_organizationManagedRuleMetadataHasBeenSet = false;
127
128 OrganizationCustomRuleMetadata m_organizationCustomRuleMetadata;
129 bool m_organizationCustomRuleMetadataHasBeenSet = false;
130
131 Aws::Vector<Aws::String> m_excludedAccounts;
132 bool m_excludedAccountsHasBeenSet = false;
133
134 OrganizationCustomPolicyRuleMetadata m_organizationCustomPolicyRuleMetadata;
135 bool m_organizationCustomPolicyRuleMetadataHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace ConfigService
140} // namespace Aws
const OrganizationCustomRuleMetadata & GetOrganizationCustomRuleMetadata() const
PutOrganizationConfigRuleRequest & WithOrganizationConfigRuleName(const char *value)
PutOrganizationConfigRuleRequest & WithOrganizationConfigRuleName(const Aws::String &value)
void SetOrganizationManagedRuleMetadata(const OrganizationManagedRuleMetadata &value)
const OrganizationCustomPolicyRuleMetadata & GetOrganizationCustomPolicyRuleMetadata() const
void SetOrganizationCustomPolicyRuleMetadata(const OrganizationCustomPolicyRuleMetadata &value)
PutOrganizationConfigRuleRequest & AddExcludedAccounts(const Aws::String &value)
PutOrganizationConfigRuleRequest & WithOrganizationCustomPolicyRuleMetadata(const OrganizationCustomPolicyRuleMetadata &value)
PutOrganizationConfigRuleRequest & WithOrganizationCustomRuleMetadata(OrganizationCustomRuleMetadata &&value)
PutOrganizationConfigRuleRequest & WithExcludedAccounts(const Aws::Vector< Aws::String > &value)
PutOrganizationConfigRuleRequest & WithOrganizationConfigRuleName(Aws::String &&value)
void SetOrganizationCustomRuleMetadata(const OrganizationCustomRuleMetadata &value)
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetOrganizationCustomPolicyRuleMetadata(OrganizationCustomPolicyRuleMetadata &&value)
PutOrganizationConfigRuleRequest & WithOrganizationManagedRuleMetadata(OrganizationManagedRuleMetadata &&value)
const OrganizationManagedRuleMetadata & GetOrganizationManagedRuleMetadata() const
PutOrganizationConfigRuleRequest & WithOrganizationCustomPolicyRuleMetadata(OrganizationCustomPolicyRuleMetadata &&value)
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
PutOrganizationConfigRuleRequest & AddExcludedAccounts(const char *value)
void SetOrganizationCustomRuleMetadata(OrganizationCustomRuleMetadata &&value)
PutOrganizationConfigRuleRequest & WithOrganizationCustomRuleMetadata(const OrganizationCustomRuleMetadata &value)
void SetOrganizationManagedRuleMetadata(OrganizationManagedRuleMetadata &&value)
PutOrganizationConfigRuleRequest & WithOrganizationManagedRuleMetadata(const OrganizationManagedRuleMetadata &value)
PutOrganizationConfigRuleRequest & WithExcludedAccounts(Aws::Vector< Aws::String > &&value)
PutOrganizationConfigRuleRequest & AddExcludedAccounts(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector