AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
KeyValuePair.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/macie2/Macie2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Macie2 {
20namespace Model {
21
30 public:
31 AWS_MACIE2_API KeyValuePair() = default;
32 AWS_MACIE2_API KeyValuePair(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
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 KeyValuePair& WithKey(KeyT&& value) {
50 SetKey(std::forward<KeyT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetValue() const { return m_value; }
61 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
62 template <typename ValueT = Aws::String>
63 void SetValue(ValueT&& value) {
64 m_valueHasBeenSet = true;
65 m_value = std::forward<ValueT>(value);
66 }
67 template <typename ValueT = Aws::String>
68 KeyValuePair& WithValue(ValueT&& value) {
69 SetValue(std::forward<ValueT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_key;
75
76 Aws::String m_value;
77 bool m_keyHasBeenSet = false;
78 bool m_valueHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Macie2
83} // namespace Aws
const Aws::String & GetKey() const
AWS_MACIE2_API KeyValuePair()=default
const Aws::String & GetValue() const
AWS_MACIE2_API KeyValuePair & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API KeyValuePair(Aws::Utils::Json::JsonView jsonValue)
KeyValuePair & WithKey(KeyT &&value)
KeyValuePair & WithValue(ValueT &&value)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetValue(ValueT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue