AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename TypeT = Aws::String>
55 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
56 template<typename TypeT = Aws::String>
57 Condition& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
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) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
69 template<typename KeyT = Aws::String>
70 Condition& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
72
74
78 inline const Aws::String& GetValue() const { return m_value; }
79 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
80 template<typename ValueT = Aws::String>
81 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
82 template<typename ValueT = Aws::String>
83 Condition& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
85 private:
86
87 Aws::String m_type;
88 bool m_typeHasBeenSet = false;
89
90 Aws::String m_key;
91 bool m_keyHasBeenSet = false;
92
93 Aws::String m_value;
94 bool m_valueHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace CloudWatchEvents
99} // namespace Aws
Condition & WithKey(KeyT &&value)
Definition Condition.h:70
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:57
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:52
Condition & WithValue(ValueT &&value)
Definition Condition.h:83
const Aws::String & GetValue() const
Definition Condition.h:78
AWS_CLOUDWATCHEVENTS_API Condition()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue