AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
Condition.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/events/CloudWatchEvents_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CloudWatchEvents {
20namespace Model {
21
34class Condition {
35 public:
36 AWS_CLOUDWATCHEVENTS_API Condition() = default;
37 AWS_CLOUDWATCHEVENTS_API Condition(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHEVENTS_API Condition& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const Aws::String& GetType() const { return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 template <typename TypeT = Aws::String>
49 void SetType(TypeT&& value) {
50 m_typeHasBeenSet = true;
51 m_type = std::forward<TypeT>(value);
52 }
53 template <typename TypeT = Aws::String>
54 Condition& WithType(TypeT&& value) {
55 SetType(std::forward<TypeT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::String& GetKey() const { return m_key; }
66 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
67 template <typename KeyT = Aws::String>
68 void SetKey(KeyT&& value) {
69 m_keyHasBeenSet = true;
70 m_key = std::forward<KeyT>(value);
71 }
72 template <typename KeyT = Aws::String>
73 Condition& WithKey(KeyT&& value) {
74 SetKey(std::forward<KeyT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetValue() const { return m_value; }
85 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
86 template <typename ValueT = Aws::String>
87 void SetValue(ValueT&& value) {
88 m_valueHasBeenSet = true;
89 m_value = std::forward<ValueT>(value);
90 }
91 template <typename ValueT = Aws::String>
92 Condition& WithValue(ValueT&& value) {
93 SetValue(std::forward<ValueT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_type;
99
100 Aws::String m_key;
101
102 Aws::String m_value;
103 bool m_typeHasBeenSet = false;
104 bool m_keyHasBeenSet = false;
105 bool m_valueHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace CloudWatchEvents
110} // namespace Aws
Condition & WithKey(KeyT &&value)
Definition Condition.h:73
AWS_CLOUDWATCHEVENTS_API Condition & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetKey() const
Definition Condition.h:65
Condition & WithType(TypeT &&value)
Definition Condition.h:54
AWS_CLOUDWATCHEVENTS_API Condition(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetType() const
Definition Condition.h:46
Condition & WithValue(ValueT &&value)
Definition Condition.h:92
const Aws::String & GetValue() const
Definition Condition.h:84
AWS_CLOUDWATCHEVENTS_API Condition()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue