AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePublicDnsNamespaceRequest.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/PublicDnsNamespaceProperties.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 CreatePublicDnsNamespaceRequest();
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 "CreatePublicDnsNamespace"; }
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline CreatePublicDnsNamespaceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline CreatePublicDnsNamespaceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline CreatePublicDnsNamespaceRequest& WithName(const char* value) { SetName(value); return *this;}
56
58
64 inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
65 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
66 inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
67 inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
68 inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
70 inline CreatePublicDnsNamespaceRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
71 inline CreatePublicDnsNamespaceRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
73
75
78 inline const Aws::String& GetDescription() const{ return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
81 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
82 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
83 inline CreatePublicDnsNamespaceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
84 inline CreatePublicDnsNamespaceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
85 inline CreatePublicDnsNamespaceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
87
89
94 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
95 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
96 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
97 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
98 inline CreatePublicDnsNamespaceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
99 inline CreatePublicDnsNamespaceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
100 inline CreatePublicDnsNamespaceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
101 inline CreatePublicDnsNamespaceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
103
105
108 inline const PublicDnsNamespaceProperties& GetProperties() const{ return m_properties; }
109 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
110 inline void SetProperties(const PublicDnsNamespaceProperties& value) { m_propertiesHasBeenSet = true; m_properties = value; }
111 inline void SetProperties(PublicDnsNamespaceProperties&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
115 private:
116
117 Aws::String m_name;
118 bool m_nameHasBeenSet = false;
119
120 Aws::String m_creatorRequestId;
121 bool m_creatorRequestIdHasBeenSet = false;
122
123 Aws::String m_description;
124 bool m_descriptionHasBeenSet = false;
125
126 Aws::Vector<Tag> m_tags;
127 bool m_tagsHasBeenSet = false;
128
129 PublicDnsNamespaceProperties m_properties;
130 bool m_propertiesHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace ServiceDiscovery
135} // namespace Aws
CreatePublicDnsNamespaceRequest & WithProperties(const PublicDnsNamespaceProperties &value)
CreatePublicDnsNamespaceRequest & WithTags(const Aws::Vector< Tag > &value)
CreatePublicDnsNamespaceRequest & WithTags(Aws::Vector< Tag > &&value)
CreatePublicDnsNamespaceRequest & WithDescription(const Aws::String &value)
AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override
CreatePublicDnsNamespaceRequest & WithDescription(const char *value)
CreatePublicDnsNamespaceRequest & WithName(const char *value)
CreatePublicDnsNamespaceRequest & WithProperties(PublicDnsNamespaceProperties &&value)
CreatePublicDnsNamespaceRequest & WithCreatorRequestId(const Aws::String &value)
CreatePublicDnsNamespaceRequest & WithCreatorRequestId(const char *value)
CreatePublicDnsNamespaceRequest & WithName(Aws::String &&value)
CreatePublicDnsNamespaceRequest & WithDescription(Aws::String &&value)
CreatePublicDnsNamespaceRequest & WithCreatorRequestId(Aws::String &&value)
CreatePublicDnsNamespaceRequest & WithName(const Aws::String &value)
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