AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AddKeyEntry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CloudWatchLogs {
20namespace Model {
21
30 public:
31 AWS_CLOUDWATCHLOGS_API AddKeyEntry() = default;
32 AWS_CLOUDWATCHLOGS_API AddKeyEntry(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDWATCHLOGS_API AddKeyEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetKey() const { return m_key; }
41 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
42 template <typename KeyT = Aws::String>
43 void SetKey(KeyT&& value) {
44 m_keyHasBeenSet = true;
45 m_key = std::forward<KeyT>(value);
46 }
47 template <typename KeyT = Aws::String>
48 AddKeyEntry& WithKey(KeyT&& value) {
49 SetKey(std::forward<KeyT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetValue() const { return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 template <typename ValueT = Aws::String>
61 void SetValue(ValueT&& value) {
62 m_valueHasBeenSet = true;
63 m_value = std::forward<ValueT>(value);
64 }
65 template <typename ValueT = Aws::String>
66 AddKeyEntry& WithValue(ValueT&& value) {
67 SetValue(std::forward<ValueT>(value));
68 return *this;
69 }
71
73
77 inline bool GetOverwriteIfExists() const { return m_overwriteIfExists; }
78 inline bool OverwriteIfExistsHasBeenSet() const { return m_overwriteIfExistsHasBeenSet; }
79 inline void SetOverwriteIfExists(bool value) {
80 m_overwriteIfExistsHasBeenSet = true;
81 m_overwriteIfExists = value;
82 }
83 inline AddKeyEntry& WithOverwriteIfExists(bool value) {
85 return *this;
86 }
88 private:
89 Aws::String m_key;
90
91 Aws::String m_value;
92
93 bool m_overwriteIfExists{false};
94 bool m_keyHasBeenSet = false;
95 bool m_valueHasBeenSet = false;
96 bool m_overwriteIfExistsHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace CloudWatchLogs
101} // namespace Aws
Definition AddKeyEntry.h:29
const Aws::String & GetKey() const
Definition AddKeyEntry.h:40
AWS_CLOUDWATCHLOGS_API AddKeyEntry()=default
void SetOverwriteIfExists(bool value)
Definition AddKeyEntry.h:79
AddKeyEntry & WithKey(KeyT &&value)
Definition AddKeyEntry.h:48
AWS_CLOUDWATCHLOGS_API AddKeyEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
AddKeyEntry & WithValue(ValueT &&value)
Definition AddKeyEntry.h:66
bool KeyHasBeenSet() const
Definition AddKeyEntry.h:41
void SetKey(KeyT &&value)
Definition AddKeyEntry.h:43
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetValue() const
Definition AddKeyEntry.h:58
bool GetOverwriteIfExists() const
Definition AddKeyEntry.h:77
bool OverwriteIfExistsHasBeenSet() const
Definition AddKeyEntry.h:78
void SetValue(ValueT &&value)
Definition AddKeyEntry.h:61
AWS_CLOUDWATCHLOGS_API AddKeyEntry(Aws::Utils::Json::JsonView jsonValue)
bool ValueHasBeenSet() const
Definition AddKeyEntry.h:59
AddKeyEntry & WithOverwriteIfExists(bool value)
Definition AddKeyEntry.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue