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/events/CloudWatchEvents_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 CloudWatchEvents
22{
23namespace Model
24{
25
39 {
40 public:
41 AWS_CLOUDWATCHEVENTS_API Condition();
42 AWS_CLOUDWATCHEVENTS_API Condition(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CLOUDWATCHEVENTS_API Condition& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::String& GetType() const{ return m_type; }
53 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
54 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
55 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
56 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
57 inline Condition& WithType(const Aws::String& value) { SetType(value); return *this;}
58 inline Condition& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
59 inline Condition& WithType(const char* value) { SetType(value); return *this;}
61
63
67 inline const Aws::String& GetKey() const{ return m_key; }
68 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
69 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
70 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
71 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
72 inline Condition& WithKey(const Aws::String& value) { SetKey(value); return *this;}
73 inline Condition& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
74 inline Condition& WithKey(const char* value) { SetKey(value); return *this;}
76
78
82 inline const Aws::String& GetValue() const{ return m_value; }
83 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
84 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
85 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
86 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
87 inline Condition& WithValue(const Aws::String& value) { SetValue(value); return *this;}
88 inline Condition& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
89 inline Condition& WithValue(const char* value) { SetValue(value); return *this;}
91 private:
92
93 Aws::String m_type;
94 bool m_typeHasBeenSet = false;
95
96 Aws::String m_key;
97 bool m_keyHasBeenSet = false;
98
99 Aws::String m_value;
100 bool m_valueHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace CloudWatchEvents
105} // namespace Aws
Condition & WithValue(const char *value)
Definition Condition.h:89
AWS_CLOUDWATCHEVENTS_API Condition & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetKey() const
Definition Condition.h:67
void SetKey(const char *value)
Definition Condition.h:71
AWS_CLOUDWATCHEVENTS_API Condition()
AWS_CLOUDWATCHEVENTS_API Condition(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
Condition & WithKey(const Aws::String &value)
Definition Condition.h:72
void SetType(const char *value)
Definition Condition.h:56
void SetKey(Aws::String &&value)
Definition Condition.h:70
const Aws::String & GetType() const
Definition Condition.h:52
Condition & WithValue(Aws::String &&value)
Definition Condition.h:88
Condition & WithKey(Aws::String &&value)
Definition Condition.h:73
void SetType(const Aws::String &value)
Definition Condition.h:54
void SetValue(const char *value)
Definition Condition.h:86
Condition & WithKey(const char *value)
Definition Condition.h:74
void SetType(Aws::String &&value)
Definition Condition.h:55
const Aws::String & GetValue() const
Definition Condition.h:82
void SetValue(Aws::String &&value)
Definition Condition.h:85
Condition & WithType(const Aws::String &value)
Definition Condition.h:57
Condition & WithType(const char *value)
Definition Condition.h:59
Condition & WithValue(const Aws::String &value)
Definition Condition.h:87
void SetValue(const Aws::String &value)
Definition Condition.h:84
void SetKey(const Aws::String &value)
Definition Condition.h:69
Condition & WithType(Aws::String &&value)
Definition Condition.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue