AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreatePrivateDnsNamespaceRequest.h
1
6#pragma once
7#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
8#include <aws/servicediscovery/ServiceDiscoveryRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/servicediscovery/model/PrivateDnsNamespaceProperties.h>
12#include <aws/servicediscovery/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace ServiceDiscovery
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SERVICEDISCOVERY_API CreatePrivateDnsNamespaceRequest() = 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 "CreatePrivateDnsNamespace"; }
35
36 AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override;
37
38 AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 CreatePrivateDnsNamespaceRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
62 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
63 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
64 template<typename CreatorRequestIdT = Aws::String>
65 void SetCreatorRequestId(CreatorRequestIdT&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::forward<CreatorRequestIdT>(value); }
66 template<typename CreatorRequestIdT = Aws::String>
67 CreatePrivateDnsNamespaceRequest& WithCreatorRequestId(CreatorRequestIdT&& value) { SetCreatorRequestId(std::forward<CreatorRequestIdT>(value)); return *this;}
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template<typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
78 template<typename DescriptionT = Aws::String>
79 CreatePrivateDnsNamespaceRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
81
83
86 inline const Aws::String& GetVpc() const { return m_vpc; }
87 inline bool VpcHasBeenSet() const { return m_vpcHasBeenSet; }
88 template<typename VpcT = Aws::String>
89 void SetVpc(VpcT&& value) { m_vpcHasBeenSet = true; m_vpc = std::forward<VpcT>(value); }
90 template<typename VpcT = Aws::String>
91 CreatePrivateDnsNamespaceRequest& WithVpc(VpcT&& value) { SetVpc(std::forward<VpcT>(value)); return *this;}
93
95
100 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
101 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
102 template<typename TagsT = Aws::Vector<Tag>>
103 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
104 template<typename TagsT = Aws::Vector<Tag>>
105 CreatePrivateDnsNamespaceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
106 template<typename TagsT = Tag>
107 CreatePrivateDnsNamespaceRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
109
111
114 inline const PrivateDnsNamespaceProperties& GetProperties() const { return m_properties; }
115 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
116 template<typename PropertiesT = PrivateDnsNamespaceProperties>
117 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
118 template<typename PropertiesT = PrivateDnsNamespaceProperties>
119 CreatePrivateDnsNamespaceRequest& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
121 private:
122
123 Aws::String m_name;
124 bool m_nameHasBeenSet = false;
125
127 bool m_creatorRequestIdHasBeenSet = true;
128
129 Aws::String m_description;
130 bool m_descriptionHasBeenSet = false;
131
132 Aws::String m_vpc;
133 bool m_vpcHasBeenSet = false;
134
135 Aws::Vector<Tag> m_tags;
136 bool m_tagsHasBeenSet = false;
137
138 PrivateDnsNamespaceProperties m_properties;
139 bool m_propertiesHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace ServiceDiscovery
144} // 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