AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateDomainRequest.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datazone/model/DomainVersion.h>
11#include <aws/datazone/model/SingleSignOn.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace DataZone
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_DATAZONE_API CreateDomainRequest() = default;
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 "CreateDomain"; }
35
36 AWS_DATAZONE_API Aws::String SerializePayload() const override;
37
38
40
44 inline const Aws::String& GetClientToken() const { return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 template<typename ClientTokenT = Aws::String>
47 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
48 template<typename ClientTokenT = Aws::String>
49 CreateDomainRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template<typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
60 template<typename DescriptionT = Aws::String>
61 CreateDomainRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
63
65
70 inline const Aws::String& GetDomainExecutionRole() const { return m_domainExecutionRole; }
71 inline bool DomainExecutionRoleHasBeenSet() const { return m_domainExecutionRoleHasBeenSet; }
72 template<typename DomainExecutionRoleT = Aws::String>
73 void SetDomainExecutionRole(DomainExecutionRoleT&& value) { m_domainExecutionRoleHasBeenSet = true; m_domainExecutionRole = std::forward<DomainExecutionRoleT>(value); }
74 template<typename DomainExecutionRoleT = Aws::String>
75 CreateDomainRequest& WithDomainExecutionRole(DomainExecutionRoleT&& value) { SetDomainExecutionRole(std::forward<DomainExecutionRoleT>(value)); return *this;}
77
79
82 inline DomainVersion GetDomainVersion() const { return m_domainVersion; }
83 inline bool DomainVersionHasBeenSet() const { return m_domainVersionHasBeenSet; }
84 inline void SetDomainVersion(DomainVersion value) { m_domainVersionHasBeenSet = true; m_domainVersion = value; }
87
89
94 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
95 inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; }
96 template<typename KmsKeyIdentifierT = Aws::String>
97 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) { m_kmsKeyIdentifierHasBeenSet = true; m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value); }
98 template<typename KmsKeyIdentifierT = Aws::String>
99 CreateDomainRequest& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) { SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value)); return *this;}
101
103
106 inline const Aws::String& GetName() const { return m_name; }
107 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
108 template<typename NameT = Aws::String>
109 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
110 template<typename NameT = Aws::String>
111 CreateDomainRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
113
115
118 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
119 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
120 template<typename ServiceRoleT = Aws::String>
121 void SetServiceRole(ServiceRoleT&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::forward<ServiceRoleT>(value); }
122 template<typename ServiceRoleT = Aws::String>
123 CreateDomainRequest& WithServiceRole(ServiceRoleT&& value) { SetServiceRole(std::forward<ServiceRoleT>(value)); return *this;}
125
127
130 inline const SingleSignOn& GetSingleSignOn() const { return m_singleSignOn; }
131 inline bool SingleSignOnHasBeenSet() const { return m_singleSignOnHasBeenSet; }
132 template<typename SingleSignOnT = SingleSignOn>
133 void SetSingleSignOn(SingleSignOnT&& value) { m_singleSignOnHasBeenSet = true; m_singleSignOn = std::forward<SingleSignOnT>(value); }
134 template<typename SingleSignOnT = SingleSignOn>
135 CreateDomainRequest& WithSingleSignOn(SingleSignOnT&& value) { SetSingleSignOn(std::forward<SingleSignOnT>(value)); return *this;}
137
139
142 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
143 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
144 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
145 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
146 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
147 CreateDomainRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
148 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
149 CreateDomainRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
150 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
151 }
153 private:
154
156 bool m_clientTokenHasBeenSet = true;
157
158 Aws::String m_description;
159 bool m_descriptionHasBeenSet = false;
160
161 Aws::String m_domainExecutionRole;
162 bool m_domainExecutionRoleHasBeenSet = false;
163
164 DomainVersion m_domainVersion{DomainVersion::NOT_SET};
165 bool m_domainVersionHasBeenSet = false;
166
167 Aws::String m_kmsKeyIdentifier;
168 bool m_kmsKeyIdentifierHasBeenSet = false;
169
170 Aws::String m_name;
171 bool m_nameHasBeenSet = false;
172
173 Aws::String m_serviceRole;
174 bool m_serviceRoleHasBeenSet = false;
175
176 SingleSignOn m_singleSignOn;
177 bool m_singleSignOnHasBeenSet = false;
178
180 bool m_tagsHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace DataZone
185} // namespace Aws
CreateDomainRequest & WithTags(TagsT &&value)
CreateDomainRequest & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
CreateDomainRequest & WithDomainExecutionRole(DomainExecutionRoleT &&value)
CreateDomainRequest & WithDomainVersion(DomainVersion value)
const Aws::String & GetDomainExecutionRole() const
CreateDomainRequest & WithName(NameT &&value)
CreateDomainRequest & WithSingleSignOn(SingleSignOnT &&value)
CreateDomainRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetKmsKeyIdentifier() const
CreateDomainRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateDomainRequest & WithServiceRole(ServiceRoleT &&value)
AWS_DATAZONE_API CreateDomainRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetKmsKeyIdentifier(KmsKeyIdentifierT &&value)
CreateDomainRequest & WithDescription(DescriptionT &&value)
void SetDomainExecutionRole(DomainExecutionRoleT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String