AWS SDK for C++  1.9.108
AWS SDK for C++
DiscoverInstancesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
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 "DiscoverInstances"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
44  inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; }
45 
51  inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
52 
58  inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; }
59 
65  inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); }
66 
72  inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); }
73 
79  inline DiscoverInstancesRequest& WithNamespaceName(const Aws::String& value) { SetNamespaceName(value); return *this;}
80 
86  inline DiscoverInstancesRequest& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;}
87 
93  inline DiscoverInstancesRequest& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;}
94 
95 
100  inline const Aws::String& GetServiceName() const{ return m_serviceName; }
101 
106  inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
107 
112  inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
113 
118  inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
119 
124  inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
125 
130  inline DiscoverInstancesRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
131 
136  inline DiscoverInstancesRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
137 
142  inline DiscoverInstancesRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;}
143 
144 
150  inline int GetMaxResults() const{ return m_maxResults; }
151 
157  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
158 
164  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
165 
171  inline DiscoverInstancesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
172 
173 
179  inline const Aws::Map<Aws::String, Aws::String>& GetQueryParameters() const{ return m_queryParameters; }
180 
186  inline bool QueryParametersHasBeenSet() const { return m_queryParametersHasBeenSet; }
187 
193  inline void SetQueryParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_queryParametersHasBeenSet = true; m_queryParameters = value; }
194 
200  inline void SetQueryParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_queryParametersHasBeenSet = true; m_queryParameters = std::move(value); }
201 
207  inline DiscoverInstancesRequest& WithQueryParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetQueryParameters(value); return *this;}
208 
214  inline DiscoverInstancesRequest& WithQueryParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetQueryParameters(std::move(value)); return *this;}
215 
221  inline DiscoverInstancesRequest& AddQueryParameters(const Aws::String& key, const Aws::String& value) { m_queryParametersHasBeenSet = true; m_queryParameters.emplace(key, value); return *this; }
222 
228  inline DiscoverInstancesRequest& AddQueryParameters(Aws::String&& key, const Aws::String& value) { m_queryParametersHasBeenSet = true; m_queryParameters.emplace(std::move(key), value); return *this; }
229 
235  inline DiscoverInstancesRequest& AddQueryParameters(const Aws::String& key, Aws::String&& value) { m_queryParametersHasBeenSet = true; m_queryParameters.emplace(key, std::move(value)); return *this; }
236 
242  inline DiscoverInstancesRequest& AddQueryParameters(Aws::String&& key, Aws::String&& value) { m_queryParametersHasBeenSet = true; m_queryParameters.emplace(std::move(key), std::move(value)); return *this; }
243 
249  inline DiscoverInstancesRequest& AddQueryParameters(const char* key, Aws::String&& value) { m_queryParametersHasBeenSet = true; m_queryParameters.emplace(key, std::move(value)); return *this; }
250 
256  inline DiscoverInstancesRequest& AddQueryParameters(Aws::String&& key, const char* value) { m_queryParametersHasBeenSet = true; m_queryParameters.emplace(std::move(key), value); return *this; }
257 
263  inline DiscoverInstancesRequest& AddQueryParameters(const char* key, const char* value) { m_queryParametersHasBeenSet = true; m_queryParameters.emplace(key, value); return *this; }
264 
265 
274  inline const Aws::Map<Aws::String, Aws::String>& GetOptionalParameters() const{ return m_optionalParameters; }
275 
284  inline bool OptionalParametersHasBeenSet() const { return m_optionalParametersHasBeenSet; }
285 
294  inline void SetOptionalParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_optionalParametersHasBeenSet = true; m_optionalParameters = value; }
295 
304  inline void SetOptionalParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_optionalParametersHasBeenSet = true; m_optionalParameters = std::move(value); }
305 
314  inline DiscoverInstancesRequest& WithOptionalParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetOptionalParameters(value); return *this;}
315 
324  inline DiscoverInstancesRequest& WithOptionalParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetOptionalParameters(std::move(value)); return *this;}
325 
334  inline DiscoverInstancesRequest& AddOptionalParameters(const Aws::String& key, const Aws::String& value) { m_optionalParametersHasBeenSet = true; m_optionalParameters.emplace(key, value); return *this; }
335 
344  inline DiscoverInstancesRequest& AddOptionalParameters(Aws::String&& key, const Aws::String& value) { m_optionalParametersHasBeenSet = true; m_optionalParameters.emplace(std::move(key), value); return *this; }
345 
354  inline DiscoverInstancesRequest& AddOptionalParameters(const Aws::String& key, Aws::String&& value) { m_optionalParametersHasBeenSet = true; m_optionalParameters.emplace(key, std::move(value)); return *this; }
355 
364  inline DiscoverInstancesRequest& AddOptionalParameters(Aws::String&& key, Aws::String&& value) { m_optionalParametersHasBeenSet = true; m_optionalParameters.emplace(std::move(key), std::move(value)); return *this; }
365 
374  inline DiscoverInstancesRequest& AddOptionalParameters(const char* key, Aws::String&& value) { m_optionalParametersHasBeenSet = true; m_optionalParameters.emplace(key, std::move(value)); return *this; }
375 
384  inline DiscoverInstancesRequest& AddOptionalParameters(Aws::String&& key, const char* value) { m_optionalParametersHasBeenSet = true; m_optionalParameters.emplace(std::move(key), value); return *this; }
385 
394  inline DiscoverInstancesRequest& AddOptionalParameters(const char* key, const char* value) { m_optionalParametersHasBeenSet = true; m_optionalParameters.emplace(key, value); return *this; }
395 
396 
407  inline const HealthStatusFilter& GetHealthStatus() const{ return m_healthStatus; }
408 
419  inline bool HealthStatusHasBeenSet() const { return m_healthStatusHasBeenSet; }
420 
431  inline void SetHealthStatus(const HealthStatusFilter& value) { m_healthStatusHasBeenSet = true; m_healthStatus = value; }
432 
443  inline void SetHealthStatus(HealthStatusFilter&& value) { m_healthStatusHasBeenSet = true; m_healthStatus = std::move(value); }
444 
455  inline DiscoverInstancesRequest& WithHealthStatus(const HealthStatusFilter& value) { SetHealthStatus(value); return *this;}
456 
467  inline DiscoverInstancesRequest& WithHealthStatus(HealthStatusFilter&& value) { SetHealthStatus(std::move(value)); return *this;}
468 
469  private:
470 
471  Aws::String m_namespaceName;
472  bool m_namespaceNameHasBeenSet;
473 
474  Aws::String m_serviceName;
475  bool m_serviceNameHasBeenSet;
476 
477  int m_maxResults;
478  bool m_maxResultsHasBeenSet;
479 
480  Aws::Map<Aws::String, Aws::String> m_queryParameters;
481  bool m_queryParametersHasBeenSet;
482 
483  Aws::Map<Aws::String, Aws::String> m_optionalParameters;
484  bool m_optionalParametersHasBeenSet;
485 
486  HealthStatusFilter m_healthStatus;
487  bool m_healthStatusHasBeenSet;
488  };
489 
490 } // namespace Model
491 } // namespace ServiceDiscovery
492 } // namespace Aws
ServiceDiscoveryRequest.h
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::GetNamespaceName
const Aws::String & GetNamespaceName() const
Definition: DiscoverInstancesRequest.h:44
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::WithServiceName
DiscoverInstancesRequest & WithServiceName(const char *value)
Definition: DiscoverInstancesRequest.h:142
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::AddOptionalParameters
DiscoverInstancesRequest & AddOptionalParameters(const char *key, const char *value)
Definition: DiscoverInstancesRequest.h:394
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DiscoverInstancesRequest.h:164
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::WithOptionalParameters
DiscoverInstancesRequest & WithOptionalParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: DiscoverInstancesRequest.h:314
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::AddQueryParameters
DiscoverInstancesRequest & AddQueryParameters(const Aws::String &key, Aws::String &&value)
Definition: DiscoverInstancesRequest.h:235
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::DiscoverInstancesRequest
DiscoverInstancesRequest()
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::SetServiceName
void SetServiceName(Aws::String &&value)
Definition: DiscoverInstancesRequest.h:118
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::WithNamespaceName
DiscoverInstancesRequest & WithNamespaceName(Aws::String &&value)
Definition: DiscoverInstancesRequest.h:86
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::SetOptionalParameters
void SetOptionalParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: DiscoverInstancesRequest.h:294
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::OptionalParametersHasBeenSet
bool OptionalParametersHasBeenSet() const
Definition: DiscoverInstancesRequest.h:284
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::AddOptionalParameters
DiscoverInstancesRequest & AddOptionalParameters(const char *key, Aws::String &&value)
Definition: DiscoverInstancesRequest.h:374
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::AddQueryParameters
DiscoverInstancesRequest & AddQueryParameters(Aws::String &&key, const char *value)
Definition: DiscoverInstancesRequest.h:256
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::SetServiceName
void SetServiceName(const char *value)
Definition: DiscoverInstancesRequest.h:124
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::SetHealthStatus
void SetHealthStatus(HealthStatusFilter &&value)
Definition: DiscoverInstancesRequest.h:443
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::SetNamespaceName
void SetNamespaceName(const char *value)
Definition: DiscoverInstancesRequest.h:72
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::SetNamespaceName
void SetNamespaceName(const Aws::String &value)
Definition: DiscoverInstancesRequest.h:58
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::GetOptionalParameters
const Aws::Map< Aws::String, Aws::String > & GetOptionalParameters() const
Definition: DiscoverInstancesRequest.h:274
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::NamespaceNameHasBeenSet
bool NamespaceNameHasBeenSet() const
Definition: DiscoverInstancesRequest.h:51
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::WithQueryParameters
DiscoverInstancesRequest & WithQueryParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: DiscoverInstancesRequest.h:214
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DiscoverInstancesRequest.h:32
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::AddOptionalParameters
DiscoverInstancesRequest & AddOptionalParameters(Aws::String &&key, const char *value)
Definition: DiscoverInstancesRequest.h:384
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::WithHealthStatus
DiscoverInstancesRequest & WithHealthStatus(HealthStatusFilter &&value)
Definition: DiscoverInstancesRequest.h:467
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::WithQueryParameters
DiscoverInstancesRequest & WithQueryParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: DiscoverInstancesRequest.h:207
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::AddQueryParameters
DiscoverInstancesRequest & AddQueryParameters(Aws::String &&key, const Aws::String &value)
Definition: DiscoverInstancesRequest.h:228
Aws::ServiceDiscovery::Model::HealthStatusFilter
HealthStatusFilter
Definition: HealthStatusFilter.h:17
Aws::ServiceDiscovery::ServiceDiscoveryRequest
Definition: ServiceDiscoveryRequest.h:17
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::AddQueryParameters
DiscoverInstancesRequest & AddQueryParameters(Aws::String &&key, Aws::String &&value)
Definition: DiscoverInstancesRequest.h:242
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::AddOptionalParameters
DiscoverInstancesRequest & AddOptionalParameters(const Aws::String &key, const Aws::String &value)
Definition: DiscoverInstancesRequest.h:334
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::SetNamespaceName
void SetNamespaceName(Aws::String &&value)
Definition: DiscoverInstancesRequest.h:65
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::SetQueryParameters
void SetQueryParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: DiscoverInstancesRequest.h:200
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::SetServiceName
void SetServiceName(const Aws::String &value)
Definition: DiscoverInstancesRequest.h:112
AWSString.h
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DiscoverInstancesRequest.h:157
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::AddQueryParameters
DiscoverInstancesRequest & AddQueryParameters(const char *key, const char *value)
Definition: DiscoverInstancesRequest.h:263
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::WithNamespaceName
DiscoverInstancesRequest & WithNamespaceName(const Aws::String &value)
Definition: DiscoverInstancesRequest.h:79
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest
Definition: DiscoverInstancesRequest.h:24
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::AddOptionalParameters
DiscoverInstancesRequest & AddOptionalParameters(Aws::String &&key, const Aws::String &value)
Definition: DiscoverInstancesRequest.h:344
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::WithOptionalParameters
DiscoverInstancesRequest & WithOptionalParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: DiscoverInstancesRequest.h:324
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::QueryParametersHasBeenSet
bool QueryParametersHasBeenSet() const
Definition: DiscoverInstancesRequest.h:186
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::WithServiceName
DiscoverInstancesRequest & WithServiceName(const Aws::String &value)
Definition: DiscoverInstancesRequest.h:130
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::GetHealthStatus
const HealthStatusFilter & GetHealthStatus() const
Definition: DiscoverInstancesRequest.h:407
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::SetOptionalParameters
void SetOptionalParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: DiscoverInstancesRequest.h:304
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::SetQueryParameters
void SetQueryParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: DiscoverInstancesRequest.h:193
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::AddOptionalParameters
DiscoverInstancesRequest & AddOptionalParameters(Aws::String &&key, Aws::String &&value)
Definition: DiscoverInstancesRequest.h:364
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::GetMaxResults
int GetMaxResults() const
Definition: DiscoverInstancesRequest.h:150
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::GetServiceName
const Aws::String & GetServiceName() const
Definition: DiscoverInstancesRequest.h:100
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::HealthStatusHasBeenSet
bool HealthStatusHasBeenSet() const
Definition: DiscoverInstancesRequest.h:419
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::WithServiceName
DiscoverInstancesRequest & WithServiceName(Aws::String &&value)
Definition: DiscoverInstancesRequest.h:136
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::WithMaxResults
DiscoverInstancesRequest & WithMaxResults(int value)
Definition: DiscoverInstancesRequest.h:171
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::AddQueryParameters
DiscoverInstancesRequest & AddQueryParameters(const Aws::String &key, const Aws::String &value)
Definition: DiscoverInstancesRequest.h:221
HealthStatusFilter.h
AWSMap.h
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::ServiceNameHasBeenSet
bool ServiceNameHasBeenSet() const
Definition: DiscoverInstancesRequest.h:106
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::AddQueryParameters
DiscoverInstancesRequest & AddQueryParameters(const char *key, Aws::String &&value)
Definition: DiscoverInstancesRequest.h:249
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::GetQueryParameters
const Aws::Map< Aws::String, Aws::String > & GetQueryParameters() const
Definition: DiscoverInstancesRequest.h:179
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::SetHealthStatus
void SetHealthStatus(const HealthStatusFilter &value)
Definition: DiscoverInstancesRequest.h:431
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::WithNamespaceName
DiscoverInstancesRequest & WithNamespaceName(const char *value)
Definition: DiscoverInstancesRequest.h:93
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::AddOptionalParameters
DiscoverInstancesRequest & AddOptionalParameters(const Aws::String &key, Aws::String &&value)
Definition: DiscoverInstancesRequest.h:354
Aws::ServiceDiscovery::Model::DiscoverInstancesRequest::WithHealthStatus
DiscoverInstancesRequest & WithHealthStatus(const HealthStatusFilter &value)
Definition: DiscoverInstancesRequest.h:455