AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Condition.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_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 EventBridge
22{
23namespace Model
24{
25
40 {
41 public:
42 AWS_EVENTBRIDGE_API Condition() = default;
43 AWS_EVENTBRIDGE_API Condition(Aws::Utils::Json::JsonView jsonValue);
44 AWS_EVENTBRIDGE_API Condition& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline const Aws::String& GetType() const { return m_type; }
54 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
55 template<typename TypeT = Aws::String>
56 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
57 template<typename TypeT = Aws::String>
58 Condition& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
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) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
70 template<typename KeyT = Aws::String>
71 Condition& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
73
75
79 inline const Aws::String& GetValue() const { return m_value; }
80 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
81 template<typename ValueT = Aws::String>
82 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
83 template<typename ValueT = Aws::String>
84 Condition& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
86 private:
87
88 Aws::String m_type;
89 bool m_typeHasBeenSet = false;
90
91 Aws::String m_key;
92 bool m_keyHasBeenSet = false;
93
94 Aws::String m_value;
95 bool m_valueHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace EventBridge
100} // 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:84
AWS_EVENTBRIDGE_API Condition(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetValue() const
Definition Condition.h:79
const Aws::String & GetType() const
Definition Condition.h:53
AWS_EVENTBRIDGE_API Condition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(TypeT &&value)
Definition Condition.h:56
void SetValue(ValueT &&value)
Definition Condition.h:82
Condition & WithType(TypeT &&value)
Definition Condition.h:58
AWS_EVENTBRIDGE_API Condition()=default
Condition & WithKey(KeyT &&value)
Definition Condition.h:71
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue