AWS SDK for C++  1.9.105
AWS SDK for C++
Instance.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ServiceDiscovery
23 {
24 namespace Model
25 {
26 
35  {
36  public:
41 
42 
60  inline const Aws::String& GetId() const{ return m_id; }
61 
79  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
80 
98  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
99 
117  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
118 
136  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
137 
155  inline Instance& WithId(const Aws::String& value) { SetId(value); return *this;}
156 
174  inline Instance& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
175 
193  inline Instance& WithId(const char* value) { SetId(value); return *this;}
194 
195 
205  inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
206 
216  inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
217 
227  inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
228 
238  inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
239 
249  inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
250 
260  inline Instance& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
261 
271  inline Instance& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
272 
282  inline Instance& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
283 
284 
343  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
344 
403  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
404 
463  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
464 
523  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
524 
583  inline Instance& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
584 
643  inline Instance& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
644 
703  inline Instance& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
704 
763  inline Instance& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
764 
823  inline Instance& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
824 
883  inline Instance& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
884 
943  inline Instance& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
944 
1003  inline Instance& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
1004 
1063  inline Instance& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
1064 
1065  private:
1066 
1067  Aws::String m_id;
1068  bool m_idHasBeenSet;
1069 
1070  Aws::String m_creatorRequestId;
1071  bool m_creatorRequestIdHasBeenSet;
1072 
1074  bool m_attributesHasBeenSet;
1075  };
1076 
1077 } // namespace Model
1078 } // namespace ServiceDiscovery
1079 } // namespace Aws
Aws::ServiceDiscovery::Model::Instance::SetId
void SetId(Aws::String &&value)
Definition: Instance.h:117
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::Instance::WithCreatorRequestId
Instance & WithCreatorRequestId(const char *value)
Definition: Instance.h:282
Aws::ServiceDiscovery::Model::Instance::CreatorRequestIdHasBeenSet
bool CreatorRequestIdHasBeenSet() const
Definition: Instance.h:216
Aws::ServiceDiscovery::Model::Instance::WithId
Instance & WithId(const Aws::String &value)
Definition: Instance.h:155
Aws::ServiceDiscovery::Model::Instance::SetCreatorRequestId
void SetCreatorRequestId(const char *value)
Definition: Instance.h:249
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::Instance::WithCreatorRequestId
Instance & WithCreatorRequestId(Aws::String &&value)
Definition: Instance.h:271
Aws::ServiceDiscovery::Model::Instance::Instance
Instance(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::Instance::SetCreatorRequestId
void SetCreatorRequestId(Aws::String &&value)
Definition: Instance.h:238
Aws::ServiceDiscovery::Model::Instance::SetCreatorRequestId
void SetCreatorRequestId(const Aws::String &value)
Definition: Instance.h:227
Aws::ServiceDiscovery::Model::Instance::AddAttributes
Instance & AddAttributes(const Aws::String &key, Aws::String &&value)
Definition: Instance.h:823
Aws::ServiceDiscovery::Model::Instance::AddAttributes
Instance & AddAttributes(const char *key, const char *value)
Definition: Instance.h:1063
Aws::ServiceDiscovery::Model::Instance::GetAttributes
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Definition: Instance.h:343
Aws::ServiceDiscovery::Model::Instance::Instance
Instance()
Aws::ServiceDiscovery::Model::Instance::WithId
Instance & WithId(const char *value)
Definition: Instance.h:193
Aws::ServiceDiscovery::Model::Instance::WithAttributes
Instance & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: Instance.h:583
Aws::ServiceDiscovery::Model::Instance::AddAttributes
Instance & AddAttributes(const Aws::String &key, const Aws::String &value)
Definition: Instance.h:703
Aws::ServiceDiscovery::Model::Instance
Definition: Instance.h:35
Aws::ServiceDiscovery::Model::Instance::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ServiceDiscovery::Model::Instance::AddAttributes
Instance & AddAttributes(const char *key, Aws::String &&value)
Definition: Instance.h:943
Aws::ServiceDiscovery::Model::Instance::WithCreatorRequestId
Instance & WithCreatorRequestId(const Aws::String &value)
Definition: Instance.h:260
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::ServiceDiscovery::Model::Instance::AddAttributes
Instance & AddAttributes(Aws::String &&key, const Aws::String &value)
Definition: Instance.h:763
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ServiceDiscovery::Model::Instance::AddAttributes
Instance & AddAttributes(Aws::String &&key, const char *value)
Definition: Instance.h:1003
Aws::ServiceDiscovery::Model::Instance::operator=
Instance & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::Instance::GetId
const Aws::String & GetId() const
Definition: Instance.h:60
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::Instance::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Instance.h:79
Aws::ServiceDiscovery::Model::Instance::SetId
void SetId(const char *value)
Definition: Instance.h:136
Aws::ServiceDiscovery::Model::Instance::AddAttributes
Instance & AddAttributes(Aws::String &&key, Aws::String &&value)
Definition: Instance.h:883
Aws::ServiceDiscovery::Model::Instance::WithAttributes
Instance & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: Instance.h:643
Aws::ServiceDiscovery::Model::Instance::SetAttributes
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: Instance.h:463
Aws::ServiceDiscovery::Model::Instance::SetId
void SetId(const Aws::String &value)
Definition: Instance.h:98
Aws::ServiceDiscovery::Model::Instance::SetAttributes
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: Instance.h:523
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::Instance::GetCreatorRequestId
const Aws::String & GetCreatorRequestId() const
Definition: Instance.h:205
Aws::ServiceDiscovery::Model::Instance::WithId
Instance & WithId(Aws::String &&value)
Definition: Instance.h:174
AWSMap.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::ServiceDiscovery::Model::Instance::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: Instance.h:403