AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
CreateDomainRequest.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/voice-id/VoiceIDRequest.h>
11#include <aws/voice-id/VoiceID_EXPORTS.h>
12#include <aws/voice-id/model/ServerSideEncryptionConfiguration.h>
13#include <aws/voice-id/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace VoiceID {
19namespace Model {
20
24 public:
25 AWS_VOICEID_API CreateDomainRequest() = 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 "CreateDomain"; }
32
33 AWS_VOICEID_API Aws::String SerializePayload() const override;
34
36
38
45 inline const Aws::String& GetClientToken() const { return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 template <typename ClientTokenT = Aws::String>
48 void SetClientToken(ClientTokenT&& value) {
49 m_clientTokenHasBeenSet = true;
50 m_clientToken = std::forward<ClientTokenT>(value);
51 }
52 template <typename ClientTokenT = Aws::String>
53 CreateDomainRequest& WithClientToken(ClientTokenT&& value) {
54 SetClientToken(std::forward<ClientTokenT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDescription() const { return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 template <typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) {
67 m_descriptionHasBeenSet = true;
68 m_description = std::forward<DescriptionT>(value);
69 }
70 template <typename DescriptionT = Aws::String>
71 CreateDomainRequest& WithDescription(DescriptionT&& value) {
72 SetDescription(std::forward<DescriptionT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetName() const { return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 template <typename NameT = Aws::String>
84 void SetName(NameT&& value) {
85 m_nameHasBeenSet = true;
86 m_name = std::forward<NameT>(value);
87 }
88 template <typename NameT = Aws::String>
89 CreateDomainRequest& WithName(NameT&& value) {
90 SetName(std::forward<NameT>(value));
91 return *this;
92 }
94
96
104 return m_serverSideEncryptionConfiguration;
105 }
106 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
107 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
108 void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) {
109 m_serverSideEncryptionConfigurationHasBeenSet = true;
110 m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value);
111 }
112 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
113 CreateDomainRequest& WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) {
114 SetServerSideEncryptionConfiguration(std::forward<ServerSideEncryptionConfigurationT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
124 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
125 template <typename TagsT = Aws::Vector<Tag>>
126 void SetTags(TagsT&& value) {
127 m_tagsHasBeenSet = true;
128 m_tags = std::forward<TagsT>(value);
129 }
130 template <typename TagsT = Aws::Vector<Tag>>
132 SetTags(std::forward<TagsT>(value));
133 return *this;
134 }
135 template <typename TagsT = Tag>
136 CreateDomainRequest& AddTags(TagsT&& value) {
137 m_tagsHasBeenSet = true;
138 m_tags.emplace_back(std::forward<TagsT>(value));
139 return *this;
140 }
142 private:
144
145 Aws::String m_description;
146
147 Aws::String m_name;
148
149 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
150
151 Aws::Vector<Tag> m_tags;
152 bool m_clientTokenHasBeenSet = true;
153 bool m_descriptionHasBeenSet = false;
154 bool m_nameHasBeenSet = false;
155 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
156 bool m_tagsHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace VoiceID
161} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateDomainRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateDomainRequest & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
virtual const char * GetServiceRequestName() const override
CreateDomainRequest & WithTags(TagsT &&value)
AWS_VOICEID_API CreateDomainRequest()=default
CreateDomainRequest & WithClientToken(ClientTokenT &&value)
AWS_VOICEID_API Aws::String SerializePayload() const override
CreateDomainRequest & WithName(NameT &&value)
CreateDomainRequest & AddTags(TagsT &&value)
AWS_VOICEID_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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