AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UserProperty.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoT
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_IOT_API UserProperty();
41
42
44
47 inline const Aws::String& GetKey() const{ return m_key; }
48 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
49 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
50 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
51 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
52 inline UserProperty& WithKey(const Aws::String& value) { SetKey(value); return *this;}
53 inline UserProperty& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
54 inline UserProperty& WithKey(const char* value) { SetKey(value); return *this;}
56
58
61 inline const Aws::String& GetValue() const{ return m_value; }
62 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
63 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
64 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
65 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
66 inline UserProperty& WithValue(const Aws::String& value) { SetValue(value); return *this;}
67 inline UserProperty& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
68 inline UserProperty& WithValue(const char* value) { SetValue(value); return *this;}
70 private:
71
72 Aws::String m_key;
73 bool m_keyHasBeenSet = false;
74
75 Aws::String m_value;
76 bool m_valueHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace IoT
81} // namespace Aws
UserProperty & WithValue(Aws::String &&value)
UserProperty & WithKey(const char *value)
UserProperty & WithValue(const Aws::String &value)
const Aws::String & GetKey() const
void SetKey(const char *value)
void SetValue(Aws::String &&value)
UserProperty & WithKey(const Aws::String &value)
void SetValue(const char *value)
AWS_IOT_API UserProperty(Aws::Utils::Json::JsonView jsonValue)
UserProperty & WithKey(Aws::String &&value)
void SetKey(const Aws::String &value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API UserProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetValue(const Aws::String &value)
UserProperty & WithValue(const char *value)
const Aws::String & GetValue() const
void SetKey(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue