AWS SDK for C++  1.9.104
AWS SDK for C++
ListInstancesRequest.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 "ListInstances"; }
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 ListInstancesRequest& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;}
66 
70  inline ListInstancesRequest& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;}
71 
75  inline ListInstancesRequest& WithServiceId(const char* value) { SetServiceId(value); return *this;}
76 
77 
85  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
86 
94  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
95 
103  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
104 
112  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
113 
121  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
122 
130  inline ListInstancesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
131 
139  inline ListInstancesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
140 
148  inline ListInstancesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
149 
150 
156  inline int GetMaxResults() const{ return m_maxResults; }
157 
163  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
164 
170  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
171 
177  inline ListInstancesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
178 
179  private:
180 
181  Aws::String m_serviceId;
182  bool m_serviceIdHasBeenSet;
183 
184  Aws::String m_nextToken;
185  bool m_nextTokenHasBeenSet;
186 
187  int m_maxResults;
188  bool m_maxResultsHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace ServiceDiscovery
193 } // namespace Aws
ServiceDiscoveryRequest.h
Aws::ServiceDiscovery::Model::ListInstancesRequest::ServiceIdHasBeenSet
bool ServiceIdHasBeenSet() const
Definition: ListInstancesRequest.h:45
Aws::ServiceDiscovery::Model::ListInstancesRequest::ListInstancesRequest
ListInstancesRequest()
Aws::ServiceDiscovery::Model::ListInstancesRequest::WithServiceId
ListInstancesRequest & WithServiceId(const Aws::String &value)
Definition: ListInstancesRequest.h:65
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::ListInstancesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListInstancesRequest.h:94
Aws::ServiceDiscovery::Model::ListInstancesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListInstancesRequest.h:163
Aws::ServiceDiscovery::Model::ListInstancesRequest
Definition: ListInstancesRequest.h:22
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::ListInstancesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListInstancesRequest.h:103
Aws::ServiceDiscovery::Model::ListInstancesRequest::WithNextToken
ListInstancesRequest & WithNextToken(Aws::String &&value)
Definition: ListInstancesRequest.h:139
Aws::ServiceDiscovery::ServiceDiscoveryRequest
Definition: ServiceDiscoveryRequest.h:17
Aws::ServiceDiscovery::Model::ListInstancesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListInstancesRequest.h:156
Aws::ServiceDiscovery::Model::ListInstancesRequest::SetServiceId
void SetServiceId(Aws::String &&value)
Definition: ListInstancesRequest.h:55
Aws::ServiceDiscovery::Model::ListInstancesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ServiceDiscovery::Model::ListInstancesRequest::WithServiceId
ListInstancesRequest & WithServiceId(Aws::String &&value)
Definition: ListInstancesRequest.h:70
Aws::ServiceDiscovery::Model::ListInstancesRequest::WithNextToken
ListInstancesRequest & WithNextToken(const char *value)
Definition: ListInstancesRequest.h:148
AWSString.h
Aws::ServiceDiscovery::Model::ListInstancesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListInstancesRequest.h:30
Aws::ServiceDiscovery::Model::ListInstancesRequest::WithServiceId
ListInstancesRequest & WithServiceId(const char *value)
Definition: ListInstancesRequest.h:75
Aws::ServiceDiscovery::Model::ListInstancesRequest::WithMaxResults
ListInstancesRequest & WithMaxResults(int value)
Definition: ListInstancesRequest.h:177
Aws::ServiceDiscovery::Model::ListInstancesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListInstancesRequest.h:170
Aws::ServiceDiscovery::Model::ListInstancesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListInstancesRequest.h:112
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::ListInstancesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListInstancesRequest.h:121
Aws::ServiceDiscovery::Model::ListInstancesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListInstancesRequest.h:85
Aws::ServiceDiscovery::Model::ListInstancesRequest::SetServiceId
void SetServiceId(const Aws::String &value)
Definition: ListInstancesRequest.h:50
Aws::ServiceDiscovery::Model::ListInstancesRequest::WithNextToken
ListInstancesRequest & WithNextToken(const Aws::String &value)
Definition: ListInstancesRequest.h:130
Aws::ServiceDiscovery::Model::ListInstancesRequest::SetServiceId
void SetServiceId(const char *value)
Definition: ListInstancesRequest.h:60
Aws::ServiceDiscovery::Model::ListInstancesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ServiceDiscovery::Model::ListInstancesRequest::GetServiceId
const Aws::String & GetServiceId() const
Definition: ListInstancesRequest.h:40