AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 ComponentPlatform& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
65 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
66 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
67 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
68 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
69 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
70 ComponentPlatform& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
71 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
72 ComponentPlatform& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
73 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
74 }
76 private:
77
78 Aws::String m_name;
79 bool m_nameHasBeenSet = false;
80
82 bool m_attributesHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace GreengrassV2
87} // namespace Aws
AWS_GREENGRASSV2_API ComponentPlatform()=default
ComponentPlatform & WithAttributes(AttributesT &&value)
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
ComponentPlatform & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
ComponentPlatform & WithName(NameT &&value)
AWS_GREENGRASSV2_API ComponentPlatform & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASSV2_API ComponentPlatform(Aws::Utils::Json::JsonView jsonValue)
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