AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
PropagatingAttribute.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoT {
20namespace Model {
21
29 public:
30 AWS_IOT_API PropagatingAttribute() = default;
34
36
39 inline const Aws::String& GetUserPropertyKey() const { return m_userPropertyKey; }
40 inline bool UserPropertyKeyHasBeenSet() const { return m_userPropertyKeyHasBeenSet; }
41 template <typename UserPropertyKeyT = Aws::String>
42 void SetUserPropertyKey(UserPropertyKeyT&& value) {
43 m_userPropertyKeyHasBeenSet = true;
44 m_userPropertyKey = std::forward<UserPropertyKeyT>(value);
45 }
46 template <typename UserPropertyKeyT = Aws::String>
47 PropagatingAttribute& WithUserPropertyKey(UserPropertyKeyT&& value) {
48 SetUserPropertyKey(std::forward<UserPropertyKeyT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetThingAttribute() const { return m_thingAttribute; }
59 inline bool ThingAttributeHasBeenSet() const { return m_thingAttributeHasBeenSet; }
60 template <typename ThingAttributeT = Aws::String>
61 void SetThingAttribute(ThingAttributeT&& value) {
62 m_thingAttributeHasBeenSet = true;
63 m_thingAttribute = std::forward<ThingAttributeT>(value);
64 }
65 template <typename ThingAttributeT = Aws::String>
66 PropagatingAttribute& WithThingAttribute(ThingAttributeT&& value) {
67 SetThingAttribute(std::forward<ThingAttributeT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetConnectionAttribute() const { return m_connectionAttribute; }
78 inline bool ConnectionAttributeHasBeenSet() const { return m_connectionAttributeHasBeenSet; }
79 template <typename ConnectionAttributeT = Aws::String>
80 void SetConnectionAttribute(ConnectionAttributeT&& value) {
81 m_connectionAttributeHasBeenSet = true;
82 m_connectionAttribute = std::forward<ConnectionAttributeT>(value);
83 }
84 template <typename ConnectionAttributeT = Aws::String>
85 PropagatingAttribute& WithConnectionAttribute(ConnectionAttributeT&& value) {
86 SetConnectionAttribute(std::forward<ConnectionAttributeT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_userPropertyKey;
92
93 Aws::String m_thingAttribute;
94
95 Aws::String m_connectionAttribute;
96 bool m_userPropertyKeyHasBeenSet = false;
97 bool m_thingAttributeHasBeenSet = false;
98 bool m_connectionAttributeHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace IoT
103} // namespace Aws
AWS_IOT_API PropagatingAttribute(Aws::Utils::Json::JsonView jsonValue)
void SetConnectionAttribute(ConnectionAttributeT &&value)
PropagatingAttribute & WithThingAttribute(ThingAttributeT &&value)
const Aws::String & GetConnectionAttribute() const
const Aws::String & GetUserPropertyKey() const
void SetThingAttribute(ThingAttributeT &&value)
const Aws::String & GetThingAttribute() const
PropagatingAttribute & WithUserPropertyKey(UserPropertyKeyT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API PropagatingAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
PropagatingAttribute & WithConnectionAttribute(ConnectionAttributeT &&value)
void SetUserPropertyKey(UserPropertyKeyT &&value)
AWS_IOT_API PropagatingAttribute()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue