AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
ComponentPlatform.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GreengrassV2 {
21namespace Model {
22
30 public:
31 AWS_GREENGRASSV2_API ComponentPlatform() = default;
32 AWS_GREENGRASSV2_API ComponentPlatform(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GREENGRASSV2_API ComponentPlatform& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 ComponentPlatform& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
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) {
69 m_attributesHasBeenSet = true;
70 m_attributes = std::forward<AttributesT>(value);
71 }
72 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
73 ComponentPlatform& WithAttributes(AttributesT&& value) {
74 SetAttributes(std::forward<AttributesT>(value));
75 return *this;
76 }
77 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
78 ComponentPlatform& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
79 m_attributesHasBeenSet = true;
80 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
81 return *this;
82 }
84 private:
85 Aws::String m_name;
86
88 bool m_nameHasBeenSet = false;
89 bool m_attributesHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace GreengrassV2
94} // 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