AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DiscoverInstancesRequest.h
1
6#pragma once
7#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
8#include <aws/servicediscovery/ServiceDiscoveryRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/servicediscovery/model/HealthStatusFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ServiceDiscovery
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SERVICEDISCOVERY_API DiscoverInstancesRequest();
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_SERVICEDISCOVERY_API Aws::String SerializePayload() const override;
35
36 AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
47 inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; }
48 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
49 inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; }
50 inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); }
51 inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); }
52 inline DiscoverInstancesRequest& WithNamespaceName(const Aws::String& value) { SetNamespaceName(value); return *this;}
53 inline DiscoverInstancesRequest& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;}
54 inline DiscoverInstancesRequest& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;}
56
58
62 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
63 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
64 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
65 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
66 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
67 inline DiscoverInstancesRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
68 inline DiscoverInstancesRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
69 inline DiscoverInstancesRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;}
71
73
78 inline int GetMaxResults() const{ return m_maxResults; }
79 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
80 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
81 inline DiscoverInstancesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
83
85
90 inline const Aws::Map<Aws::String, Aws::String>& GetQueryParameters() const{ return m_queryParameters; }
91 inline bool QueryParametersHasBeenSet() const { return m_queryParametersHasBeenSet; }
92 inline void SetQueryParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_queryParametersHasBeenSet = true; m_queryParameters = value; }
93 inline void SetQueryParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_queryParametersHasBeenSet = true; m_queryParameters = std::move(value); }
96 inline DiscoverInstancesRequest& AddQueryParameters(const Aws::String& key, const Aws::String& value) { m_queryParametersHasBeenSet = true; m_queryParameters.emplace(key, value); return *this; }
97 inline DiscoverInstancesRequest& AddQueryParameters(Aws::String&& key, const Aws::String& value) { m_queryParametersHasBeenSet = true; m_queryParameters.emplace(std::move(key), value); return *this; }
98 inline DiscoverInstancesRequest& AddQueryParameters(const Aws::String& key, Aws::String&& value) { m_queryParametersHasBeenSet = true; m_queryParameters.emplace(key, std::move(value)); return *this; }
99 inline DiscoverInstancesRequest& AddQueryParameters(Aws::String&& key, Aws::String&& value) { m_queryParametersHasBeenSet = true; m_queryParameters.emplace(std::move(key), std::move(value)); return *this; }
100 inline DiscoverInstancesRequest& AddQueryParameters(const char* key, Aws::String&& value) { m_queryParametersHasBeenSet = true; m_queryParameters.emplace(key, std::move(value)); return *this; }
101 inline DiscoverInstancesRequest& AddQueryParameters(Aws::String&& key, const char* value) { m_queryParametersHasBeenSet = true; m_queryParameters.emplace(std::move(key), value); return *this; }
102 inline DiscoverInstancesRequest& AddQueryParameters(const char* key, const char* value) { m_queryParametersHasBeenSet = true; m_queryParameters.emplace(key, value); return *this; }
104
106
114 inline const Aws::Map<Aws::String, Aws::String>& GetOptionalParameters() const{ return m_optionalParameters; }
115 inline bool OptionalParametersHasBeenSet() const { return m_optionalParametersHasBeenSet; }
116 inline void SetOptionalParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_optionalParametersHasBeenSet = true; m_optionalParameters = value; }
117 inline void SetOptionalParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_optionalParametersHasBeenSet = true; m_optionalParameters = std::move(value); }
120 inline DiscoverInstancesRequest& AddOptionalParameters(const Aws::String& key, const Aws::String& value) { m_optionalParametersHasBeenSet = true; m_optionalParameters.emplace(key, value); return *this; }
121 inline DiscoverInstancesRequest& AddOptionalParameters(Aws::String&& key, const Aws::String& value) { m_optionalParametersHasBeenSet = true; m_optionalParameters.emplace(std::move(key), value); return *this; }
122 inline DiscoverInstancesRequest& AddOptionalParameters(const Aws::String& key, Aws::String&& value) { m_optionalParametersHasBeenSet = true; m_optionalParameters.emplace(key, std::move(value)); return *this; }
123 inline DiscoverInstancesRequest& AddOptionalParameters(Aws::String&& key, Aws::String&& value) { m_optionalParametersHasBeenSet = true; m_optionalParameters.emplace(std::move(key), std::move(value)); return *this; }
124 inline DiscoverInstancesRequest& AddOptionalParameters(const char* key, Aws::String&& value) { m_optionalParametersHasBeenSet = true; m_optionalParameters.emplace(key, std::move(value)); return *this; }
125 inline DiscoverInstancesRequest& AddOptionalParameters(Aws::String&& key, const char* value) { m_optionalParametersHasBeenSet = true; m_optionalParameters.emplace(std::move(key), value); return *this; }
126 inline DiscoverInstancesRequest& AddOptionalParameters(const char* key, const char* value) { m_optionalParametersHasBeenSet = true; m_optionalParameters.emplace(key, value); return *this; }
128
130
140 inline const HealthStatusFilter& GetHealthStatus() const{ return m_healthStatus; }
141 inline bool HealthStatusHasBeenSet() const { return m_healthStatusHasBeenSet; }
142 inline void SetHealthStatus(const HealthStatusFilter& value) { m_healthStatusHasBeenSet = true; m_healthStatus = value; }
143 inline void SetHealthStatus(HealthStatusFilter&& value) { m_healthStatusHasBeenSet = true; m_healthStatus = std::move(value); }
145 inline DiscoverInstancesRequest& WithHealthStatus(HealthStatusFilter&& value) { SetHealthStatus(std::move(value)); return *this;}
147 private:
148
149 Aws::String m_namespaceName;
150 bool m_namespaceNameHasBeenSet = false;
151
152 Aws::String m_serviceName;
153 bool m_serviceNameHasBeenSet = false;
154
155 int m_maxResults;
156 bool m_maxResultsHasBeenSet = false;
157
158 Aws::Map<Aws::String, Aws::String> m_queryParameters;
159 bool m_queryParametersHasBeenSet = false;
160
161 Aws::Map<Aws::String, Aws::String> m_optionalParameters;
162 bool m_optionalParametersHasBeenSet = false;
163
164 HealthStatusFilter m_healthStatus;
165 bool m_healthStatusHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace ServiceDiscovery
170} // namespace Aws
DiscoverInstancesRequest & AddOptionalParameters(Aws::String &&key, const Aws::String &value)
DiscoverInstancesRequest & AddQueryParameters(const Aws::String &key, Aws::String &&value)
DiscoverInstancesRequest & WithServiceName(Aws::String &&value)
DiscoverInstancesRequest & WithQueryParameters(Aws::Map< Aws::String, Aws::String > &&value)
DiscoverInstancesRequest & AddQueryParameters(Aws::String &&key, const Aws::String &value)
DiscoverInstancesRequest & WithNamespaceName(const Aws::String &value)
DiscoverInstancesRequest & AddOptionalParameters(const Aws::String &key, Aws::String &&value)
void SetOptionalParameters(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetOptionalParameters() const
DiscoverInstancesRequest & WithHealthStatus(HealthStatusFilter &&value)
void SetOptionalParameters(const Aws::Map< Aws::String, Aws::String > &value)
DiscoverInstancesRequest & AddQueryParameters(const char *key, const char *value)
DiscoverInstancesRequest & AddQueryParameters(Aws::String &&key, const char *value)
DiscoverInstancesRequest & AddOptionalParameters(Aws::String &&key, const char *value)
DiscoverInstancesRequest & WithOptionalParameters(Aws::Map< Aws::String, Aws::String > &&value)
DiscoverInstancesRequest & AddQueryParameters(const Aws::String &key, const Aws::String &value)
void SetQueryParameters(Aws::Map< Aws::String, Aws::String > &&value)
DiscoverInstancesRequest & WithOptionalParameters(const Aws::Map< Aws::String, Aws::String > &value)
DiscoverInstancesRequest & WithNamespaceName(const char *value)
DiscoverInstancesRequest & AddOptionalParameters(const char *key, const char *value)
DiscoverInstancesRequest & AddOptionalParameters(const Aws::String &key, const Aws::String &value)
DiscoverInstancesRequest & AddQueryParameters(Aws::String &&key, Aws::String &&value)
DiscoverInstancesRequest & WithHealthStatus(const HealthStatusFilter &value)
DiscoverInstancesRequest & AddOptionalParameters(const char *key, Aws::String &&value)
DiscoverInstancesRequest & WithServiceName(const Aws::String &value)
void SetQueryParameters(const Aws::Map< Aws::String, Aws::String > &value)
DiscoverInstancesRequest & WithServiceName(const char *value)
AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override
DiscoverInstancesRequest & AddQueryParameters(const char *key, Aws::String &&value)
DiscoverInstancesRequest & AddOptionalParameters(Aws::String &&key, Aws::String &&value)
AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DiscoverInstancesRequest & WithNamespaceName(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetQueryParameters() const
DiscoverInstancesRequest & WithQueryParameters(const Aws::Map< Aws::String, Aws::String > &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String