AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
47 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
48 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
49 inline CustomRule& WithSource(const Aws::String& value) { SetSource(value); return *this;}
50 inline CustomRule& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
51 inline CustomRule& WithSource(const char* value) { SetSource(value); return *this;}
53
55
58 inline const Aws::String& GetTarget() const{ return m_target; }
59 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
60 inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; }
61 inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
62 inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); }
63 inline CustomRule& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
64 inline CustomRule& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
65 inline CustomRule& WithTarget(const char* value) { SetTarget(value); return *this;}
67
69
78 inline const Aws::String& GetStatus() const{ return m_status; }
79 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
80 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
81 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
82 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
83 inline CustomRule& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
84 inline CustomRule& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
85 inline CustomRule& WithStatus(const char* value) { SetStatus(value); return *this;}
87
89
93 inline const Aws::String& GetCondition() const{ return m_condition; }
94 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
95 inline void SetCondition(const Aws::String& value) { m_conditionHasBeenSet = true; m_condition = value; }
96 inline void SetCondition(Aws::String&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
97 inline void SetCondition(const char* value) { m_conditionHasBeenSet = true; m_condition.assign(value); }
98 inline CustomRule& WithCondition(const Aws::String& value) { SetCondition(value); return *this;}
99 inline CustomRule& WithCondition(Aws::String&& value) { SetCondition(std::move(value)); return *this;}
100 inline CustomRule& WithCondition(const char* value) { SetCondition(value); return *this;}
102 private:
103
104 Aws::String m_source;
105 bool m_sourceHasBeenSet = false;
106
107 Aws::String m_target;
108 bool m_targetHasBeenSet = false;
109
110 Aws::String m_status;
111 bool m_statusHasBeenSet = false;
112
113 Aws::String m_condition;
114 bool m_conditionHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace Amplify
119} // namespace Aws
AWS_AMPLIFY_API CustomRule(Aws::Utils::Json::JsonView jsonValue)
CustomRule & WithTarget(Aws::String &&value)
Definition CustomRule.h:64
const Aws::String & GetStatus() const
Definition CustomRule.h:78
CustomRule & WithSource(const char *value)
Definition CustomRule.h:51
CustomRule & WithTarget(const char *value)
Definition CustomRule.h:65
void SetStatus(const Aws::String &value)
Definition CustomRule.h:80
void SetCondition(const char *value)
Definition CustomRule.h:97
void SetCondition(const Aws::String &value)
Definition CustomRule.h:95
void SetSource(const char *value)
Definition CustomRule.h:48
void SetStatus(const char *value)
Definition CustomRule.h:82
CustomRule & WithStatus(const char *value)
Definition CustomRule.h:85
CustomRule & WithSource(const Aws::String &value)
Definition CustomRule.h:49
CustomRule & WithTarget(const Aws::String &value)
Definition CustomRule.h:63
AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTarget() const
Definition CustomRule.h:58
CustomRule & WithCondition(const Aws::String &value)
Definition CustomRule.h:98
void SetStatus(Aws::String &&value)
Definition CustomRule.h:81
CustomRule & WithCondition(const char *value)
Definition CustomRule.h:100
CustomRule & WithStatus(Aws::String &&value)
Definition CustomRule.h:84
const Aws::String & GetSource() const
Definition CustomRule.h:44
void SetTarget(const Aws::String &value)
Definition CustomRule.h:60
CustomRule & WithCondition(Aws::String &&value)
Definition CustomRule.h:99
void SetTarget(const char *value)
Definition CustomRule.h:62
AWS_AMPLIFY_API CustomRule & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomRule & WithSource(Aws::String &&value)
Definition CustomRule.h:50
const Aws::String & GetCondition() const
Definition CustomRule.h:93
void SetTarget(Aws::String &&value)
Definition CustomRule.h:61
CustomRule & WithStatus(const Aws::String &value)
Definition CustomRule.h:83
void SetSource(const Aws::String &value)
Definition CustomRule.h:46
void SetCondition(Aws::String &&value)
Definition CustomRule.h:96
void SetSource(Aws::String &&value)
Definition CustomRule.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue