AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HttpInstanceSummary.h
1
6#pragma once
7#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/servicediscovery/model/HealthStatus.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ServiceDiscovery
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_SERVICEDISCOVERY_API HttpInstanceSummary();
41 AWS_SERVICEDISCOVERY_API HttpInstanceSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SERVICEDISCOVERY_API HttpInstanceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
52 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
53 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
54 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
55 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
56 inline HttpInstanceSummary& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
57 inline HttpInstanceSummary& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
58 inline HttpInstanceSummary& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
60
62
67 inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; }
68 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
69 inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; }
70 inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); }
71 inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); }
72 inline HttpInstanceSummary& WithNamespaceName(const Aws::String& value) { SetNamespaceName(value); return *this;}
73 inline HttpInstanceSummary& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;}
74 inline HttpInstanceSummary& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;}
76
78
82 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
83 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
84 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
85 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
86 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
87 inline HttpInstanceSummary& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
88 inline HttpInstanceSummary& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
89 inline HttpInstanceSummary& WithServiceName(const char* value) { SetServiceName(value); return *this;}
91
93
97 inline const HealthStatus& GetHealthStatus() const{ return m_healthStatus; }
98 inline bool HealthStatusHasBeenSet() const { return m_healthStatusHasBeenSet; }
99 inline void SetHealthStatus(const HealthStatus& value) { m_healthStatusHasBeenSet = true; m_healthStatus = value; }
100 inline void SetHealthStatus(HealthStatus&& value) { m_healthStatusHasBeenSet = true; m_healthStatus = std::move(value); }
101 inline HttpInstanceSummary& WithHealthStatus(const HealthStatus& value) { SetHealthStatus(value); return *this;}
102 inline HttpInstanceSummary& WithHealthStatus(HealthStatus&& value) { SetHealthStatus(std::move(value)); return *this;}
104
106
110 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
111 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
112 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
113 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
115 inline HttpInstanceSummary& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
116 inline HttpInstanceSummary& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
117 inline HttpInstanceSummary& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
118 inline HttpInstanceSummary& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
119 inline HttpInstanceSummary& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
120 inline HttpInstanceSummary& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
121 inline HttpInstanceSummary& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
122 inline HttpInstanceSummary& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
124 private:
125
126 Aws::String m_instanceId;
127 bool m_instanceIdHasBeenSet = false;
128
129 Aws::String m_namespaceName;
130 bool m_namespaceNameHasBeenSet = false;
131
132 Aws::String m_serviceName;
133 bool m_serviceNameHasBeenSet = false;
134
135 HealthStatus m_healthStatus;
136 bool m_healthStatusHasBeenSet = false;
137
139 bool m_attributesHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace ServiceDiscovery
144} // namespace Aws
HttpInstanceSummary & AddAttributes(const char *key, Aws::String &&value)
HttpInstanceSummary & WithNamespaceName(Aws::String &&value)
HttpInstanceSummary & WithHealthStatus(const HealthStatus &value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
HttpInstanceSummary & WithServiceName(const Aws::String &value)
HttpInstanceSummary & WithNamespaceName(const char *value)
HttpInstanceSummary & AddAttributes(Aws::String &&key, Aws::String &&value)
HttpInstanceSummary & WithServiceName(const char *value)
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
HttpInstanceSummary & AddAttributes(Aws::String &&key, const Aws::String &value)
HttpInstanceSummary & WithInstanceId(Aws::String &&value)
HttpInstanceSummary & AddAttributes(const char *key, const char *value)
HttpInstanceSummary & WithNamespaceName(const Aws::String &value)
HttpInstanceSummary & AddAttributes(const Aws::String &key, Aws::String &&value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
HttpInstanceSummary & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
HttpInstanceSummary & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
AWS_SERVICEDISCOVERY_API HttpInstanceSummary(Aws::Utils::Json::JsonView jsonValue)
HttpInstanceSummary & WithHealthStatus(HealthStatus &&value)
HttpInstanceSummary & AddAttributes(const Aws::String &key, const Aws::String &value)
HttpInstanceSummary & WithInstanceId(const Aws::String &value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
HttpInstanceSummary & WithInstanceId(const char *value)
HttpInstanceSummary & WithServiceName(Aws::String &&value)
HttpInstanceSummary & AddAttributes(Aws::String &&key, const char *value)
AWS_SERVICEDISCOVERY_API HttpInstanceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
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
Aws::Utils::Json::JsonValue JsonValue