AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
CustomRule.h
1
6#pragma once
7#include <aws/amplify/Amplify_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Amplify {
20namespace Model {
21
28 public:
29 AWS_AMPLIFY_API CustomRule() = default;
30 AWS_AMPLIFY_API CustomRule(Aws::Utils::Json::JsonView jsonValue);
31 AWS_AMPLIFY_API CustomRule& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetSource() const { return m_source; }
39 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
40 template <typename SourceT = Aws::String>
41 void SetSource(SourceT&& value) {
42 m_sourceHasBeenSet = true;
43 m_source = std::forward<SourceT>(value);
44 }
45 template <typename SourceT = Aws::String>
46 CustomRule& WithSource(SourceT&& value) {
47 SetSource(std::forward<SourceT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetTarget() const { return m_target; }
57 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
58 template <typename TargetT = Aws::String>
59 void SetTarget(TargetT&& value) {
60 m_targetHasBeenSet = true;
61 m_target = std::forward<TargetT>(value);
62 }
63 template <typename TargetT = Aws::String>
64 CustomRule& WithTarget(TargetT&& value) {
65 SetTarget(std::forward<TargetT>(value));
66 return *this;
67 }
69
71
80 inline const Aws::String& GetStatus() const { return m_status; }
81 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
82 template <typename StatusT = Aws::String>
83 void SetStatus(StatusT&& value) {
84 m_statusHasBeenSet = true;
85 m_status = std::forward<StatusT>(value);
86 }
87 template <typename StatusT = Aws::String>
88 CustomRule& WithStatus(StatusT&& value) {
89 SetStatus(std::forward<StatusT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetCondition() const { return m_condition; }
100 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
101 template <typename ConditionT = Aws::String>
102 void SetCondition(ConditionT&& value) {
103 m_conditionHasBeenSet = true;
104 m_condition = std::forward<ConditionT>(value);
105 }
106 template <typename ConditionT = Aws::String>
107 CustomRule& WithCondition(ConditionT&& value) {
108 SetCondition(std::forward<ConditionT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_source;
114
115 Aws::String m_target;
116
117 Aws::String m_status;
118
119 Aws::String m_condition;
120 bool m_sourceHasBeenSet = false;
121 bool m_targetHasBeenSet = false;
122 bool m_statusHasBeenSet = false;
123 bool m_conditionHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace Amplify
128} // namespace Aws
AWS_AMPLIFY_API CustomRule(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStatus() const
Definition CustomRule.h:80
CustomRule & WithCondition(ConditionT &&value)
Definition CustomRule.h:107
void SetStatus(StatusT &&value)
Definition CustomRule.h:83
AWS_AMPLIFY_API CustomRule()=default
AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTarget() const
Definition CustomRule.h:56
CustomRule & WithSource(SourceT &&value)
Definition CustomRule.h:46
void SetCondition(ConditionT &&value)
Definition CustomRule.h:102
CustomRule & WithTarget(TargetT &&value)
Definition CustomRule.h:64
const Aws::String & GetSource() const
Definition CustomRule.h:38
CustomRule & WithStatus(StatusT &&value)
Definition CustomRule.h:88
AWS_AMPLIFY_API CustomRule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTarget(TargetT &&value)
Definition CustomRule.h:59
const Aws::String & GetCondition() const
Definition CustomRule.h:99
void SetSource(SourceT &&value)
Definition CustomRule.h:41
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue