AWS SDK for C++  1.9.123
AWS SDK for C++
ComponentPlatform.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 GreengrassV2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
47  inline const Aws::String& GetName() const{ return m_name; }
48 
54  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 
61  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 
68  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
69 
75  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
76 
82  inline ComponentPlatform& WithName(const Aws::String& value) { SetName(value); return *this;}
83 
89  inline ComponentPlatform& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
90 
96  inline ComponentPlatform& WithName(const char* value) { SetName(value); return *this;}
97 
98 
107  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
108 
117  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
118 
127  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
128 
137  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
138 
147  inline ComponentPlatform& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
148 
157  inline ComponentPlatform& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
158 
167  inline ComponentPlatform& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
168 
177  inline ComponentPlatform& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
178 
187  inline ComponentPlatform& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
188 
197  inline ComponentPlatform& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
198 
207  inline ComponentPlatform& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
208 
217  inline ComponentPlatform& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
218 
227  inline ComponentPlatform& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
228 
229  private:
230 
231  Aws::String m_name;
232  bool m_nameHasBeenSet;
233 
235  bool m_attributesHasBeenSet;
236  };
237 
238 } // namespace Model
239 } // namespace GreengrassV2
240 } // namespace Aws
Aws::GreengrassV2::Model::ComponentPlatform::SetAttributes
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: ComponentPlatform.h:137
Aws::GreengrassV2::Model::ComponentPlatform::AddAttributes
ComponentPlatform & AddAttributes(const char *key, const char *value)
Definition: ComponentPlatform.h:227
Aws::GreengrassV2::Model::ComponentPlatform::WithName
ComponentPlatform & WithName(const char *value)
Definition: ComponentPlatform.h:96
Aws::GreengrassV2::Model::ComponentPlatform::operator=
ComponentPlatform & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GreengrassV2::Model::ComponentPlatform::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ComponentPlatform.h:54
Aws::GreengrassV2::Model::ComponentPlatform::WithName
ComponentPlatform & WithName(Aws::String &&value)
Definition: ComponentPlatform.h:89
Aws::GreengrassV2::Model::ComponentPlatform::ComponentPlatform
ComponentPlatform()
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::ComponentPlatform::WithAttributes
ComponentPlatform & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: ComponentPlatform.h:147
Aws::GreengrassV2::Model::ComponentPlatform::WithAttributes
ComponentPlatform & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: ComponentPlatform.h:157
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::ComponentPlatform::AddAttributes
ComponentPlatform & AddAttributes(Aws::String &&key, Aws::String &&value)
Definition: ComponentPlatform.h:197
Aws::GreengrassV2::Model::ComponentPlatform::SetName
void SetName(const Aws::String &value)
Definition: ComponentPlatform.h:61
Aws::GreengrassV2::Model::ComponentPlatform
Definition: ComponentPlatform.h:34
Aws::GreengrassV2::Model::ComponentPlatform::ComponentPlatform
ComponentPlatform(Aws::Utils::Json::JsonView jsonValue)
Aws::GreengrassV2::Model::ComponentPlatform::SetName
void SetName(Aws::String &&value)
Definition: ComponentPlatform.h:68
Aws::GreengrassV2::Model::ComponentPlatform::AddAttributes
ComponentPlatform & AddAttributes(const char *key, Aws::String &&value)
Definition: ComponentPlatform.h:207
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::GreengrassV2::Model::ComponentPlatform::SetName
void SetName(const char *value)
Definition: ComponentPlatform.h:75
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GreengrassV2::Model::ComponentPlatform::AddAttributes
ComponentPlatform & AddAttributes(Aws::String &&key, const Aws::String &value)
Definition: ComponentPlatform.h:177
Aws::GreengrassV2::Model::ComponentPlatform::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GreengrassV2::Model::ComponentPlatform::WithName
ComponentPlatform & WithName(const Aws::String &value)
Definition: ComponentPlatform.h:82
Aws::GreengrassV2::Model::ComponentPlatform::AddAttributes
ComponentPlatform & AddAttributes(const Aws::String &key, Aws::String &&value)
Definition: ComponentPlatform.h:187
Aws::GreengrassV2::Model::ComponentPlatform::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: ComponentPlatform.h:117
Aws::GreengrassV2::Model::ComponentPlatform::AddAttributes
ComponentPlatform & AddAttributes(Aws::String &&key, const char *value)
Definition: ComponentPlatform.h:217
Aws::GreengrassV2::Model::ComponentPlatform::GetName
const Aws::String & GetName() const
Definition: ComponentPlatform.h:47
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::ComponentPlatform::SetAttributes
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: ComponentPlatform.h:127
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWSMap.h
Aws::GreengrassV2::Model::ComponentPlatform::GetAttributes
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Definition: ComponentPlatform.h:107
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::GreengrassV2::Model::ComponentPlatform::AddAttributes
ComponentPlatform & AddAttributes(const Aws::String &key, const Aws::String &value)
Definition: ComponentPlatform.h:167