AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateOrganizationRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/workmail/WorkMailRequest.h>
11#include <aws/workmail/WorkMail_EXPORTS.h>
12#include <aws/workmail/model/Domain.h>
13
14#include <utility>
15
16namespace Aws {
17namespace WorkMail {
18namespace Model {
19
23 public:
24 AWS_WORKMAIL_API CreateOrganizationRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateOrganization"; }
31
32 AWS_WORKMAIL_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
41 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
42 template <typename DirectoryIdT = Aws::String>
43 void SetDirectoryId(DirectoryIdT&& value) {
44 m_directoryIdHasBeenSet = true;
45 m_directoryId = std::forward<DirectoryIdT>(value);
46 }
47 template <typename DirectoryIdT = Aws::String>
49 SetDirectoryId(std::forward<DirectoryIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetAlias() const { return m_alias; }
59 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
60 template <typename AliasT = Aws::String>
61 void SetAlias(AliasT&& value) {
62 m_aliasHasBeenSet = true;
63 m_alias = std::forward<AliasT>(value);
64 }
65 template <typename AliasT = Aws::String>
67 SetAlias(std::forward<AliasT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetClientToken() const { return m_clientToken; }
77 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
78 template <typename ClientTokenT = Aws::String>
79 void SetClientToken(ClientTokenT&& value) {
80 m_clientTokenHasBeenSet = true;
81 m_clientToken = std::forward<ClientTokenT>(value);
82 }
83 template <typename ClientTokenT = Aws::String>
85 SetClientToken(std::forward<ClientTokenT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Vector<Domain>& GetDomains() const { return m_domains; }
95 inline bool DomainsHasBeenSet() const { return m_domainsHasBeenSet; }
96 template <typename DomainsT = Aws::Vector<Domain>>
97 void SetDomains(DomainsT&& value) {
98 m_domainsHasBeenSet = true;
99 m_domains = std::forward<DomainsT>(value);
100 }
101 template <typename DomainsT = Aws::Vector<Domain>>
103 SetDomains(std::forward<DomainsT>(value));
104 return *this;
105 }
106 template <typename DomainsT = Domain>
108 m_domainsHasBeenSet = true;
109 m_domains.emplace_back(std::forward<DomainsT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
119 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
120 template <typename KmsKeyArnT = Aws::String>
121 void SetKmsKeyArn(KmsKeyArnT&& value) {
122 m_kmsKeyArnHasBeenSet = true;
123 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
124 }
125 template <typename KmsKeyArnT = Aws::String>
127 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
128 return *this;
129 }
131
133
138 inline bool GetEnableInteroperability() const { return m_enableInteroperability; }
139 inline bool EnableInteroperabilityHasBeenSet() const { return m_enableInteroperabilityHasBeenSet; }
140 inline void SetEnableInteroperability(bool value) {
141 m_enableInteroperabilityHasBeenSet = true;
142 m_enableInteroperability = value;
143 }
146 return *this;
147 }
149 private:
150 Aws::String m_directoryId;
151
152 Aws::String m_alias;
153
155
156 Aws::Vector<Domain> m_domains;
157
158 Aws::String m_kmsKeyArn;
159
160 bool m_enableInteroperability{false};
161 bool m_directoryIdHasBeenSet = false;
162 bool m_aliasHasBeenSet = false;
163 bool m_clientTokenHasBeenSet = true;
164 bool m_domainsHasBeenSet = false;
165 bool m_kmsKeyArnHasBeenSet = false;
166 bool m_enableInteroperabilityHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace WorkMail
171} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateOrganizationRequest & WithEnableInteroperability(bool value)
CreateOrganizationRequest & WithClientToken(ClientTokenT &&value)
CreateOrganizationRequest & AddDomains(DomainsT &&value)
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_WORKMAIL_API CreateOrganizationRequest()=default
CreateOrganizationRequest & WithAlias(AliasT &&value)
CreateOrganizationRequest & WithDomains(DomainsT &&value)
CreateOrganizationRequest & WithDirectoryId(DirectoryIdT &&value)
AWS_WORKMAIL_API Aws::String SerializePayload() const override
CreateOrganizationRequest & WithKmsKeyArn(KmsKeyArnT &&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