AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
KeyValue.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/elasticmapreduce/EMR_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace EMR {
20namespace Model {
21
27class KeyValue {
28 public:
29 AWS_EMR_API KeyValue() = default;
30 AWS_EMR_API KeyValue(Aws::Utils::Json::JsonView jsonValue);
33
35
38 inline const Aws::String& GetKey() const { return m_key; }
39 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
40 template <typename KeyT = Aws::String>
41 void SetKey(KeyT&& value) {
42 m_keyHasBeenSet = true;
43 m_key = std::forward<KeyT>(value);
44 }
45 template <typename KeyT = Aws::String>
46 KeyValue& WithKey(KeyT&& value) {
47 SetKey(std::forward<KeyT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetValue() const { return m_value; }
57 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
58 template <typename ValueT = Aws::String>
59 void SetValue(ValueT&& value) {
60 m_valueHasBeenSet = true;
61 m_value = std::forward<ValueT>(value);
62 }
63 template <typename ValueT = Aws::String>
64 KeyValue& WithValue(ValueT&& value) {
65 SetValue(std::forward<ValueT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_key;
71
72 Aws::String m_value;
73 bool m_keyHasBeenSet = false;
74 bool m_valueHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace EMR
79} // namespace Aws
void SetValue(ValueT &&value)
Definition KeyValue.h:59
AWS_EMR_API KeyValue()=default
const Aws::String & GetValue() const
Definition KeyValue.h:56
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
KeyValue & WithKey(KeyT &&value)
Definition KeyValue.h:46
bool ValueHasBeenSet() const
Definition KeyValue.h:57
const Aws::String & GetKey() const
Definition KeyValue.h:38
KeyValue & WithValue(ValueT &&value)
Definition KeyValue.h:64
AWS_EMR_API KeyValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API KeyValue(Aws::Utils::Json::JsonView jsonValue)
void SetKey(KeyT &&value)
Definition KeyValue.h:41
bool KeyHasBeenSet() const
Definition KeyValue.h:39
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue