AWS SDK for C++  1.9.105
AWS SDK for C++
HttpInstanceSummary.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace ServiceDiscovery
24 {
25 namespace Model
26 {
27 
38  {
39  public:
44 
45 
50  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
51 
56  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
57 
62  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
63 
68  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
69 
74  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
75 
80  inline HttpInstanceSummary& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
81 
86  inline HttpInstanceSummary& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
87 
92  inline HttpInstanceSummary& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
93 
94 
100  inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; }
101 
107  inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
108 
114  inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; }
115 
121  inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); }
122 
128  inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); }
129 
135  inline HttpInstanceSummary& WithNamespaceName(const Aws::String& value) { SetNamespaceName(value); return *this;}
136 
142  inline HttpInstanceSummary& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;}
143 
149  inline HttpInstanceSummary& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;}
150 
151 
156  inline const Aws::String& GetServiceName() const{ return m_serviceName; }
157 
162  inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
163 
168  inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
169 
174  inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
175 
180  inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
181 
186  inline HttpInstanceSummary& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
187 
192  inline HttpInstanceSummary& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
193 
198  inline HttpInstanceSummary& WithServiceName(const char* value) { SetServiceName(value); return *this;}
199 
200 
205  inline const HealthStatus& GetHealthStatus() const{ return m_healthStatus; }
206 
211  inline bool HealthStatusHasBeenSet() const { return m_healthStatusHasBeenSet; }
212 
217  inline void SetHealthStatus(const HealthStatus& value) { m_healthStatusHasBeenSet = true; m_healthStatus = value; }
218 
223  inline void SetHealthStatus(HealthStatus&& value) { m_healthStatusHasBeenSet = true; m_healthStatus = std::move(value); }
224 
229  inline HttpInstanceSummary& WithHealthStatus(const HealthStatus& value) { SetHealthStatus(value); return *this;}
230 
235  inline HttpInstanceSummary& WithHealthStatus(HealthStatus&& value) { SetHealthStatus(std::move(value)); return *this;}
236 
237 
242  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
243 
248  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
249 
254  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
255 
260  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
261 
266  inline HttpInstanceSummary& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
267 
272  inline HttpInstanceSummary& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
273 
278  inline HttpInstanceSummary& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
279 
284  inline HttpInstanceSummary& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
285 
290  inline HttpInstanceSummary& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
291 
296  inline HttpInstanceSummary& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
297 
302  inline HttpInstanceSummary& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
303 
308  inline HttpInstanceSummary& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
309 
314  inline HttpInstanceSummary& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
315 
316  private:
317 
318  Aws::String m_instanceId;
319  bool m_instanceIdHasBeenSet;
320 
321  Aws::String m_namespaceName;
322  bool m_namespaceNameHasBeenSet;
323 
324  Aws::String m_serviceName;
325  bool m_serviceNameHasBeenSet;
326 
327  HealthStatus m_healthStatus;
328  bool m_healthStatusHasBeenSet;
329 
331  bool m_attributesHasBeenSet;
332  };
333 
334 } // namespace Model
335 } // namespace ServiceDiscovery
336 } // namespace Aws
Aws::ServiceDiscovery::Model::HealthStatus
HealthStatus
Definition: HealthStatus.h:17
Aws::ServiceDiscovery::Model::HttpInstanceSummary::AddAttributes
HttpInstanceSummary & AddAttributes(const char *key, Aws::String &&value)
Definition: HttpInstanceSummary.h:302
Aws::ServiceDiscovery::Model::HttpInstanceSummary::WithInstanceId
HttpInstanceSummary & WithInstanceId(const char *value)
Definition: HttpInstanceSummary.h:92
Aws::ServiceDiscovery::Model::HttpInstanceSummary::AddAttributes
HttpInstanceSummary & AddAttributes(const Aws::String &key, const Aws::String &value)
Definition: HttpInstanceSummary.h:278
Aws::ServiceDiscovery::Model::HttpInstanceSummary::SetNamespaceName
void SetNamespaceName(const Aws::String &value)
Definition: HttpInstanceSummary.h:114
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::HttpInstanceSummary::WithInstanceId
HttpInstanceSummary & WithInstanceId(Aws::String &&value)
Definition: HttpInstanceSummary.h:86
Aws::ServiceDiscovery::Model::HttpInstanceSummary::WithNamespaceName
HttpInstanceSummary & WithNamespaceName(Aws::String &&value)
Definition: HttpInstanceSummary.h:142
Aws::ServiceDiscovery::Model::HttpInstanceSummary::GetAttributes
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Definition: HttpInstanceSummary.h:242
Aws::ServiceDiscovery::Model::HttpInstanceSummary
Definition: HttpInstanceSummary.h:38
HealthStatus.h
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::HttpInstanceSummary::SetHealthStatus
void SetHealthStatus(const HealthStatus &value)
Definition: HttpInstanceSummary.h:217
Aws::ServiceDiscovery::Model::HttpInstanceSummary::GetNamespaceName
const Aws::String & GetNamespaceName() const
Definition: HttpInstanceSummary.h:100
Aws::ServiceDiscovery::Model::HttpInstanceSummary::AddAttributes
HttpInstanceSummary & AddAttributes(const Aws::String &key, Aws::String &&value)
Definition: HttpInstanceSummary.h:290
Aws::ServiceDiscovery::Model::HttpInstanceSummary::GetHealthStatus
const HealthStatus & GetHealthStatus() const
Definition: HttpInstanceSummary.h:205
Aws::ServiceDiscovery::Model::HttpInstanceSummary::SetServiceName
void SetServiceName(Aws::String &&value)
Definition: HttpInstanceSummary.h:174
Aws::ServiceDiscovery::Model::HttpInstanceSummary::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: HttpInstanceSummary.h:68
Aws::ServiceDiscovery::Model::HttpInstanceSummary::SetServiceName
void SetServiceName(const char *value)
Definition: HttpInstanceSummary.h:180
Aws::ServiceDiscovery::Model::HttpInstanceSummary::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ServiceDiscovery::Model::HttpInstanceSummary::SetAttributes
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: HttpInstanceSummary.h:254
Aws::ServiceDiscovery::Model::HttpInstanceSummary::WithServiceName
HttpInstanceSummary & WithServiceName(Aws::String &&value)
Definition: HttpInstanceSummary.h:192
Aws::ServiceDiscovery::Model::HttpInstanceSummary::GetServiceName
const Aws::String & GetServiceName() const
Definition: HttpInstanceSummary.h:156
Aws::ServiceDiscovery::Model::HttpInstanceSummary::WithAttributes
HttpInstanceSummary & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: HttpInstanceSummary.h:266
Aws::ServiceDiscovery::Model::HttpInstanceSummary::WithHealthStatus
HttpInstanceSummary & WithHealthStatus(HealthStatus &&value)
Definition: HttpInstanceSummary.h:235
Aws::ServiceDiscovery::Model::HttpInstanceSummary::SetAttributes
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: HttpInstanceSummary.h:260
Aws::ServiceDiscovery::Model::HttpInstanceSummary::HttpInstanceSummary
HttpInstanceSummary(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::HttpInstanceSummary::WithServiceName
HttpInstanceSummary & WithServiceName(const char *value)
Definition: HttpInstanceSummary.h:198
Aws::ServiceDiscovery::Model::HttpInstanceSummary::SetNamespaceName
void SetNamespaceName(Aws::String &&value)
Definition: HttpInstanceSummary.h:121
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::ServiceDiscovery::Model::HttpInstanceSummary::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: HttpInstanceSummary.h:50
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ServiceDiscovery::Model::HttpInstanceSummary::HealthStatusHasBeenSet
bool HealthStatusHasBeenSet() const
Definition: HttpInstanceSummary.h:211
Aws::ServiceDiscovery::Model::HttpInstanceSummary::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: HttpInstanceSummary.h:56
Aws::ServiceDiscovery::Model::HttpInstanceSummary::operator=
HttpInstanceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::HttpInstanceSummary::WithInstanceId
HttpInstanceSummary & WithInstanceId(const Aws::String &value)
Definition: HttpInstanceSummary.h:80
Aws::ServiceDiscovery::Model::HttpInstanceSummary::SetServiceName
void SetServiceName(const Aws::String &value)
Definition: HttpInstanceSummary.h:168
Aws::ServiceDiscovery::Model::HttpInstanceSummary::WithServiceName
HttpInstanceSummary & WithServiceName(const Aws::String &value)
Definition: HttpInstanceSummary.h:186
Aws::ServiceDiscovery::Model::HttpInstanceSummary::AddAttributes
HttpInstanceSummary & AddAttributes(const char *key, const char *value)
Definition: HttpInstanceSummary.h:314
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::HttpInstanceSummary::SetInstanceId
void SetInstanceId(const char *value)
Definition: HttpInstanceSummary.h:74
Aws::ServiceDiscovery::Model::HttpInstanceSummary::WithAttributes
HttpInstanceSummary & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: HttpInstanceSummary.h:272
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::HttpInstanceSummary::HttpInstanceSummary
HttpInstanceSummary()
Aws::ServiceDiscovery::Model::HttpInstanceSummary::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: HttpInstanceSummary.h:248
Aws::ServiceDiscovery::Model::HttpInstanceSummary::WithNamespaceName
HttpInstanceSummary & WithNamespaceName(const char *value)
Definition: HttpInstanceSummary.h:149
Aws::ServiceDiscovery::Model::HttpInstanceSummary::AddAttributes
HttpInstanceSummary & AddAttributes(Aws::String &&key, const Aws::String &value)
Definition: HttpInstanceSummary.h:284
Aws::ServiceDiscovery::Model::HttpInstanceSummary::SetHealthStatus
void SetHealthStatus(HealthStatus &&value)
Definition: HttpInstanceSummary.h:223
Aws::ServiceDiscovery::Model::HttpInstanceSummary::SetNamespaceName
void SetNamespaceName(const char *value)
Definition: HttpInstanceSummary.h:128
Aws::ServiceDiscovery::Model::HttpInstanceSummary::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: HttpInstanceSummary.h:62
Aws::ServiceDiscovery::Model::HttpInstanceSummary::WithNamespaceName
HttpInstanceSummary & WithNamespaceName(const Aws::String &value)
Definition: HttpInstanceSummary.h:135
AWSMap.h
Aws::ServiceDiscovery::Model::HttpInstanceSummary::AddAttributes
HttpInstanceSummary & AddAttributes(Aws::String &&key, const char *value)
Definition: HttpInstanceSummary.h:308
Aws::ServiceDiscovery::Model::HttpInstanceSummary::ServiceNameHasBeenSet
bool ServiceNameHasBeenSet() const
Definition: HttpInstanceSummary.h:162
Aws::ServiceDiscovery::Model::HttpInstanceSummary::NamespaceNameHasBeenSet
bool NamespaceNameHasBeenSet() const
Definition: HttpInstanceSummary.h:107
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::ServiceDiscovery::Model::HttpInstanceSummary::AddAttributes
HttpInstanceSummary & AddAttributes(Aws::String &&key, Aws::String &&value)
Definition: HttpInstanceSummary.h:296
Aws::ServiceDiscovery::Model::HttpInstanceSummary::WithHealthStatus
HttpInstanceSummary & WithHealthStatus(const HealthStatus &value)
Definition: HttpInstanceSummary.h:229