AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ComponentPlatform.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_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 GreengrassV2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GREENGRASSV2_API ComponentPlatform();
37 AWS_GREENGRASSV2_API ComponentPlatform(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GREENGRASSV2_API ComponentPlatform& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline ComponentPlatform& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline ComponentPlatform& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline ComponentPlatform& WithName(const char* value) { SetName(value); return *this;}
57
59
67 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
68 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
69 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
70 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
72 inline ComponentPlatform& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
73 inline ComponentPlatform& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
74 inline ComponentPlatform& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
75 inline ComponentPlatform& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
76 inline ComponentPlatform& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
77 inline ComponentPlatform& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
78 inline ComponentPlatform& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
79 inline ComponentPlatform& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
81 private:
82
83 Aws::String m_name;
84 bool m_nameHasBeenSet = false;
85
87 bool m_attributesHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace GreengrassV2
92} // namespace Aws
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
ComponentPlatform & WithName(Aws::String &&value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
ComponentPlatform & AddAttributes(const char *key, Aws::String &&value)
ComponentPlatform & WithName(const char *value)
ComponentPlatform & AddAttributes(Aws::String &&key, Aws::String &&value)
ComponentPlatform & AddAttributes(const char *key, const char *value)
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentPlatform & AddAttributes(Aws::String &&key, const Aws::String &value)
ComponentPlatform & AddAttributes(Aws::String &&key, const char *value)
ComponentPlatform & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
ComponentPlatform & AddAttributes(const Aws::String &key, const Aws::String &value)
ComponentPlatform & WithName(const Aws::String &value)
AWS_GREENGRASSV2_API ComponentPlatform & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASSV2_API ComponentPlatform(Aws::Utils::Json::JsonView jsonValue)
ComponentPlatform & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
ComponentPlatform & AddAttributes(const Aws::String &key, Aws::String &&value)
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