AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateHttpNamespaceRequest.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/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ServiceDiscovery {
18namespace Model {
19
23 public:
24 AWS_SERVICEDISCOVERY_API CreateHttpNamespaceRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateHttpNamespace"; }
31
32 AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override;
33
34 AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
61 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
62 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
63 template <typename CreatorRequestIdT = Aws::String>
64 void SetCreatorRequestId(CreatorRequestIdT&& value) {
65 m_creatorRequestIdHasBeenSet = true;
66 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
67 }
68 template <typename CreatorRequestIdT = Aws::String>
70 SetCreatorRequestId(std::forward<CreatorRequestIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
99 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
100 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
101 template <typename TagsT = Aws::Vector<Tag>>
102 void SetTags(TagsT&& value) {
103 m_tagsHasBeenSet = true;
104 m_tags = std::forward<TagsT>(value);
105 }
106 template <typename TagsT = Aws::Vector<Tag>>
108 SetTags(std::forward<TagsT>(value));
109 return *this;
110 }
111 template <typename TagsT = Tag>
113 m_tagsHasBeenSet = true;
114 m_tags.emplace_back(std::forward<TagsT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_name;
120
122
123 Aws::String m_description;
124
125 Aws::Vector<Tag> m_tags;
126 bool m_nameHasBeenSet = false;
127 bool m_creatorRequestIdHasBeenSet = true;
128 bool m_descriptionHasBeenSet = false;
129 bool m_tagsHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace ServiceDiscovery
134} // namespace Aws
CreateHttpNamespaceRequest & WithDescription(DescriptionT &&value)
CreateHttpNamespaceRequest & WithCreatorRequestId(CreatorRequestIdT &&value)
AWS_SERVICEDISCOVERY_API CreateHttpNamespaceRequest()=default
AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override
AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() 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