AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
56 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
57 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
58 inline Condition& WithType(const Aws::String& value) { SetType(value); return *this;}
59 inline Condition& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
60 inline Condition& WithType(const char* value) { SetType(value); return *this;}
62
64
68 inline const Aws::String& GetKey() const{ return m_key; }
69 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
70 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
71 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
72 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
73 inline Condition& WithKey(const Aws::String& value) { SetKey(value); return *this;}
74 inline Condition& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
75 inline Condition& WithKey(const char* value) { SetKey(value); return *this;}
77
79
83 inline const Aws::String& GetValue() const{ return m_value; }
84 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
85 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
86 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
87 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
88 inline Condition& WithValue(const Aws::String& value) { SetValue(value); return *this;}
89 inline Condition& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
90 inline Condition& WithValue(const char* value) { SetValue(value); return *this;}
92 private:
93
94 Aws::String m_type;
95 bool m_typeHasBeenSet = false;
96
97 Aws::String m_key;
98 bool m_keyHasBeenSet = false;
99
100 Aws::String m_value;
101 bool m_valueHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace EventBridge
106} // namespace Aws
void SetKey(Aws::String &&value)
Definition Condition.h:71
Condition & WithType(Aws::String &&value)
Definition Condition.h:59
const Aws::String & GetKey() const
Definition Condition.h:68
Condition & WithType(const char *value)
Definition Condition.h:60
void SetType(const char *value)
Definition Condition.h:57
AWS_EVENTBRIDGE_API Condition()
void SetKey(const Aws::String &value)
Definition Condition.h:70
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
Condition & WithKey(Aws::String &&value)
Definition Condition.h:74
AWS_EVENTBRIDGE_API Condition(Aws::Utils::Json::JsonView jsonValue)
void SetValue(Aws::String &&value)
Definition Condition.h:86
void SetType(const Aws::String &value)
Definition Condition.h:55
const Aws::String & GetValue() const
Definition Condition.h:83
Condition & WithValue(Aws::String &&value)
Definition Condition.h:89
void SetType(Aws::String &&value)
Definition Condition.h:56
const Aws::String & GetType() const
Definition Condition.h:53
AWS_EVENTBRIDGE_API Condition & operator=(Aws::Utils::Json::JsonView jsonValue)
Condition & WithValue(const char *value)
Definition Condition.h:90
Condition & WithValue(const Aws::String &value)
Definition Condition.h:88
void SetKey(const char *value)
Definition Condition.h:72
void SetValue(const Aws::String &value)
Definition Condition.h:85
Condition & WithType(const Aws::String &value)
Definition Condition.h:58
Condition & WithKey(const Aws::String &value)
Definition Condition.h:73
Condition & WithKey(const char *value)
Definition Condition.h:75
void SetValue(const char *value)
Definition Condition.h:87
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue