AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegisterInstanceRequest.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/AWSMap.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace ServiceDiscovery
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SERVICEDISCOVERY_API RegisterInstanceRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "RegisterInstance"; }
33
34 AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override;
35
36 AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetServiceId() const{ return m_serviceId; }
44 inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
45 inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; }
46 inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); }
47 inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); }
48 inline RegisterInstanceRequest& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;}
49 inline RegisterInstanceRequest& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;}
50 inline RegisterInstanceRequest& WithServiceId(const char* value) { SetServiceId(value); return *this;}
52
54
75 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
76 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
77 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
78 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
79 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
80 inline RegisterInstanceRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
81 inline RegisterInstanceRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
82 inline RegisterInstanceRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
84
86
95 inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
96 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
97 inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
98 inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
99 inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
101 inline RegisterInstanceRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
102 inline RegisterInstanceRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
104
106
176 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
177 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
178 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
179 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
182 inline RegisterInstanceRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
183 inline RegisterInstanceRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
184 inline RegisterInstanceRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
185 inline RegisterInstanceRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
186 inline RegisterInstanceRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
187 inline RegisterInstanceRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
188 inline RegisterInstanceRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
190 private:
191
192 Aws::String m_serviceId;
193 bool m_serviceIdHasBeenSet = false;
194
195 Aws::String m_instanceId;
196 bool m_instanceIdHasBeenSet = false;
197
198 Aws::String m_creatorRequestId;
199 bool m_creatorRequestIdHasBeenSet = false;
200
202 bool m_attributesHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace ServiceDiscovery
207} // namespace Aws
RegisterInstanceRequest & WithInstanceId(const char *value)
RegisterInstanceRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
RegisterInstanceRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
RegisterInstanceRequest & WithInstanceId(const Aws::String &value)
RegisterInstanceRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
RegisterInstanceRequest & WithCreatorRequestId(Aws::String &&value)
RegisterInstanceRequest & AddAttributes(const char *key, Aws::String &&value)
RegisterInstanceRequest & WithInstanceId(Aws::String &&value)
AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override
RegisterInstanceRequest & WithServiceId(const Aws::String &value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
RegisterInstanceRequest & WithServiceId(const char *value)
AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
RegisterInstanceRequest & WithCreatorRequestId(const char *value)
RegisterInstanceRequest & AddAttributes(const char *key, const char *value)
RegisterInstanceRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
RegisterInstanceRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
RegisterInstanceRequest & WithServiceId(Aws::String &&value)
RegisterInstanceRequest & AddAttributes(Aws::String &&key, const char *value)
virtual const char * GetServiceRequestName() const override
RegisterInstanceRequest & WithCreatorRequestId(const Aws::String &value)
RegisterInstanceRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String