AWS SDK for C++  1.9.40
AWS SDK for C++
GetInstanceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ServiceDiscovery
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GetInstance"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetServiceId() const{ return m_serviceId; }
41 
45  inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
46 
50  inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; }
51 
55  inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); }
56 
60  inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); }
61 
65  inline GetInstanceRequest& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;}
66 
70  inline GetInstanceRequest& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;}
71 
75  inline GetInstanceRequest& WithServiceId(const char* value) { SetServiceId(value); return *this;}
76 
77 
81  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
82 
86  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
87 
91  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
92 
96  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
97 
101  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
102 
106  inline GetInstanceRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
107 
111  inline GetInstanceRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
112 
116  inline GetInstanceRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
117 
118  private:
119 
120  Aws::String m_serviceId;
121  bool m_serviceIdHasBeenSet;
122 
123  Aws::String m_instanceId;
124  bool m_instanceIdHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace ServiceDiscovery
129 } // namespace Aws
ServiceDiscoveryRequest.h
Aws::ServiceDiscovery::Model::GetInstanceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ServiceDiscovery::Model::GetInstanceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetInstanceRequest.h:30
Aws::ServiceDiscovery::Model::GetInstanceRequest::SetServiceId
void SetServiceId(Aws::String &&value)
Definition: GetInstanceRequest.h:55
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::GetInstanceRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: GetInstanceRequest.h:91
Aws::ServiceDiscovery::Model::GetInstanceRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: GetInstanceRequest.h:96
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ServiceDiscovery::Model::GetInstanceRequest::WithServiceId
GetInstanceRequest & WithServiceId(Aws::String &&value)
Definition: GetInstanceRequest.h:70
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::GetInstanceRequest::GetServiceId
const Aws::String & GetServiceId() const
Definition: GetInstanceRequest.h:40
Aws::ServiceDiscovery::Model::GetInstanceRequest::WithInstanceId
GetInstanceRequest & WithInstanceId(const Aws::String &value)
Definition: GetInstanceRequest.h:106
Aws::ServiceDiscovery::Model::GetInstanceRequest::WithInstanceId
GetInstanceRequest & WithInstanceId(Aws::String &&value)
Definition: GetInstanceRequest.h:111
Aws::ServiceDiscovery::Model::GetInstanceRequest::SetServiceId
void SetServiceId(const char *value)
Definition: GetInstanceRequest.h:60
Aws::ServiceDiscovery::Model::GetInstanceRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: GetInstanceRequest.h:86
Aws::ServiceDiscovery::ServiceDiscoveryRequest
Definition: ServiceDiscoveryRequest.h:17
Aws::ServiceDiscovery::Model::GetInstanceRequest::SetServiceId
void SetServiceId(const Aws::String &value)
Definition: GetInstanceRequest.h:50
Aws::ServiceDiscovery::Model::GetInstanceRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::ServiceDiscovery::Model::GetInstanceRequest::WithInstanceId
GetInstanceRequest & WithInstanceId(const char *value)
Definition: GetInstanceRequest.h:116
Aws::ServiceDiscovery::Model::GetInstanceRequest::ServiceIdHasBeenSet
bool ServiceIdHasBeenSet() const
Definition: GetInstanceRequest.h:45
Aws::ServiceDiscovery::Model::GetInstanceRequest::WithServiceId
GetInstanceRequest & WithServiceId(const Aws::String &value)
Definition: GetInstanceRequest.h:65
Aws::ServiceDiscovery::Model::GetInstanceRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: GetInstanceRequest.h:101
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::GetInstanceRequest
Definition: GetInstanceRequest.h:22
Aws::ServiceDiscovery::Model::GetInstanceRequest::WithServiceId
GetInstanceRequest & WithServiceId(const char *value)
Definition: GetInstanceRequest.h:75
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::GetInstanceRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: GetInstanceRequest.h:81
Aws::ServiceDiscovery::Model::GetInstanceRequest::GetInstanceRequest
GetInstanceRequest()