AWS SDK for C++

AWS SDK for C++ Version 1.11.636

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
80 inline const Aws::String& GetNamespaceId() const { return m_namespaceId; }
81 inline bool NamespaceIdHasBeenSet() const { return m_namespaceIdHasBeenSet; }
82 template<typename NamespaceIdT = Aws::String>
83 void SetNamespaceId(NamespaceIdT&& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = std::forward<NamespaceIdT>(value); }
84 template<typename NamespaceIdT = Aws::String>
85 CreateServiceRequest& WithNamespaceId(NamespaceIdT&& value) { SetNamespaceId(std::forward<NamespaceIdT>(value)); return *this;}
87
89
95 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
96 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
97 template<typename CreatorRequestIdT = Aws::String>
98 void SetCreatorRequestId(CreatorRequestIdT&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::forward<CreatorRequestIdT>(value); }
99 template<typename CreatorRequestIdT = Aws::String>
100 CreateServiceRequest& WithCreatorRequestId(CreatorRequestIdT&& value) { SetCreatorRequestId(std::forward<CreatorRequestIdT>(value)); return *this;}
102
104
107 inline const Aws::String& GetDescription() const { return m_description; }
108 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
109 template<typename DescriptionT = Aws::String>
110 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
111 template<typename DescriptionT = Aws::String>
112 CreateServiceRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
114
116
120 inline const DnsConfig& GetDnsConfig() const { return m_dnsConfig; }
121 inline bool DnsConfigHasBeenSet() const { return m_dnsConfigHasBeenSet; }
122 template<typename DnsConfigT = DnsConfig>
123 void SetDnsConfig(DnsConfigT&& value) { m_dnsConfigHasBeenSet = true; m_dnsConfig = std::forward<DnsConfigT>(value); }
124 template<typename DnsConfigT = DnsConfig>
125 CreateServiceRequest& WithDnsConfig(DnsConfigT&& value) { SetDnsConfig(std::forward<DnsConfigT>(value)); return *this;}
127
129
140 inline const HealthCheckConfig& GetHealthCheckConfig() const { return m_healthCheckConfig; }
141 inline bool HealthCheckConfigHasBeenSet() const { return m_healthCheckConfigHasBeenSet; }
142 template<typename HealthCheckConfigT = HealthCheckConfig>
143 void SetHealthCheckConfig(HealthCheckConfigT&& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = std::forward<HealthCheckConfigT>(value); }
144 template<typename HealthCheckConfigT = HealthCheckConfig>
145 CreateServiceRequest& WithHealthCheckConfig(HealthCheckConfigT&& value) { SetHealthCheckConfig(std::forward<HealthCheckConfigT>(value)); return *this;}
147
149
157 inline const HealthCheckCustomConfig& GetHealthCheckCustomConfig() const { return m_healthCheckCustomConfig; }
158 inline bool HealthCheckCustomConfigHasBeenSet() const { return m_healthCheckCustomConfigHasBeenSet; }
159 template<typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
160 void SetHealthCheckCustomConfig(HealthCheckCustomConfigT&& value) { m_healthCheckCustomConfigHasBeenSet = true; m_healthCheckCustomConfig = std::forward<HealthCheckCustomConfigT>(value); }
161 template<typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
162 CreateServiceRequest& WithHealthCheckCustomConfig(HealthCheckCustomConfigT&& value) { SetHealthCheckCustomConfig(std::forward<HealthCheckCustomConfigT>(value)); return *this;}
164
166
171 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
172 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
173 template<typename TagsT = Aws::Vector<Tag>>
174 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
175 template<typename TagsT = Aws::Vector<Tag>>
176 CreateServiceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
177 template<typename TagsT = Tag>
178 CreateServiceRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
180
182
187 inline ServiceTypeOption GetType() const { return m_type; }
188 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
189 inline void SetType(ServiceTypeOption value) { m_typeHasBeenSet = true; m_type = value; }
190 inline CreateServiceRequest& WithType(ServiceTypeOption value) { SetType(value); return *this;}
192 private:
193
194 Aws::String m_name;
195 bool m_nameHasBeenSet = false;
196
197 Aws::String m_namespaceId;
198 bool m_namespaceIdHasBeenSet = false;
199
201 bool m_creatorRequestIdHasBeenSet = true;
202
203 Aws::String m_description;
204 bool m_descriptionHasBeenSet = false;
205
206 DnsConfig m_dnsConfig;
207 bool m_dnsConfigHasBeenSet = false;
208
209 HealthCheckConfig m_healthCheckConfig;
210 bool m_healthCheckConfigHasBeenSet = false;
211
212 HealthCheckCustomConfig m_healthCheckCustomConfig;
213 bool m_healthCheckCustomConfigHasBeenSet = false;
214
215 Aws::Vector<Tag> m_tags;
216 bool m_tagsHasBeenSet = false;
217
219 bool m_typeHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace ServiceDiscovery
224} // 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