AWS SDK for C++  1.9.105
AWS SDK for C++
RegisterInstanceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 #include <aws/core/utils/UUID.h>
13 
14 namespace Aws
15 {
16 namespace ServiceDiscovery
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetServiceId() const{ return m_serviceId; }
43 
47  inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
48 
52  inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; }
53 
57  inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); }
58 
62  inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); }
63 
67  inline RegisterInstanceRequest& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;}
68 
72  inline RegisterInstanceRequest& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;}
73 
77  inline RegisterInstanceRequest& WithServiceId(const char* value) { SetServiceId(value); return *this;}
78 
79 
97  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
98 
116  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
117 
135  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
136 
154  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
155 
173  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
174 
192  inline RegisterInstanceRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
193 
211  inline RegisterInstanceRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
212 
230  inline RegisterInstanceRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
231 
232 
242  inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
243 
253  inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
254 
264  inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
265 
275  inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
276 
286  inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
287 
297  inline RegisterInstanceRequest& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
298 
308  inline RegisterInstanceRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
309 
319  inline RegisterInstanceRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
320 
321 
389  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
390 
458  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
459 
527  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
528 
596  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
597 
665  inline RegisterInstanceRequest& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
666 
734  inline RegisterInstanceRequest& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
735 
803  inline RegisterInstanceRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
804 
872  inline RegisterInstanceRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
873 
941  inline RegisterInstanceRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
942 
1010  inline RegisterInstanceRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
1011 
1079  inline RegisterInstanceRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
1080 
1148  inline RegisterInstanceRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
1149 
1217  inline RegisterInstanceRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
1218 
1219  private:
1220 
1221  Aws::String m_serviceId;
1222  bool m_serviceIdHasBeenSet;
1223 
1224  Aws::String m_instanceId;
1225  bool m_instanceIdHasBeenSet;
1226 
1227  Aws::String m_creatorRequestId;
1228  bool m_creatorRequestIdHasBeenSet;
1229 
1231  bool m_attributesHasBeenSet;
1232  };
1233 
1234 } // namespace Model
1235 } // namespace ServiceDiscovery
1236 } // namespace Aws
ServiceDiscoveryRequest.h
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::AddAttributes
RegisterInstanceRequest & AddAttributes(Aws::String &&key, const char *value)
Definition: RegisterInstanceRequest.h:1148
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::CreatorRequestIdHasBeenSet
bool CreatorRequestIdHasBeenSet() const
Definition: RegisterInstanceRequest.h:253
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: RegisterInstanceRequest.h:458
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::RegisterInstanceRequest
RegisterInstanceRequest()
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::SetAttributes
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: RegisterInstanceRequest.h:596
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::WithInstanceId
RegisterInstanceRequest & WithInstanceId(const Aws::String &value)
Definition: RegisterInstanceRequest.h:192
Aws::ServiceDiscovery::Model::RegisterInstanceRequest
Definition: RegisterInstanceRequest.h:24
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::AddAttributes
RegisterInstanceRequest & AddAttributes(const char *key, const char *value)
Definition: RegisterInstanceRequest.h:1217
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::ServiceIdHasBeenSet
bool ServiceIdHasBeenSet() const
Definition: RegisterInstanceRequest.h:47
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::WithCreatorRequestId
RegisterInstanceRequest & WithCreatorRequestId(Aws::String &&value)
Definition: RegisterInstanceRequest.h:308
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::WithServiceId
RegisterInstanceRequest & WithServiceId(Aws::String &&value)
Definition: RegisterInstanceRequest.h:72
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::AddAttributes
RegisterInstanceRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
Definition: RegisterInstanceRequest.h:803
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::WithInstanceId
RegisterInstanceRequest & WithInstanceId(const char *value)
Definition: RegisterInstanceRequest.h:230
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::SetCreatorRequestId
void SetCreatorRequestId(const char *value)
Definition: RegisterInstanceRequest.h:286
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::GetCreatorRequestId
const Aws::String & GetCreatorRequestId() const
Definition: RegisterInstanceRequest.h:242
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RegisterInstanceRequest.h:32
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::WithCreatorRequestId
RegisterInstanceRequest & WithCreatorRequestId(const Aws::String &value)
Definition: RegisterInstanceRequest.h:297
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: RegisterInstanceRequest.h:97
Aws::ServiceDiscovery::ServiceDiscoveryRequest
Definition: ServiceDiscoveryRequest.h:17
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::AddAttributes
RegisterInstanceRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
Definition: RegisterInstanceRequest.h:872
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: RegisterInstanceRequest.h:154
AWSString.h
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::WithCreatorRequestId
RegisterInstanceRequest & WithCreatorRequestId(const char *value)
Definition: RegisterInstanceRequest.h:319
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: RegisterInstanceRequest.h:135
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: RegisterInstanceRequest.h:173
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::SetCreatorRequestId
void SetCreatorRequestId(Aws::String &&value)
Definition: RegisterInstanceRequest.h:275
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::GetServiceId
const Aws::String & GetServiceId() const
Definition: RegisterInstanceRequest.h:42
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::WithAttributes
RegisterInstanceRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: RegisterInstanceRequest.h:665
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::AddAttributes
RegisterInstanceRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
Definition: RegisterInstanceRequest.h:941
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::WithInstanceId
RegisterInstanceRequest & WithInstanceId(Aws::String &&value)
Definition: RegisterInstanceRequest.h:211
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::SetCreatorRequestId
void SetCreatorRequestId(const Aws::String &value)
Definition: RegisterInstanceRequest.h:264
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: RegisterInstanceRequest.h:116
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::WithAttributes
RegisterInstanceRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: RegisterInstanceRequest.h:734
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::SetServiceId
void SetServiceId(Aws::String &&value)
Definition: RegisterInstanceRequest.h:57
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::SetServiceId
void SetServiceId(const Aws::String &value)
Definition: RegisterInstanceRequest.h:52
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::WithServiceId
RegisterInstanceRequest & WithServiceId(const Aws::String &value)
Definition: RegisterInstanceRequest.h:67
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::SetServiceId
void SetServiceId(const char *value)
Definition: RegisterInstanceRequest.h:62
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::GetAttributes
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Definition: RegisterInstanceRequest.h:389
UUID.h
AWSMap.h
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::AddAttributes
RegisterInstanceRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
Definition: RegisterInstanceRequest.h:1010
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::WithServiceId
RegisterInstanceRequest & WithServiceId(const char *value)
Definition: RegisterInstanceRequest.h:77
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::SetAttributes
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: RegisterInstanceRequest.h:527
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::ServiceDiscovery::Model::RegisterInstanceRequest::AddAttributes
RegisterInstanceRequest & AddAttributes(const char *key, Aws::String &&value)
Definition: RegisterInstanceRequest.h:1079