AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Instance.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
35 {
36 public:
37 AWS_SERVICEDISCOVERY_API Instance();
38 AWS_SERVICEDISCOVERY_API Instance(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SERVICEDISCOVERY_API Instance& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
61 inline const Aws::String& GetId() const{ return m_id; }
62 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
63 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
64 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
65 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
66 inline Instance& WithId(const Aws::String& value) { SetId(value); return *this;}
67 inline Instance& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
68 inline Instance& WithId(const char* value) { SetId(value); return *this;}
70
72
81 inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
82 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
83 inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
84 inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
85 inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
86 inline Instance& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
87 inline Instance& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
88 inline Instance& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
90
92
152 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
153 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
154 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
155 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
156 inline Instance& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
157 inline Instance& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
158 inline Instance& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
159 inline Instance& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
160 inline Instance& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
161 inline Instance& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
162 inline Instance& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
163 inline Instance& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
164 inline Instance& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
166 private:
167
168 Aws::String m_id;
169 bool m_idHasBeenSet = false;
170
171 Aws::String m_creatorRequestId;
172 bool m_creatorRequestIdHasBeenSet = false;
173
175 bool m_attributesHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace ServiceDiscovery
180} // namespace Aws
Instance & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition Instance.h:157
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition Instance.h:155
void SetCreatorRequestId(const Aws::String &value)
Definition Instance.h:83
Instance & AddAttributes(Aws::String &&key, Aws::String &&value)
Definition Instance.h:161
AWS_SERVICEDISCOVERY_API Instance()
Instance & WithCreatorRequestId(const Aws::String &value)
Definition Instance.h:86
Instance & AddAttributes(const char *key, Aws::String &&value)
Definition Instance.h:162
void SetCreatorRequestId(const char *value)
Definition Instance.h:85
Instance & AddAttributes(Aws::String &&key, const Aws::String &value)
Definition Instance.h:159
Instance & AddAttributes(const Aws::String &key, Aws::String &&value)
Definition Instance.h:160
Instance & WithCreatorRequestId(const char *value)
Definition Instance.h:88
Instance & AddAttributes(const char *key, const char *value)
Definition Instance.h:164
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
Instance & AddAttributes(Aws::String &&key, const char *value)
Definition Instance.h:163
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition Instance.h:154
Instance & WithId(const Aws::String &value)
Definition Instance.h:66
const Aws::String & GetId() const
Definition Instance.h:61
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Definition Instance.h:152
Instance & WithId(const char *value)
Definition Instance.h:68
const Aws::String & GetCreatorRequestId() const
Definition Instance.h:81
void SetId(const Aws::String &value)
Definition Instance.h:63
Instance & AddAttributes(const Aws::String &key, const Aws::String &value)
Definition Instance.h:158
Instance & WithCreatorRequestId(Aws::String &&value)
Definition Instance.h:87
AWS_SERVICEDISCOVERY_API Instance(Aws::Utils::Json::JsonView jsonValue)
Instance & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition Instance.h:156
AWS_SERVICEDISCOVERY_API Instance & operator=(Aws::Utils::Json::JsonView jsonValue)
Instance & WithId(Aws::String &&value)
Definition Instance.h:67
void SetId(Aws::String &&value)
Definition Instance.h:64
void SetCreatorRequestId(Aws::String &&value)
Definition Instance.h:84
void SetId(const char *value)
Definition Instance.h:65
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