AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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