AWS SDK for C++  1.9.104
AWS SDK for C++
InstanceSummary.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 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetId() const{ return m_id; }
46 
50  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 
55  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
56 
60  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
61 
65  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
66 
70  inline InstanceSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
71 
75  inline InstanceSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
76 
80  inline InstanceSummary& WithId(const char* value) { SetId(value); return *this;}
81 
82 
113  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
114 
145  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
146 
177  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
178 
209  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
210 
241  inline InstanceSummary& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
242 
273  inline InstanceSummary& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
274 
305  inline InstanceSummary& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
306 
337  inline InstanceSummary& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
338 
369  inline InstanceSummary& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
370 
401  inline InstanceSummary& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
402 
433  inline InstanceSummary& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
434 
465  inline InstanceSummary& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
466 
497  inline InstanceSummary& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
498 
499  private:
500 
501  Aws::String m_id;
502  bool m_idHasBeenSet;
503 
505  bool m_attributesHasBeenSet;
506  };
507 
508 } // namespace Model
509 } // namespace ServiceDiscovery
510 } // namespace Aws
Aws::ServiceDiscovery::Model::InstanceSummary::WithId
InstanceSummary & WithId(const char *value)
Definition: InstanceSummary.h:80
Aws::ServiceDiscovery::Model::InstanceSummary::AddAttributes
InstanceSummary & AddAttributes(const char *key, const char *value)
Definition: InstanceSummary.h:497
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::InstanceSummary::SetId
void SetId(Aws::String &&value)
Definition: InstanceSummary.h:60
Aws::ServiceDiscovery::Model::InstanceSummary::SetAttributes
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: InstanceSummary.h:177
Aws::ServiceDiscovery::Model::InstanceSummary::SetAttributes
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: InstanceSummary.h:209
Aws::ServiceDiscovery::Model::InstanceSummary::WithId
InstanceSummary & WithId(const Aws::String &value)
Definition: InstanceSummary.h:70
Aws::ServiceDiscovery::Model::InstanceSummary::AddAttributes
InstanceSummary & AddAttributes(const Aws::String &key, const Aws::String &value)
Definition: InstanceSummary.h:305
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::InstanceSummary::AddAttributes
InstanceSummary & AddAttributes(Aws::String &&key, Aws::String &&value)
Definition: InstanceSummary.h:401
Aws::ServiceDiscovery::Model::InstanceSummary::WithId
InstanceSummary & WithId(Aws::String &&value)
Definition: InstanceSummary.h:75
Aws::ServiceDiscovery::Model::InstanceSummary::WithAttributes
InstanceSummary & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: InstanceSummary.h:241
Aws::ServiceDiscovery::Model::InstanceSummary::AddAttributes
InstanceSummary & AddAttributes(const Aws::String &key, Aws::String &&value)
Definition: InstanceSummary.h:369
Aws::ServiceDiscovery::Model::InstanceSummary::AddAttributes
InstanceSummary & AddAttributes(const char *key, Aws::String &&value)
Definition: InstanceSummary.h:433
Aws::ServiceDiscovery::Model::InstanceSummary::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: InstanceSummary.h:145
Aws::ServiceDiscovery::Model::InstanceSummary::AddAttributes
InstanceSummary & AddAttributes(Aws::String &&key, const Aws::String &value)
Definition: InstanceSummary.h:337
Aws::ServiceDiscovery::Model::InstanceSummary::IdHasBeenSet
bool IdHasBeenSet() const
Definition: InstanceSummary.h:50
Aws::ServiceDiscovery::Model::InstanceSummary::SetId
void SetId(const Aws::String &value)
Definition: InstanceSummary.h:55
Aws::ServiceDiscovery::Model::InstanceSummary::InstanceSummary
InstanceSummary()
Aws::ServiceDiscovery::Model::InstanceSummary::WithAttributes
InstanceSummary & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: InstanceSummary.h:273
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::ServiceDiscovery::Model::InstanceSummary::SetId
void SetId(const char *value)
Definition: InstanceSummary.h:65
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ServiceDiscovery::Model::InstanceSummary
Definition: InstanceSummary.h:34
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::InstanceSummary::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::InstanceSummary::InstanceSummary
InstanceSummary(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::InstanceSummary::GetId
const Aws::String & GetId() const
Definition: InstanceSummary.h:45
Aws::ServiceDiscovery::Model::InstanceSummary::operator=
InstanceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWSMap.h
Aws::ServiceDiscovery::Model::InstanceSummary::AddAttributes
InstanceSummary & AddAttributes(Aws::String &&key, const char *value)
Definition: InstanceSummary.h:465
Aws::ServiceDiscovery::Model::InstanceSummary::GetAttributes
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Definition: InstanceSummary.h:113
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19