AWS SDK for C++  1.9.104
AWS SDK for C++
CreateOrganizationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 #include <aws/core/utils/UUID.h>
14 
15 namespace Aws
16 {
17 namespace WorkMail
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateOrganization"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
44 
48  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
49 
53  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
54 
58  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
59 
63  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
64 
68  inline CreateOrganizationRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
69 
73  inline CreateOrganizationRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
74 
78  inline CreateOrganizationRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
79 
80 
84  inline const Aws::String& GetAlias() const{ return m_alias; }
85 
89  inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
90 
94  inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
95 
99  inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
100 
104  inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
105 
109  inline CreateOrganizationRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
110 
114  inline CreateOrganizationRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
115 
119  inline CreateOrganizationRequest& WithAlias(const char* value) { SetAlias(value); return *this;}
120 
121 
125  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
126 
130  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
131 
135  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
136 
140  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
141 
145  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
146 
150  inline CreateOrganizationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
151 
155  inline CreateOrganizationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
156 
160  inline CreateOrganizationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
161 
162 
166  inline const Aws::Vector<Domain>& GetDomains() const{ return m_domains; }
167 
171  inline bool DomainsHasBeenSet() const { return m_domainsHasBeenSet; }
172 
176  inline void SetDomains(const Aws::Vector<Domain>& value) { m_domainsHasBeenSet = true; m_domains = value; }
177 
181  inline void SetDomains(Aws::Vector<Domain>&& value) { m_domainsHasBeenSet = true; m_domains = std::move(value); }
182 
186  inline CreateOrganizationRequest& WithDomains(const Aws::Vector<Domain>& value) { SetDomains(value); return *this;}
187 
191  inline CreateOrganizationRequest& WithDomains(Aws::Vector<Domain>&& value) { SetDomains(std::move(value)); return *this;}
192 
196  inline CreateOrganizationRequest& AddDomains(const Domain& value) { m_domainsHasBeenSet = true; m_domains.push_back(value); return *this; }
197 
201  inline CreateOrganizationRequest& AddDomains(Domain&& value) { m_domainsHasBeenSet = true; m_domains.push_back(std::move(value)); return *this; }
202 
203 
208  inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
209 
214  inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
215 
220  inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
221 
226  inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
227 
232  inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
233 
238  inline CreateOrganizationRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
239 
244  inline CreateOrganizationRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
245 
250  inline CreateOrganizationRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
251 
252 
258  inline bool GetEnableInteroperability() const{ return m_enableInteroperability; }
259 
265  inline bool EnableInteroperabilityHasBeenSet() const { return m_enableInteroperabilityHasBeenSet; }
266 
272  inline void SetEnableInteroperability(bool value) { m_enableInteroperabilityHasBeenSet = true; m_enableInteroperability = value; }
273 
279  inline CreateOrganizationRequest& WithEnableInteroperability(bool value) { SetEnableInteroperability(value); return *this;}
280 
281  private:
282 
283  Aws::String m_directoryId;
284  bool m_directoryIdHasBeenSet;
285 
286  Aws::String m_alias;
287  bool m_aliasHasBeenSet;
288 
289  Aws::String m_clientToken;
290  bool m_clientTokenHasBeenSet;
291 
292  Aws::Vector<Domain> m_domains;
293  bool m_domainsHasBeenSet;
294 
295  Aws::String m_kmsKeyArn;
296  bool m_kmsKeyArnHasBeenSet;
297 
298  bool m_enableInteroperability;
299  bool m_enableInteroperabilityHasBeenSet;
300  };
301 
302 } // namespace Model
303 } // namespace WorkMail
304 } // namespace Aws
Aws::WorkMail::Model::CreateOrganizationRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateOrganizationRequest.h:140
Aws::WorkMail::Model::Domain
Definition: Domain.h:38
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WorkMail::Model::CreateOrganizationRequest::AddDomains
CreateOrganizationRequest & AddDomains(Domain &&value)
Definition: CreateOrganizationRequest.h:201
Aws::WorkMail::Model::CreateOrganizationRequest::EnableInteroperabilityHasBeenSet
bool EnableInteroperabilityHasBeenSet() const
Definition: CreateOrganizationRequest.h:265
Aws::WorkMail::Model::CreateOrganizationRequest
Definition: CreateOrganizationRequest.h:25
Domain.h
Aws::WorkMail::WorkMailRequest
Definition: WorkMailRequest.h:17
Aws::WorkMail::Model::CreateOrganizationRequest::GetDomains
const Aws::Vector< Domain > & GetDomains() const
Definition: CreateOrganizationRequest.h:166
Aws::WorkMail::Model::CreateOrganizationRequest::WithKmsKeyArn
CreateOrganizationRequest & WithKmsKeyArn(const Aws::String &value)
Definition: CreateOrganizationRequest.h:238
Aws::WorkMail::Model::CreateOrganizationRequest::GetEnableInteroperability
bool GetEnableInteroperability() const
Definition: CreateOrganizationRequest.h:258
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WorkMail::Model::CreateOrganizationRequest::DomainsHasBeenSet
bool DomainsHasBeenSet() const
Definition: CreateOrganizationRequest.h:171
WorkMail_EXPORTS.h
Aws::WorkMail::Model::CreateOrganizationRequest::WithDomains
CreateOrganizationRequest & WithDomains(Aws::Vector< Domain > &&value)
Definition: CreateOrganizationRequest.h:191
Aws::WorkMail::Model::CreateOrganizationRequest::SetEnableInteroperability
void SetEnableInteroperability(bool value)
Definition: CreateOrganizationRequest.h:272
AWSVector.h
WorkMailRequest.h
Aws::WorkMail::Model::CreateOrganizationRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateOrganizationRequest.h:135
Aws::WorkMail::Model::CreateOrganizationRequest::CreateOrganizationRequest
CreateOrganizationRequest()
Aws::WorkMail::Model::CreateOrganizationRequest::WithClientToken
CreateOrganizationRequest & WithClientToken(const char *value)
Definition: CreateOrganizationRequest.h:160
Aws::WorkMail::Model::CreateOrganizationRequest::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: CreateOrganizationRequest.h:48
Aws::WorkMail::Model::CreateOrganizationRequest::AddDomains
CreateOrganizationRequest & AddDomains(const Domain &value)
Definition: CreateOrganizationRequest.h:196
Aws::WorkMail::Model::CreateOrganizationRequest::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: CreateOrganizationRequest.h:63
Aws::WorkMail::Model::CreateOrganizationRequest::WithAlias
CreateOrganizationRequest & WithAlias(const char *value)
Definition: CreateOrganizationRequest.h:119
Aws::WorkMail::Model::CreateOrganizationRequest::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: CreateOrganizationRequest.h:53
Aws::WorkMail::Model::CreateOrganizationRequest::WithAlias
CreateOrganizationRequest & WithAlias(Aws::String &&value)
Definition: CreateOrganizationRequest.h:114
Aws::WorkMail::Model::CreateOrganizationRequest::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: CreateOrganizationRequest.h:58
Aws::WorkMail::Model::CreateOrganizationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WorkMail::Model::CreateOrganizationRequest::SetAlias
void SetAlias(const Aws::String &value)
Definition: CreateOrganizationRequest.h:94
Aws::WorkMail::Model::CreateOrganizationRequest::KmsKeyArnHasBeenSet
bool KmsKeyArnHasBeenSet() const
Definition: CreateOrganizationRequest.h:214
Aws::WorkMail::Model::CreateOrganizationRequest::WithClientToken
CreateOrganizationRequest & WithClientToken(Aws::String &&value)
Definition: CreateOrganizationRequest.h:155
Aws::WorkMail::Model::CreateOrganizationRequest::GetKmsKeyArn
const Aws::String & GetKmsKeyArn() const
Definition: CreateOrganizationRequest.h:208
Aws::WorkMail::Model::CreateOrganizationRequest::WithKmsKeyArn
CreateOrganizationRequest & WithKmsKeyArn(Aws::String &&value)
Definition: CreateOrganizationRequest.h:244
AWSString.h
Aws::WorkMail::Model::CreateOrganizationRequest::SetKmsKeyArn
void SetKmsKeyArn(Aws::String &&value)
Definition: CreateOrganizationRequest.h:226
Aws::WorkMail::Model::CreateOrganizationRequest::WithDirectoryId
CreateOrganizationRequest & WithDirectoryId(const char *value)
Definition: CreateOrganizationRequest.h:78
Aws::WorkMail::Model::CreateOrganizationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkMail::Model::CreateOrganizationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateOrganizationRequest.h:33
Aws::WorkMail::Model::CreateOrganizationRequest::WithAlias
CreateOrganizationRequest & WithAlias(const Aws::String &value)
Definition: CreateOrganizationRequest.h:109
Aws::WorkMail::Model::CreateOrganizationRequest::WithDirectoryId
CreateOrganizationRequest & WithDirectoryId(const Aws::String &value)
Definition: CreateOrganizationRequest.h:68
Aws::WorkMail::Model::CreateOrganizationRequest::WithDomains
CreateOrganizationRequest & WithDomains(const Aws::Vector< Domain > &value)
Definition: CreateOrganizationRequest.h:186
Aws
Definition: AccessManagementClient.h:15
Aws::WorkMail::Model::CreateOrganizationRequest::WithDirectoryId
CreateOrganizationRequest & WithDirectoryId(Aws::String &&value)
Definition: CreateOrganizationRequest.h:73
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::WorkMail::Model::CreateOrganizationRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateOrganizationRequest.h:130
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::CreateOrganizationRequest::WithEnableInteroperability
CreateOrganizationRequest & WithEnableInteroperability(bool value)
Definition: CreateOrganizationRequest.h:279
Aws::WorkMail::Model::CreateOrganizationRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateOrganizationRequest.h:125
Aws::WorkMail::Model::CreateOrganizationRequest::WithClientToken
CreateOrganizationRequest & WithClientToken(const Aws::String &value)
Definition: CreateOrganizationRequest.h:150
Aws::WorkMail::Model::CreateOrganizationRequest::SetKmsKeyArn
void SetKmsKeyArn(const Aws::String &value)
Definition: CreateOrganizationRequest.h:220
Aws::WorkMail::Model::CreateOrganizationRequest::WithKmsKeyArn
CreateOrganizationRequest & WithKmsKeyArn(const char *value)
Definition: CreateOrganizationRequest.h:250
Aws::WorkMail::Model::CreateOrganizationRequest::SetAlias
void SetAlias(const char *value)
Definition: CreateOrganizationRequest.h:104
UUID.h
Aws::WorkMail::Model::CreateOrganizationRequest::SetAlias
void SetAlias(Aws::String &&value)
Definition: CreateOrganizationRequest.h:99
Aws::WorkMail::Model::CreateOrganizationRequest::AliasHasBeenSet
bool AliasHasBeenSet() const
Definition: CreateOrganizationRequest.h:89
Aws::WorkMail::Model::CreateOrganizationRequest::GetAlias
const Aws::String & GetAlias() const
Definition: CreateOrganizationRequest.h:84
Aws::WorkMail::Model::CreateOrganizationRequest::SetKmsKeyArn
void SetKmsKeyArn(const char *value)
Definition: CreateOrganizationRequest.h:232
Aws::WorkMail::Model::CreateOrganizationRequest::SetDomains
void SetDomains(Aws::Vector< Domain > &&value)
Definition: CreateOrganizationRequest.h:181
Aws::WorkMail::Model::CreateOrganizationRequest::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: CreateOrganizationRequest.h:43
Aws::WorkMail::Model::CreateOrganizationRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateOrganizationRequest.h:145
Aws::WorkMail::Model::CreateOrganizationRequest::SetDomains
void SetDomains(const Aws::Vector< Domain > &value)
Definition: CreateOrganizationRequest.h:176