AWS SDK for C++  1.9.155
AWS SDK for C++
CustomRule.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Amplify
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetSource() const{ return m_source; }
44 
48  inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
49 
53  inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
54 
58  inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
59 
63  inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
64 
68  inline CustomRule& WithSource(const Aws::String& value) { SetSource(value); return *this;}
69 
73  inline CustomRule& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
74 
78  inline CustomRule& WithSource(const char* value) { SetSource(value); return *this;}
79 
80 
84  inline const Aws::String& GetTarget() const{ return m_target; }
85 
89  inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
90 
94  inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; }
95 
99  inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
100 
104  inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); }
105 
109  inline CustomRule& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
110 
114  inline CustomRule& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
115 
119  inline CustomRule& WithTarget(const char* value) { SetTarget(value); return *this;}
120 
121 
131  inline const Aws::String& GetStatus() const{ return m_status; }
132 
142  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
143 
153  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
154 
164  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
165 
175  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
176 
186  inline CustomRule& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
187 
197  inline CustomRule& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
198 
208  inline CustomRule& WithStatus(const char* value) { SetStatus(value); return *this;}
209 
210 
215  inline const Aws::String& GetCondition() const{ return m_condition; }
216 
221  inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
222 
227  inline void SetCondition(const Aws::String& value) { m_conditionHasBeenSet = true; m_condition = value; }
228 
233  inline void SetCondition(Aws::String&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
234 
239  inline void SetCondition(const char* value) { m_conditionHasBeenSet = true; m_condition.assign(value); }
240 
245  inline CustomRule& WithCondition(const Aws::String& value) { SetCondition(value); return *this;}
246 
251  inline CustomRule& WithCondition(Aws::String&& value) { SetCondition(std::move(value)); return *this;}
252 
257  inline CustomRule& WithCondition(const char* value) { SetCondition(value); return *this;}
258 
259  private:
260 
261  Aws::String m_source;
262  bool m_sourceHasBeenSet;
263 
264  Aws::String m_target;
265  bool m_targetHasBeenSet;
266 
267  Aws::String m_status;
268  bool m_statusHasBeenSet;
269 
270  Aws::String m_condition;
271  bool m_conditionHasBeenSet;
272  };
273 
274 } // namespace Model
275 } // namespace Amplify
276 } // namespace Aws
Amplify_EXPORTS.h
Aws::Amplify::Model::CustomRule::SetCondition
void SetCondition(const char *value)
Definition: CustomRule.h:239
Aws::Amplify::Model::CustomRule::CustomRule
CustomRule()
Aws::Amplify::Model::CustomRule::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Amplify::Model::CustomRule::GetCondition
const Aws::String & GetCondition() const
Definition: CustomRule.h:215
Aws::Amplify::Model::CustomRule::WithSource
CustomRule & WithSource(const Aws::String &value)
Definition: CustomRule.h:68
Aws::Amplify::Model::CustomRule::WithTarget
CustomRule & WithTarget(const char *value)
Definition: CustomRule.h:119
Aws::Amplify::Model::CustomRule::WithTarget
CustomRule & WithTarget(const Aws::String &value)
Definition: CustomRule.h:109
Aws::Amplify::Model::CustomRule::SetStatus
void SetStatus(const Aws::String &value)
Definition: CustomRule.h:153
Aws::Amplify::Model::CustomRule::SetStatus
void SetStatus(const char *value)
Definition: CustomRule.h:175
Aws::Amplify::Model::CustomRule::WithSource
CustomRule & WithSource(const char *value)
Definition: CustomRule.h:78
Aws::Amplify::Model::CustomRule::WithTarget
CustomRule & WithTarget(Aws::String &&value)
Definition: CustomRule.h:114
Aws::Amplify::Model::CustomRule::SetStatus
void SetStatus(Aws::String &&value)
Definition: CustomRule.h:164
Aws::Amplify::Model::CustomRule::WithStatus
CustomRule & WithStatus(const Aws::String &value)
Definition: CustomRule.h:186
Aws::Amplify::Model::CustomRule::WithCondition
CustomRule & WithCondition(const Aws::String &value)
Definition: CustomRule.h:245
Aws::Amplify::Model::CustomRule::SetSource
void SetSource(const char *value)
Definition: CustomRule.h:63
Aws::Amplify::Model::CustomRule::SetTarget
void SetTarget(const Aws::String &value)
Definition: CustomRule.h:94
Aws::Amplify::Model::CustomRule::WithSource
CustomRule & WithSource(Aws::String &&value)
Definition: CustomRule.h:73
Aws::Amplify::Model::CustomRule::GetTarget
const Aws::String & GetTarget() const
Definition: CustomRule.h:84
Aws::Amplify::Model::CustomRule::operator=
CustomRule & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Amplify::Model::CustomRule::TargetHasBeenSet
bool TargetHasBeenSet() const
Definition: CustomRule.h:89
Aws::Amplify::Model::CustomRule::CustomRule
CustomRule(Aws::Utils::Json::JsonView jsonValue)
Aws::Amplify::Model::CustomRule::SetCondition
void SetCondition(Aws::String &&value)
Definition: CustomRule.h:233
Aws::Amplify::Model::CustomRule::SetTarget
void SetTarget(Aws::String &&value)
Definition: CustomRule.h:99
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Amplify::Model::CustomRule::SourceHasBeenSet
bool SourceHasBeenSet() const
Definition: CustomRule.h:48
AWSString.h
Aws::Amplify::Model::CustomRule::SetSource
void SetSource(const Aws::String &value)
Definition: CustomRule.h:53
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Amplify::Model::CustomRule::SetCondition
void SetCondition(const Aws::String &value)
Definition: CustomRule.h:227
Aws::Amplify::Model::CustomRule::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: CustomRule.h:142
Aws::Amplify::Model::CustomRule::ConditionHasBeenSet
bool ConditionHasBeenSet() const
Definition: CustomRule.h:221
Aws::Amplify::Model::CustomRule::SetTarget
void SetTarget(const char *value)
Definition: CustomRule.h:104
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Amplify::Model::CustomRule::WithStatus
CustomRule & WithStatus(const char *value)
Definition: CustomRule.h:208
Aws::Amplify::Model::CustomRule::WithCondition
CustomRule & WithCondition(const char *value)
Definition: CustomRule.h:257
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Amplify::Model::CustomRule::GetStatus
const Aws::String & GetStatus() const
Definition: CustomRule.h:131
Aws::Amplify::Model::CustomRule::GetSource
const Aws::String & GetSource() const
Definition: CustomRule.h:43
Aws::Amplify::Model::CustomRule::WithCondition
CustomRule & WithCondition(Aws::String &&value)
Definition: CustomRule.h:251
Aws::Amplify::Model::CustomRule::SetSource
void SetSource(Aws::String &&value)
Definition: CustomRule.h:58
Aws::Amplify::Model::CustomRule::WithStatus
CustomRule & WithStatus(Aws::String &&value)
Definition: CustomRule.h:197
Aws::Amplify::Model::CustomRule
Definition: CustomRule.h:32
AWS_AMPLIFY_API
#define AWS_AMPLIFY_API
Definition: Amplify_EXPORTS.h:28