AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
UpdateEnvironmentRequest.h
1
6#pragma once
7#include <aws/assurance/AssuranceRequest.h>
8#include <aws/assurance/Assurance_EXPORTS.h>
9#include <aws/assurance/model/EnvironmentScope.h>
10#include <aws/assurance/model/IdentityStoreUpdate.h>
11#include <aws/assurance/model/OrganizationalUnitIdsUpdate.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Assurance {
19namespace Model {
20
24 public:
25 AWS_ASSURANCE_API UpdateEnvironmentRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateEnvironment"; }
32
33 AWS_ASSURANCE_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
42 inline bool EnvironmentArnHasBeenSet() const { return m_environmentArnHasBeenSet; }
43 template <typename EnvironmentArnT = Aws::String>
44 void SetEnvironmentArn(EnvironmentArnT&& value) {
45 m_environmentArnHasBeenSet = true;
46 m_environmentArn = std::forward<EnvironmentArnT>(value);
47 }
48 template <typename EnvironmentArnT = Aws::String>
49 UpdateEnvironmentRequest& WithEnvironmentArn(EnvironmentArnT&& value) {
50 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
78 inline const IdentityStoreUpdate& GetIdentityStore() const { return m_identityStore; }
79 inline bool IdentityStoreHasBeenSet() const { return m_identityStoreHasBeenSet; }
80 template <typename IdentityStoreT = IdentityStoreUpdate>
81 void SetIdentityStore(IdentityStoreT&& value) {
82 m_identityStoreHasBeenSet = true;
83 m_identityStore = std::forward<IdentityStoreT>(value);
84 }
85 template <typename IdentityStoreT = IdentityStoreUpdate>
87 SetIdentityStore(std::forward<IdentityStoreT>(value));
88 return *this;
89 }
91
93
98 inline const Aws::String& GetOperatorRole() const { return m_operatorRole; }
99 inline bool OperatorRoleHasBeenSet() const { return m_operatorRoleHasBeenSet; }
100 template <typename OperatorRoleT = Aws::String>
101 void SetOperatorRole(OperatorRoleT&& value) {
102 m_operatorRoleHasBeenSet = true;
103 m_operatorRole = std::forward<OperatorRoleT>(value);
104 }
105 template <typename OperatorRoleT = Aws::String>
107 SetOperatorRole(std::forward<OperatorRoleT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
118 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
119 template <typename KmsKeyArnT = Aws::String>
120 void SetKmsKeyArn(KmsKeyArnT&& value) {
121 m_kmsKeyArnHasBeenSet = true;
122 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
123 }
124 template <typename KmsKeyArnT = Aws::String>
126 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
137 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
138 template <typename RegionsT = Aws::Vector<Aws::String>>
139 void SetRegions(RegionsT&& value) {
140 m_regionsHasBeenSet = true;
141 m_regions = std::forward<RegionsT>(value);
142 }
143 template <typename RegionsT = Aws::Vector<Aws::String>>
145 SetRegions(std::forward<RegionsT>(value));
146 return *this;
147 }
148 template <typename RegionsT = Aws::String>
150 m_regionsHasBeenSet = true;
151 m_regions.emplace_back(std::forward<RegionsT>(value));
152 return *this;
153 }
155
157
168 inline EnvironmentScope GetEnvironmentScope() const { return m_environmentScope; }
169 inline bool EnvironmentScopeHasBeenSet() const { return m_environmentScopeHasBeenSet; }
171 m_environmentScopeHasBeenSet = true;
172 m_environmentScope = value;
173 }
175 SetEnvironmentScope(value);
176 return *this;
177 }
179
181
188 inline const OrganizationalUnitIdsUpdate& GetOrganizationalUnitIds() const { return m_organizationalUnitIds; }
189 inline bool OrganizationalUnitIdsHasBeenSet() const { return m_organizationalUnitIdsHasBeenSet; }
190 template <typename OrganizationalUnitIdsT = OrganizationalUnitIdsUpdate>
191 void SetOrganizationalUnitIds(OrganizationalUnitIdsT&& value) {
192 m_organizationalUnitIdsHasBeenSet = true;
193 m_organizationalUnitIds = std::forward<OrganizationalUnitIdsT>(value);
194 }
195 template <typename OrganizationalUnitIdsT = OrganizationalUnitIdsUpdate>
196 UpdateEnvironmentRequest& WithOrganizationalUnitIds(OrganizationalUnitIdsT&& value) {
197 SetOrganizationalUnitIds(std::forward<OrganizationalUnitIdsT>(value));
198 return *this;
199 }
201 private:
202 Aws::String m_environmentArn;
203
204 Aws::String m_description;
205
206 IdentityStoreUpdate m_identityStore;
207
208 Aws::String m_operatorRole;
209
210 Aws::String m_kmsKeyArn;
211
212 Aws::Vector<Aws::String> m_regions;
213
215
216 OrganizationalUnitIdsUpdate m_organizationalUnitIds;
217 bool m_environmentArnHasBeenSet = false;
218 bool m_descriptionHasBeenSet = false;
219 bool m_identityStoreHasBeenSet = false;
220 bool m_operatorRoleHasBeenSet = false;
221 bool m_kmsKeyArnHasBeenSet = false;
222 bool m_regionsHasBeenSet = false;
223 bool m_environmentScopeHasBeenSet = false;
224 bool m_organizationalUnitIdsHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace Assurance
229} // namespace Aws
UpdateEnvironmentRequest & WithKmsKeyArn(KmsKeyArnT &&value)
AWS_ASSURANCE_API Aws::String SerializePayload() const override
UpdateEnvironmentRequest & WithEnvironmentScope(EnvironmentScope value)
const IdentityStoreUpdate & GetIdentityStore() const
UpdateEnvironmentRequest & AddRegions(RegionsT &&value)
UpdateEnvironmentRequest & WithEnvironmentArn(EnvironmentArnT &&value)
AWS_ASSURANCE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetRegions() const
AWS_ASSURANCE_API UpdateEnvironmentRequest()=default
UpdateEnvironmentRequest & WithIdentityStore(IdentityStoreT &&value)
void SetOrganizationalUnitIds(OrganizationalUnitIdsT &&value)
UpdateEnvironmentRequest & WithOrganizationalUnitIds(OrganizationalUnitIdsT &&value)
UpdateEnvironmentRequest & WithOperatorRole(OperatorRoleT &&value)
UpdateEnvironmentRequest & WithRegions(RegionsT &&value)
const OrganizationalUnitIdsUpdate & GetOrganizationalUnitIds() const
virtual const char * GetServiceRequestName() const override
UpdateEnvironmentRequest & WithDescription(DescriptionT &&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