AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDomainRequest.h
1
6#pragma once
7#include <aws/voice-id/VoiceID_EXPORTS.h>
8#include <aws/voice-id/VoiceIDRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/voice-id/model/ServerSideEncryptionConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/voice-id/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace VoiceID
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_VOICEID_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_VOICEID_API Aws::String SerializePayload() const override;
37
39
40
42
49 inline const Aws::String& GetClientToken() const { return m_clientToken; }
50 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
51 template<typename ClientTokenT = Aws::String>
52 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
53 template<typename ClientTokenT = Aws::String>
54 CreateDomainRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template<typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
65 template<typename DescriptionT = Aws::String>
66 CreateDomainRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template<typename NameT = Aws::String>
76 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
77 template<typename NameT = Aws::String>
78 CreateDomainRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
80
82
89 inline const ServerSideEncryptionConfiguration& GetServerSideEncryptionConfiguration() const { return m_serverSideEncryptionConfiguration; }
90 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
91 template<typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
92 void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value); }
93 template<typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
94 CreateDomainRequest& WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) { SetServerSideEncryptionConfiguration(std::forward<ServerSideEncryptionConfigurationT>(value)); return *this;}
96
98
101 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 template<typename TagsT = Aws::Vector<Tag>>
104 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
105 template<typename TagsT = Aws::Vector<Tag>>
106 CreateDomainRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
107 template<typename TagsT = Tag>
108 CreateDomainRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
110 private:
111
113 bool m_clientTokenHasBeenSet = true;
114
115 Aws::String m_description;
116 bool m_descriptionHasBeenSet = false;
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120
121 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
122 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
123
124 Aws::Vector<Tag> m_tags;
125 bool m_tagsHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace VoiceID
130} // 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