AWS SDK for C++  1.9.104
AWS SDK for C++
GetInstancesHealthStatusResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace ServiceDiscovery
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
41  inline const Aws::Map<Aws::String, HealthStatus>& GetStatus() const{ return m_status; }
42 
47  inline void SetStatus(const Aws::Map<Aws::String, HealthStatus>& value) { m_status = value; }
48 
53  inline void SetStatus(Aws::Map<Aws::String, HealthStatus>&& value) { m_status = std::move(value); }
54 
59  inline GetInstancesHealthStatusResult& WithStatus(const Aws::Map<Aws::String, HealthStatus>& value) { SetStatus(value); return *this;}
60 
65  inline GetInstancesHealthStatusResult& WithStatus(Aws::Map<Aws::String, HealthStatus>&& value) { SetStatus(std::move(value)); return *this;}
66 
71  inline GetInstancesHealthStatusResult& AddStatus(const Aws::String& key, const HealthStatus& value) { m_status.emplace(key, value); return *this; }
72 
77  inline GetInstancesHealthStatusResult& AddStatus(Aws::String&& key, const HealthStatus& value) { m_status.emplace(std::move(key), value); return *this; }
78 
83  inline GetInstancesHealthStatusResult& AddStatus(const Aws::String& key, HealthStatus&& value) { m_status.emplace(key, std::move(value)); return *this; }
84 
89  inline GetInstancesHealthStatusResult& AddStatus(Aws::String&& key, HealthStatus&& value) { m_status.emplace(std::move(key), std::move(value)); return *this; }
90 
95  inline GetInstancesHealthStatusResult& AddStatus(const char* key, HealthStatus&& value) { m_status.emplace(key, std::move(value)); return *this; }
96 
101  inline GetInstancesHealthStatusResult& AddStatus(const char* key, const HealthStatus& value) { m_status.emplace(key, value); return *this; }
102 
103 
110  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
111 
118  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
119 
126  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
127 
134  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
135 
142  inline GetInstancesHealthStatusResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
143 
150  inline GetInstancesHealthStatusResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
151 
158  inline GetInstancesHealthStatusResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
159 
160  private:
161 
163 
164  Aws::String m_nextToken;
165  };
166 
167 } // namespace Model
168 } // namespace ServiceDiscovery
169 } // namespace Aws
Aws::ServiceDiscovery::Model::HealthStatus
HealthStatus
Definition: HealthStatus.h:17
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusResult::WithStatus
GetInstancesHealthStatusResult & WithStatus(const Aws::Map< Aws::String, HealthStatus > &value)
Definition: GetInstancesHealthStatusResult.h:59
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
HealthStatus.h
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetInstancesHealthStatusResult.h:118
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusResult::GetInstancesHealthStatusResult
GetInstancesHealthStatusResult()
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusResult::AddStatus
GetInstancesHealthStatusResult & AddStatus(const char *key, const HealthStatus &value)
Definition: GetInstancesHealthStatusResult.h:101
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusResult::WithNextToken
GetInstancesHealthStatusResult & WithNextToken(const Aws::String &value)
Definition: GetInstancesHealthStatusResult.h:142
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusResult::AddStatus
GetInstancesHealthStatusResult & AddStatus(const Aws::String &key, const HealthStatus &value)
Definition: GetInstancesHealthStatusResult.h:71
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusResult::operator=
GetInstancesHealthStatusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusResult
Definition: GetInstancesHealthStatusResult.h:30
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusResult::GetStatus
const Aws::Map< Aws::String, HealthStatus > & GetStatus() const
Definition: GetInstancesHealthStatusResult.h:41
AWSString.h
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusResult::AddStatus
GetInstancesHealthStatusResult & AddStatus(Aws::String &&key, const HealthStatus &value)
Definition: GetInstancesHealthStatusResult.h:77
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusResult::GetInstancesHealthStatusResult
GetInstancesHealthStatusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusResult::WithNextToken
GetInstancesHealthStatusResult & WithNextToken(Aws::String &&value)
Definition: GetInstancesHealthStatusResult.h:150
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetInstancesHealthStatusResult.h:126
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusResult::AddStatus
GetInstancesHealthStatusResult & AddStatus(const char *key, HealthStatus &&value)
Definition: GetInstancesHealthStatusResult.h:95
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusResult::SetNextToken
void SetNextToken(const char *value)
Definition: GetInstancesHealthStatusResult.h:134
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusResult::SetStatus
void SetStatus(const Aws::Map< Aws::String, HealthStatus > &value)
Definition: GetInstancesHealthStatusResult.h:47
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusResult::WithStatus
GetInstancesHealthStatusResult & WithStatus(Aws::Map< Aws::String, HealthStatus > &&value)
Definition: GetInstancesHealthStatusResult.h:65
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusResult::WithNextToken
GetInstancesHealthStatusResult & WithNextToken(const char *value)
Definition: GetInstancesHealthStatusResult.h:158
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusResult::SetStatus
void SetStatus(Aws::Map< Aws::String, HealthStatus > &&value)
Definition: GetInstancesHealthStatusResult.h:53
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusResult::AddStatus
GetInstancesHealthStatusResult & AddStatus(const Aws::String &key, HealthStatus &&value)
Definition: GetInstancesHealthStatusResult.h:83
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusResult::AddStatus
GetInstancesHealthStatusResult & AddStatus(Aws::String &&key, HealthStatus &&value)
Definition: GetInstancesHealthStatusResult.h:89
AWSMap.h
Aws::ServiceDiscovery::Model::GetInstancesHealthStatusResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetInstancesHealthStatusResult.h:110
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19