AWS SDK for C++  1.9.104
AWS SDK for C++
GetInstancesHealthStatusRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ServiceDiscovery
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "GetInstancesHealthStatus"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetServiceId() const{ return m_serviceId; }
42 
46  inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
47 
51  inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; }
52 
56  inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); }
57 
61  inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); }
62 
66  inline GetInstancesHealthStatusRequest& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;}
67 
71  inline GetInstancesHealthStatusRequest& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;}
72 
76  inline GetInstancesHealthStatusRequest& WithServiceId(const char* value) { SetServiceId(value); return *this;}
77 
78 
88  inline const Aws::Vector<Aws::String>& GetInstances() const{ return m_instances; }
89 
99  inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
100 
110  inline void SetInstances(const Aws::Vector<Aws::String>& value) { m_instancesHasBeenSet = true; m_instances = value; }
111 
121  inline void SetInstances(Aws::Vector<Aws::String>&& value) { m_instancesHasBeenSet = true; m_instances = std::move(value); }
122 
132  inline GetInstancesHealthStatusRequest& WithInstances(const Aws::Vector<Aws::String>& value) { SetInstances(value); return *this;}
133 
143  inline GetInstancesHealthStatusRequest& WithInstances(Aws::Vector<Aws::String>&& value) { SetInstances(std::move(value)); return *this;}
144 
154  inline GetInstancesHealthStatusRequest& AddInstances(const Aws::String& value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; }
155 
165  inline GetInstancesHealthStatusRequest& AddInstances(Aws::String&& value) { m_instancesHasBeenSet = true; m_instances.push_back(std::move(value)); return *this; }
166 
176  inline GetInstancesHealthStatusRequest& AddInstances(const char* value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; }
177 
178 
185  inline int GetMaxResults() const{ return m_maxResults; }
186 
193  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
194 
201  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
202 
209  inline GetInstancesHealthStatusRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
210 
211 
219  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
220 
228  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
229 
237  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
238 
246  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
247 
255  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
256 
264  inline GetInstancesHealthStatusRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
265 
273  inline GetInstancesHealthStatusRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
274 
282  inline GetInstancesHealthStatusRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
283 
284  private:
285 
286  Aws::String m_serviceId;
287  bool m_serviceIdHasBeenSet;
288 
289  Aws::Vector<Aws::String> m_instances;
290  bool m_instancesHasBeenSet;
291 
292  int m_maxResults;
293  bool m_maxResultsHasBeenSet;
294 
295  Aws::String m_nextToken;
296  bool m_nextTokenHasBeenSet;
297  };
298 
299 } // namespace Model
300 } // namespace ServiceDiscovery
301 } // namespace Aws
ServiceDiscoveryRequest.h
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetInstancesHealthStatusRequest.h:228
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::AddInstances
GetInstancesHealthStatusRequest & AddInstances(Aws::String &&value)
Definition: GetInstancesHealthStatusRequest.h:165
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::SerializePayload
Aws::String SerializePayload() const override
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::SetServiceId
void SetServiceId(const Aws::String &value)
Definition: GetInstancesHealthStatusRequest.h:51
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetInstancesHealthStatusRequest.h:237
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::InstancesHasBeenSet
bool InstancesHasBeenSet() const
Definition: GetInstancesHealthStatusRequest.h:99
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::WithInstances
GetInstancesHealthStatusRequest & WithInstances(const Aws::Vector< Aws::String > &value)
Definition: GetInstancesHealthStatusRequest.h:132
AWSVector.h
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::AddInstances
GetInstancesHealthStatusRequest & AddInstances(const char *value)
Definition: GetInstancesHealthStatusRequest.h:176
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::SetInstances
void SetInstances(const Aws::Vector< Aws::String > &value)
Definition: GetInstancesHealthStatusRequest.h:110
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::WithServiceId
GetInstancesHealthStatusRequest & WithServiceId(const char *value)
Definition: GetInstancesHealthStatusRequest.h:76
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::WithNextToken
GetInstancesHealthStatusRequest & WithNextToken(Aws::String &&value)
Definition: GetInstancesHealthStatusRequest.h:273
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::GetInstancesHealthStatusRequest
GetInstancesHealthStatusRequest()
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::WithNextToken
GetInstancesHealthStatusRequest & WithNextToken(const Aws::String &value)
Definition: GetInstancesHealthStatusRequest.h:264
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::WithServiceId
GetInstancesHealthStatusRequest & WithServiceId(const Aws::String &value)
Definition: GetInstancesHealthStatusRequest.h:66
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::WithNextToken
GetInstancesHealthStatusRequest & WithNextToken(const char *value)
Definition: GetInstancesHealthStatusRequest.h:282
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest
Definition: GetInstancesHealthStatusRequest.h:23
Aws::ServiceDiscovery::ServiceDiscoveryRequest
Definition: ServiceDiscoveryRequest.h:17
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::WithInstances
GetInstancesHealthStatusRequest & WithInstances(Aws::Vector< Aws::String > &&value)
Definition: GetInstancesHealthStatusRequest.h:143
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::WithMaxResults
GetInstancesHealthStatusRequest & WithMaxResults(int value)
Definition: GetInstancesHealthStatusRequest.h:209
AWSString.h
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetInstancesHealthStatusRequest.h:201
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::GetServiceId
const Aws::String & GetServiceId() const
Definition: GetInstancesHealthStatusRequest.h:41
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetInstancesHealthStatusRequest.h:193
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetInstancesHealthStatusRequest.h:255
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::SetInstances
void SetInstances(Aws::Vector< Aws::String > &&value)
Definition: GetInstancesHealthStatusRequest.h:121
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::AddInstances
GetInstancesHealthStatusRequest & AddInstances(const Aws::String &value)
Definition: GetInstancesHealthStatusRequest.h:154
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::SetServiceId
void SetServiceId(Aws::String &&value)
Definition: GetInstancesHealthStatusRequest.h:56
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::GetInstances
const Aws::Vector< Aws::String > & GetInstances() const
Definition: GetInstancesHealthStatusRequest.h:88
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::GetMaxResults
int GetMaxResults() const
Definition: GetInstancesHealthStatusRequest.h:185
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetInstancesHealthStatusRequest.h:219
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetInstancesHealthStatusRequest.h:246
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::ServiceIdHasBeenSet
bool ServiceIdHasBeenSet() const
Definition: GetInstancesHealthStatusRequest.h:46
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::SetServiceId
void SetServiceId(const char *value)
Definition: GetInstancesHealthStatusRequest.h:61
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetInstancesHealthStatusRequest.h:31
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusRequest::WithServiceId
GetInstancesHealthStatusRequest & WithServiceId(Aws::String &&value)
Definition: GetInstancesHealthStatusRequest.h:71