AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#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 Amplify
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_AMPLIFY_API CustomRule() = default;
35 AWS_AMPLIFY_API CustomRule(Aws::Utils::Json::JsonView jsonValue);
36 AWS_AMPLIFY_API CustomRule& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetSource() const { return m_source; }
45 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
46 template<typename SourceT = Aws::String>
47 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
48 template<typename SourceT = Aws::String>
49 CustomRule& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
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) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
60 template<typename TargetT = Aws::String>
61 CustomRule& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
63
65
74 inline const Aws::String& GetStatus() const { return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 template<typename StatusT = Aws::String>
77 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
78 template<typename StatusT = Aws::String>
79 CustomRule& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
81
83
87 inline const Aws::String& GetCondition() const { return m_condition; }
88 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
89 template<typename ConditionT = Aws::String>
90 void SetCondition(ConditionT&& value) { m_conditionHasBeenSet = true; m_condition = std::forward<ConditionT>(value); }
91 template<typename ConditionT = Aws::String>
92 CustomRule& WithCondition(ConditionT&& value) { SetCondition(std::forward<ConditionT>(value)); return *this;}
94 private:
95
96 Aws::String m_source;
97 bool m_sourceHasBeenSet = false;
98
99 Aws::String m_target;
100 bool m_targetHasBeenSet = false;
101
102 Aws::String m_status;
103 bool m_statusHasBeenSet = false;
104
105 Aws::String m_condition;
106 bool m_conditionHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace Amplify
111} // namespace Aws
AWS_AMPLIFY_API CustomRule(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStatus() const
Definition CustomRule.h:74
CustomRule & WithCondition(ConditionT &&value)
Definition CustomRule.h:92
void SetStatus(StatusT &&value)
Definition CustomRule.h:77
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:49
void SetCondition(ConditionT &&value)
Definition CustomRule.h:90
CustomRule & WithTarget(TargetT &&value)
Definition CustomRule.h:61
const Aws::String & GetSource() const
Definition CustomRule.h:44
CustomRule & WithStatus(StatusT &&value)
Definition CustomRule.h:79
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:87
void SetSource(SourceT &&value)
Definition CustomRule.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue