AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateOrganizationRequest.h
1
6#pragma once
7#include <aws/workmail/WorkMail_EXPORTS.h>
8#include <aws/workmail/WorkMailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/workmail/model/Domain.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace WorkMail
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_WORKMAIL_API CreateOrganizationRequest();
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_WORKMAIL_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
45 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
46 inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
47 inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
48 inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
49 inline CreateOrganizationRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
50 inline CreateOrganizationRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
51 inline CreateOrganizationRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
53
55
58 inline const Aws::String& GetAlias() const{ return m_alias; }
59 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
60 inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
61 inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
62 inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
63 inline CreateOrganizationRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
64 inline CreateOrganizationRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
65 inline CreateOrganizationRequest& WithAlias(const char* value) { SetAlias(value); return *this;}
67
69
72 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
73 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
74 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
75 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
76 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
77 inline CreateOrganizationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
78 inline CreateOrganizationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
79 inline CreateOrganizationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
81
83
86 inline const Aws::Vector<Domain>& GetDomains() const{ return m_domains; }
87 inline bool DomainsHasBeenSet() const { return m_domainsHasBeenSet; }
88 inline void SetDomains(const Aws::Vector<Domain>& value) { m_domainsHasBeenSet = true; m_domains = value; }
89 inline void SetDomains(Aws::Vector<Domain>&& value) { m_domainsHasBeenSet = true; m_domains = std::move(value); }
90 inline CreateOrganizationRequest& WithDomains(const Aws::Vector<Domain>& value) { SetDomains(value); return *this;}
91 inline CreateOrganizationRequest& WithDomains(Aws::Vector<Domain>&& value) { SetDomains(std::move(value)); return *this;}
92 inline CreateOrganizationRequest& AddDomains(const Domain& value) { m_domainsHasBeenSet = true; m_domains.push_back(value); return *this; }
93 inline CreateOrganizationRequest& AddDomains(Domain&& value) { m_domainsHasBeenSet = true; m_domains.push_back(std::move(value)); return *this; }
95
97
100 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
101 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
102 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
103 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
104 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
105 inline CreateOrganizationRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
106 inline CreateOrganizationRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
107 inline CreateOrganizationRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
109
111
116 inline bool GetEnableInteroperability() const{ return m_enableInteroperability; }
117 inline bool EnableInteroperabilityHasBeenSet() const { return m_enableInteroperabilityHasBeenSet; }
118 inline void SetEnableInteroperability(bool value) { m_enableInteroperabilityHasBeenSet = true; m_enableInteroperability = value; }
121 private:
122
123 Aws::String m_directoryId;
124 bool m_directoryIdHasBeenSet = false;
125
126 Aws::String m_alias;
127 bool m_aliasHasBeenSet = false;
128
129 Aws::String m_clientToken;
130 bool m_clientTokenHasBeenSet = false;
131
132 Aws::Vector<Domain> m_domains;
133 bool m_domainsHasBeenSet = false;
134
135 Aws::String m_kmsKeyArn;
136 bool m_kmsKeyArnHasBeenSet = false;
137
138 bool m_enableInteroperability;
139 bool m_enableInteroperabilityHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace WorkMail
144} // namespace Aws
CreateOrganizationRequest & AddDomains(const Domain &value)
CreateOrganizationRequest & WithKmsKeyArn(const Aws::String &value)
CreateOrganizationRequest & WithDirectoryId(const char *value)
CreateOrganizationRequest & WithEnableInteroperability(bool value)
CreateOrganizationRequest & WithAlias(const Aws::String &value)
CreateOrganizationRequest & WithClientToken(Aws::String &&value)
CreateOrganizationRequest & WithDomains(const Aws::Vector< Domain > &value)
CreateOrganizationRequest & WithKmsKeyArn(const char *value)
CreateOrganizationRequest & WithAlias(const char *value)
CreateOrganizationRequest & WithDomains(Aws::Vector< Domain > &&value)
CreateOrganizationRequest & WithClientToken(const char *value)
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
CreateOrganizationRequest & WithClientToken(const Aws::String &value)
CreateOrganizationRequest & WithKmsKeyArn(Aws::String &&value)
CreateOrganizationRequest & AddDomains(Domain &&value)
CreateOrganizationRequest & WithAlias(Aws::String &&value)
AWS_WORKMAIL_API Aws::String SerializePayload() const override
CreateOrganizationRequest & WithDirectoryId(Aws::String &&value)
void SetDomains(const Aws::Vector< Domain > &value)
CreateOrganizationRequest & WithDirectoryId(const 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