AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
UserProperty.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
31 public:
32 AWS_IOT_API UserProperty() = default;
36
38
41 inline const Aws::String& GetKey() const { return m_key; }
42 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
43 template <typename KeyT = Aws::String>
44 void SetKey(KeyT&& value) {
45 m_keyHasBeenSet = true;
46 m_key = std::forward<KeyT>(value);
47 }
48 template <typename KeyT = Aws::String>
49 UserProperty& WithKey(KeyT&& value) {
50 SetKey(std::forward<KeyT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetValue() const { return m_value; }
60 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
61 template <typename ValueT = Aws::String>
62 void SetValue(ValueT&& value) {
63 m_valueHasBeenSet = true;
64 m_value = std::forward<ValueT>(value);
65 }
66 template <typename ValueT = Aws::String>
67 UserProperty& WithValue(ValueT&& value) {
68 SetValue(std::forward<ValueT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_key;
74
75 Aws::String m_value;
76 bool m_keyHasBeenSet = false;
77 bool m_valueHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace IoT
82} // namespace Aws
UserProperty & WithKey(KeyT &&value)
void SetKey(KeyT &&value)
const Aws::String & GetKey() const
void SetValue(ValueT &&value)
AWS_IOT_API UserProperty()=default
AWS_IOT_API UserProperty(Aws::Utils::Json::JsonView jsonValue)
UserProperty & WithValue(ValueT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API UserProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetValue() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue