AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceSummary.h
1
6#pragma once
7#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ServiceDiscovery
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SERVICEDISCOVERY_API InstanceSummary();
37 AWS_SERVICEDISCOVERY_API InstanceSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SERVICEDISCOVERY_API InstanceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetId() const{ return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
49 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
50 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
51 inline InstanceSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
52 inline InstanceSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
53 inline InstanceSummary& WithId(const char* value) { SetId(value); return *this;}
55
57
87 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
88 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
89 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
90 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
92 inline InstanceSummary& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
93 inline InstanceSummary& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
94 inline InstanceSummary& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
95 inline InstanceSummary& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
96 inline InstanceSummary& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
97 inline InstanceSummary& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
98 inline InstanceSummary& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
99 inline InstanceSummary& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
101 private:
102
103 Aws::String m_id;
104 bool m_idHasBeenSet = false;
105
107 bool m_attributesHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace ServiceDiscovery
112} // namespace Aws
InstanceSummary & AddAttributes(const Aws::String &key, Aws::String &&value)
AWS_SERVICEDISCOVERY_API InstanceSummary()
InstanceSummary & WithId(const char *value)
InstanceSummary & AddAttributes(Aws::String &&key, Aws::String &&value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
InstanceSummary & WithId(Aws::String &&value)
InstanceSummary & AddAttributes(const char *key, Aws::String &&value)
InstanceSummary & AddAttributes(Aws::String &&key, const char *value)
InstanceSummary & AddAttributes(const char *key, const char *value)
InstanceSummary & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
InstanceSummary & WithId(const Aws::String &value)
AWS_SERVICEDISCOVERY_API InstanceSummary(Aws::Utils::Json::JsonView jsonValue)
InstanceSummary & AddAttributes(Aws::String &&key, const Aws::String &value)
InstanceSummary & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
InstanceSummary & AddAttributes(const Aws::String &key, const Aws::String &value)
AWS_SERVICEDISCOVERY_API InstanceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
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