AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AddAttributesActivity.h
1
6#pragma once
7#include <aws/iotanalytics/IoTAnalytics_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 IoTAnalytics
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOTANALYTICS_API AddAttributesActivity() = default;
37 AWS_IOTANALYTICS_API AddAttributesActivity(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTANALYTICS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 AddAttributesActivity& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
61 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
62 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
63 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
64 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
65 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
66 AddAttributesActivity& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
67 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
68 AddAttributesActivity& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
69 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
70 }
72
74
77 inline const Aws::String& GetNext() const { return m_next; }
78 inline bool NextHasBeenSet() const { return m_nextHasBeenSet; }
79 template<typename NextT = Aws::String>
80 void SetNext(NextT&& value) { m_nextHasBeenSet = true; m_next = std::forward<NextT>(value); }
81 template<typename NextT = Aws::String>
82 AddAttributesActivity& WithNext(NextT&& value) { SetNext(std::forward<NextT>(value)); return *this;}
84 private:
85
86 Aws::String m_name;
87 bool m_nameHasBeenSet = false;
88
90 bool m_attributesHasBeenSet = false;
91
92 Aws::String m_next;
93 bool m_nextHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace IoTAnalytics
98} // namespace Aws
AWS_IOTANALYTICS_API AddAttributesActivity(Aws::Utils::Json::JsonView jsonValue)
AddAttributesActivity & WithAttributes(AttributesT &&value)
AWS_IOTANALYTICS_API AddAttributesActivity & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTANALYTICS_API AddAttributesActivity()=default
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
AddAttributesActivity & WithName(NameT &&value)
AddAttributesActivity & WithNext(NextT &&value)
AWS_IOTANALYTICS_API Aws::Utils::Json::JsonValue Jsonize() const
AddAttributesActivity & AddAttributes(AttributesKeyT &&key, AttributesValueT &&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