AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
KeyValue.h
1
6#pragma once
7#include <aws/backup/Backup_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 Backup
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_BACKUP_API KeyValue() = default;
37 AWS_BACKUP_API KeyValue(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BACKUP_API KeyValue& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline const Aws::String& GetKey() const { return m_key; }
50 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
51 template<typename KeyT = Aws::String>
52 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
53 template<typename KeyT = Aws::String>
54 KeyValue& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
56
58
62 inline const Aws::String& GetValue() const { return m_value; }
63 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
64 template<typename ValueT = Aws::String>
65 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
66 template<typename ValueT = Aws::String>
67 KeyValue& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
69 private:
70
71 Aws::String m_key;
72 bool m_keyHasBeenSet = false;
73
74 Aws::String m_value;
75 bool m_valueHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Backup
80} // namespace Aws
KeyValue & WithValue(ValueT &&value)
Definition KeyValue.h:67
AWS_BACKUP_API KeyValue()=default
void SetKey(KeyT &&value)
Definition KeyValue.h:52
const Aws::String & GetKey() const
Definition KeyValue.h:49
AWS_BACKUP_API KeyValue(Aws::Utils::Json::JsonView jsonValue)
KeyValue & WithKey(KeyT &&value)
Definition KeyValue.h:54
bool ValueHasBeenSet() const
Definition KeyValue.h:63
void SetValue(ValueT &&value)
Definition KeyValue.h:65
const Aws::String & GetValue() const
Definition KeyValue.h:62
AWS_BACKUP_API KeyValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue