AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
67 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 inline CreateServiceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
70 inline CreateServiceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 inline CreateServiceRequest& WithName(const char* value) { SetName(value); return *this;}
73
75
80 inline const Aws::String& GetNamespaceId() const{ return m_namespaceId; }
81 inline bool NamespaceIdHasBeenSet() const { return m_namespaceIdHasBeenSet; }
82 inline void SetNamespaceId(const Aws::String& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = value; }
83 inline void SetNamespaceId(Aws::String&& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = std::move(value); }
84 inline void SetNamespaceId(const char* value) { m_namespaceIdHasBeenSet = true; m_namespaceId.assign(value); }
85 inline CreateServiceRequest& WithNamespaceId(const Aws::String& value) { SetNamespaceId(value); return *this;}
86 inline CreateServiceRequest& WithNamespaceId(Aws::String&& value) { SetNamespaceId(std::move(value)); return *this;}
87 inline CreateServiceRequest& WithNamespaceId(const char* value) { SetNamespaceId(value); return *this;}
89
91
97 inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
98 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
99 inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
100 inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
101 inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
102 inline CreateServiceRequest& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
103 inline CreateServiceRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
104 inline CreateServiceRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
106
108
111 inline const Aws::String& GetDescription() const{ return m_description; }
112 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
113 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
114 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
115 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
116 inline CreateServiceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
117 inline CreateServiceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
118 inline CreateServiceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
120
122
126 inline const DnsConfig& GetDnsConfig() const{ return m_dnsConfig; }
127 inline bool DnsConfigHasBeenSet() const { return m_dnsConfigHasBeenSet; }
128 inline void SetDnsConfig(const DnsConfig& value) { m_dnsConfigHasBeenSet = true; m_dnsConfig = value; }
129 inline void SetDnsConfig(DnsConfig&& value) { m_dnsConfigHasBeenSet = true; m_dnsConfig = std::move(value); }
130 inline CreateServiceRequest& WithDnsConfig(const DnsConfig& value) { SetDnsConfig(value); return *this;}
131 inline CreateServiceRequest& WithDnsConfig(DnsConfig&& value) { SetDnsConfig(std::move(value)); return *this;}
133
135
146 inline const HealthCheckConfig& GetHealthCheckConfig() const{ return m_healthCheckConfig; }
147 inline bool HealthCheckConfigHasBeenSet() const { return m_healthCheckConfigHasBeenSet; }
148 inline void SetHealthCheckConfig(const HealthCheckConfig& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = value; }
149 inline void SetHealthCheckConfig(HealthCheckConfig&& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = std::move(value); }
151 inline CreateServiceRequest& WithHealthCheckConfig(HealthCheckConfig&& value) { SetHealthCheckConfig(std::move(value)); return *this;}
153
155
163 inline const HealthCheckCustomConfig& GetHealthCheckCustomConfig() const{ return m_healthCheckCustomConfig; }
164 inline bool HealthCheckCustomConfigHasBeenSet() const { return m_healthCheckCustomConfigHasBeenSet; }
165 inline void SetHealthCheckCustomConfig(const HealthCheckCustomConfig& value) { m_healthCheckCustomConfigHasBeenSet = true; m_healthCheckCustomConfig = value; }
166 inline void SetHealthCheckCustomConfig(HealthCheckCustomConfig&& value) { m_healthCheckCustomConfigHasBeenSet = true; m_healthCheckCustomConfig = std::move(value); }
170
172
177 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
178 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
179 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
180 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
181 inline CreateServiceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
182 inline CreateServiceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
183 inline CreateServiceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
184 inline CreateServiceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
186
188
193 inline const ServiceTypeOption& GetType() const{ return m_type; }
194 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
195 inline void SetType(const ServiceTypeOption& value) { m_typeHasBeenSet = true; m_type = value; }
196 inline void SetType(ServiceTypeOption&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
197 inline CreateServiceRequest& WithType(const ServiceTypeOption& value) { SetType(value); return *this;}
198 inline CreateServiceRequest& WithType(ServiceTypeOption&& value) { SetType(std::move(value)); return *this;}
200 private:
201
202 Aws::String m_name;
203 bool m_nameHasBeenSet = false;
204
205 Aws::String m_namespaceId;
206 bool m_namespaceIdHasBeenSet = false;
207
208 Aws::String m_creatorRequestId;
209 bool m_creatorRequestIdHasBeenSet = false;
210
211 Aws::String m_description;
212 bool m_descriptionHasBeenSet = false;
213
214 DnsConfig m_dnsConfig;
215 bool m_dnsConfigHasBeenSet = false;
216
217 HealthCheckConfig m_healthCheckConfig;
218 bool m_healthCheckConfigHasBeenSet = false;
219
220 HealthCheckCustomConfig m_healthCheckCustomConfig;
221 bool m_healthCheckCustomConfigHasBeenSet = false;
222
223 Aws::Vector<Tag> m_tags;
224 bool m_tagsHasBeenSet = false;
225
226 ServiceTypeOption m_type;
227 bool m_typeHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace ServiceDiscovery
232} // namespace Aws
CreateServiceRequest & WithName(Aws::String &&value)
CreateServiceRequest & WithCreatorRequestId(Aws::String &&value)
CreateServiceRequest & WithNamespaceId(Aws::String &&value)
CreateServiceRequest & WithHealthCheckCustomConfig(HealthCheckCustomConfig &&value)
CreateServiceRequest & WithNamespaceId(const Aws::String &value)
CreateServiceRequest & WithDescription(const Aws::String &value)
AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateServiceRequest & WithDescription(const char *value)
CreateServiceRequest & WithTags(Aws::Vector< Tag > &&value)
CreateServiceRequest & AddTags(const Tag &value)
CreateServiceRequest & WithHealthCheckConfig(const HealthCheckConfig &value)
void SetHealthCheckCustomConfig(const HealthCheckCustomConfig &value)
CreateServiceRequest & WithNamespaceId(const char *value)
CreateServiceRequest & WithName(const char *value)
CreateServiceRequest & WithDnsConfig(const DnsConfig &value)
CreateServiceRequest & WithCreatorRequestId(const Aws::String &value)
CreateServiceRequest & WithHealthCheckCustomConfig(const HealthCheckCustomConfig &value)
CreateServiceRequest & WithDnsConfig(DnsConfig &&value)
void SetHealthCheckCustomConfig(HealthCheckCustomConfig &&value)
CreateServiceRequest & WithName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateServiceRequest & WithHealthCheckConfig(HealthCheckConfig &&value)
void SetHealthCheckConfig(const HealthCheckConfig &value)
const HealthCheckCustomConfig & GetHealthCheckCustomConfig() const
CreateServiceRequest & WithType(ServiceTypeOption &&value)
CreateServiceRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override
CreateServiceRequest & WithDescription(Aws::String &&value)
CreateServiceRequest & WithType(const ServiceTypeOption &value)
CreateServiceRequest & WithCreatorRequestId(const char *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