AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreatePublicDnsNamespaceRequest.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/PublicDnsNamespaceProperties.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 CreatePublicDnsNamespaceRequest() = 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 "CreatePublicDnsNamespace"; }
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
102 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
103 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
104 template <typename TagsT = Aws::Vector<Tag>>
105 void SetTags(TagsT&& value) {
106 m_tagsHasBeenSet = true;
107 m_tags = std::forward<TagsT>(value);
108 }
109 template <typename TagsT = Aws::Vector<Tag>>
111 SetTags(std::forward<TagsT>(value));
112 return *this;
113 }
114 template <typename TagsT = Tag>
116 m_tagsHasBeenSet = true;
117 m_tags.emplace_back(std::forward<TagsT>(value));
118 return *this;
119 }
121
123
126 inline const PublicDnsNamespaceProperties& GetProperties() const { return m_properties; }
127 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
128 template <typename PropertiesT = PublicDnsNamespaceProperties>
129 void SetProperties(PropertiesT&& value) {
130 m_propertiesHasBeenSet = true;
131 m_properties = std::forward<PropertiesT>(value);
132 }
133 template <typename PropertiesT = PublicDnsNamespaceProperties>
135 SetProperties(std::forward<PropertiesT>(value));
136 return *this;
137 }
139 private:
140 Aws::String m_name;
141
143
144 Aws::String m_description;
145
146 Aws::Vector<Tag> m_tags;
147
148 PublicDnsNamespaceProperties m_properties;
149 bool m_nameHasBeenSet = false;
150 bool m_creatorRequestIdHasBeenSet = true;
151 bool m_descriptionHasBeenSet = false;
152 bool m_tagsHasBeenSet = false;
153 bool m_propertiesHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace ServiceDiscovery
158} // namespace Aws
AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override
CreatePublicDnsNamespaceRequest & WithProperties(PropertiesT &&value)
CreatePublicDnsNamespaceRequest & WithDescription(DescriptionT &&value)
AWS_SERVICEDISCOVERY_API CreatePublicDnsNamespaceRequest()=default
CreatePublicDnsNamespaceRequest & WithCreatorRequestId(CreatorRequestIdT &&value)
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