AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateServiceRequest.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/servicediscovery/model/DnsConfig.h>
11#include <aws/servicediscovery/model/HealthCheckConfig.h>
12#include <aws/servicediscovery/model/HealthCheckCustomConfig.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/servicediscovery/model/ServiceTypeOption.h>
15#include <aws/servicediscovery/model/Tag.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace ServiceDiscovery
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_SERVICEDISCOVERY_API CreateServiceRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateService"; }
38
39 AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override;
40
41 AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
43
45
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template<typename NameT = Aws::String>
67 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
68 template<typename NameT = Aws::String>
69 CreateServiceRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
71
73
78 inline const Aws::String& GetNamespaceId() const { return m_namespaceId; }
79 inline bool NamespaceIdHasBeenSet() const { return m_namespaceIdHasBeenSet; }
80 template<typename NamespaceIdT = Aws::String>
81 void SetNamespaceId(NamespaceIdT&& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = std::forward<NamespaceIdT>(value); }
82 template<typename NamespaceIdT = Aws::String>
83 CreateServiceRequest& WithNamespaceId(NamespaceIdT&& value) { SetNamespaceId(std::forward<NamespaceIdT>(value)); return *this;}
85
87
93 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
94 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
95 template<typename CreatorRequestIdT = Aws::String>
96 void SetCreatorRequestId(CreatorRequestIdT&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::forward<CreatorRequestIdT>(value); }
97 template<typename CreatorRequestIdT = Aws::String>
98 CreateServiceRequest& WithCreatorRequestId(CreatorRequestIdT&& value) { SetCreatorRequestId(std::forward<CreatorRequestIdT>(value)); return *this;}
100
102
105 inline const Aws::String& GetDescription() const { return m_description; }
106 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
107 template<typename DescriptionT = Aws::String>
108 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
109 template<typename DescriptionT = Aws::String>
110 CreateServiceRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
112
114
118 inline const DnsConfig& GetDnsConfig() const { return m_dnsConfig; }
119 inline bool DnsConfigHasBeenSet() const { return m_dnsConfigHasBeenSet; }
120 template<typename DnsConfigT = DnsConfig>
121 void SetDnsConfig(DnsConfigT&& value) { m_dnsConfigHasBeenSet = true; m_dnsConfig = std::forward<DnsConfigT>(value); }
122 template<typename DnsConfigT = DnsConfig>
123 CreateServiceRequest& WithDnsConfig(DnsConfigT&& value) { SetDnsConfig(std::forward<DnsConfigT>(value)); return *this;}
125
127
138 inline const HealthCheckConfig& GetHealthCheckConfig() const { return m_healthCheckConfig; }
139 inline bool HealthCheckConfigHasBeenSet() const { return m_healthCheckConfigHasBeenSet; }
140 template<typename HealthCheckConfigT = HealthCheckConfig>
141 void SetHealthCheckConfig(HealthCheckConfigT&& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = std::forward<HealthCheckConfigT>(value); }
142 template<typename HealthCheckConfigT = HealthCheckConfig>
143 CreateServiceRequest& WithHealthCheckConfig(HealthCheckConfigT&& value) { SetHealthCheckConfig(std::forward<HealthCheckConfigT>(value)); return *this;}
145
147
155 inline const HealthCheckCustomConfig& GetHealthCheckCustomConfig() const { return m_healthCheckCustomConfig; }
156 inline bool HealthCheckCustomConfigHasBeenSet() const { return m_healthCheckCustomConfigHasBeenSet; }
157 template<typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
158 void SetHealthCheckCustomConfig(HealthCheckCustomConfigT&& value) { m_healthCheckCustomConfigHasBeenSet = true; m_healthCheckCustomConfig = std::forward<HealthCheckCustomConfigT>(value); }
159 template<typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
160 CreateServiceRequest& WithHealthCheckCustomConfig(HealthCheckCustomConfigT&& value) { SetHealthCheckCustomConfig(std::forward<HealthCheckCustomConfigT>(value)); return *this;}
162
164
169 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
170 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
171 template<typename TagsT = Aws::Vector<Tag>>
172 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
173 template<typename TagsT = Aws::Vector<Tag>>
174 CreateServiceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
175 template<typename TagsT = Tag>
176 CreateServiceRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
178
180
185 inline ServiceTypeOption GetType() const { return m_type; }
186 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
187 inline void SetType(ServiceTypeOption value) { m_typeHasBeenSet = true; m_type = value; }
188 inline CreateServiceRequest& WithType(ServiceTypeOption value) { SetType(value); return *this;}
190 private:
191
192 Aws::String m_name;
193 bool m_nameHasBeenSet = false;
194
195 Aws::String m_namespaceId;
196 bool m_namespaceIdHasBeenSet = false;
197
199 bool m_creatorRequestIdHasBeenSet = true;
200
201 Aws::String m_description;
202 bool m_descriptionHasBeenSet = false;
203
204 DnsConfig m_dnsConfig;
205 bool m_dnsConfigHasBeenSet = false;
206
207 HealthCheckConfig m_healthCheckConfig;
208 bool m_healthCheckConfigHasBeenSet = false;
209
210 HealthCheckCustomConfig m_healthCheckCustomConfig;
211 bool m_healthCheckCustomConfigHasBeenSet = false;
212
213 Aws::Vector<Tag> m_tags;
214 bool m_tagsHasBeenSet = false;
215
217 bool m_typeHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace ServiceDiscovery
222} // namespace Aws
CreateServiceRequest & WithType(ServiceTypeOption value)
CreateServiceRequest & WithNamespaceId(NamespaceIdT &&value)
AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateServiceRequest & WithDescription(DescriptionT &&value)
CreateServiceRequest & WithName(NameT &&value)
AWS_SERVICEDISCOVERY_API CreateServiceRequest()=default
void SetHealthCheckCustomConfig(HealthCheckCustomConfigT &&value)
virtual const char * GetServiceRequestName() const override
const HealthCheckCustomConfig & GetHealthCheckCustomConfig() const
CreateServiceRequest & WithHealthCheckConfig(HealthCheckConfigT &&value)
CreateServiceRequest & WithHealthCheckCustomConfig(HealthCheckCustomConfigT &&value)
AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override
CreateServiceRequest & WithCreatorRequestId(CreatorRequestIdT &&value)
CreateServiceRequest & WithDnsConfig(DnsConfigT &&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