AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
CreatePrivateDnsNamespaceRequest.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/servicediscovery/ServiceDiscoveryRequest.h>
11#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
12#include <aws/servicediscovery/model/PrivateDnsNamespaceProperties.h>
13#include <aws/servicediscovery/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ServiceDiscovery {
19namespace Model {
20
24 public:
25 AWS_SERVICEDISCOVERY_API CreatePrivateDnsNamespaceRequest() = 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 "CreatePrivateDnsNamespace"; }
32
33 AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override;
34
35 AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
64 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
65 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
66 template <typename CreatorRequestIdT = Aws::String>
67 void SetCreatorRequestId(CreatorRequestIdT&& value) {
68 m_creatorRequestIdHasBeenSet = true;
69 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
70 }
71 template <typename CreatorRequestIdT = Aws::String>
73 SetCreatorRequestId(std::forward<CreatorRequestIdT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetDescription() const { return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 template <typename DescriptionT = Aws::String>
85 void SetDescription(DescriptionT&& value) {
86 m_descriptionHasBeenSet = true;
87 m_description = std::forward<DescriptionT>(value);
88 }
89 template <typename DescriptionT = Aws::String>
91 SetDescription(std::forward<DescriptionT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetVpc() const { return m_vpc; }
101 inline bool VpcHasBeenSet() const { return m_vpcHasBeenSet; }
102 template <typename VpcT = Aws::String>
103 void SetVpc(VpcT&& value) {
104 m_vpcHasBeenSet = true;
105 m_vpc = std::forward<VpcT>(value);
106 }
107 template <typename VpcT = Aws::String>
109 SetVpc(std::forward<VpcT>(value));
110 return *this;
111 }
113
115
120 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
121 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
122 template <typename TagsT = Aws::Vector<Tag>>
123 void SetTags(TagsT&& value) {
124 m_tagsHasBeenSet = true;
125 m_tags = std::forward<TagsT>(value);
126 }
127 template <typename TagsT = Aws::Vector<Tag>>
129 SetTags(std::forward<TagsT>(value));
130 return *this;
131 }
132 template <typename TagsT = Tag>
134 m_tagsHasBeenSet = true;
135 m_tags.emplace_back(std::forward<TagsT>(value));
136 return *this;
137 }
139
141
144 inline const PrivateDnsNamespaceProperties& GetProperties() const { return m_properties; }
145 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
146 template <typename PropertiesT = PrivateDnsNamespaceProperties>
147 void SetProperties(PropertiesT&& value) {
148 m_propertiesHasBeenSet = true;
149 m_properties = std::forward<PropertiesT>(value);
150 }
151 template <typename PropertiesT = PrivateDnsNamespaceProperties>
153 SetProperties(std::forward<PropertiesT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_name;
159 bool m_nameHasBeenSet = false;
160
162 bool m_creatorRequestIdHasBeenSet = true;
163
164 Aws::String m_description;
165 bool m_descriptionHasBeenSet = false;
166
167 Aws::String m_vpc;
168 bool m_vpcHasBeenSet = false;
169
170 Aws::Vector<Tag> m_tags;
171 bool m_tagsHasBeenSet = false;
172
173 PrivateDnsNamespaceProperties m_properties;
174 bool m_propertiesHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace ServiceDiscovery
179} // namespace Aws
CreatePrivateDnsNamespaceRequest & WithDescription(DescriptionT &&value)
CreatePrivateDnsNamespaceRequest & WithCreatorRequestId(CreatorRequestIdT &&value)
CreatePrivateDnsNamespaceRequest & WithProperties(PropertiesT &&value)
AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SERVICEDISCOVERY_API CreatePrivateDnsNamespaceRequest()=default
AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
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