AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Rule.h
1
6#pragma once
7#include <aws/route53-recovery-control-config/Route53RecoveryControlConfig_EXPORTS.h>
8#include <aws/route53-recovery-control-config/model/AssertionRule.h>
9#include <aws/route53-recovery-control-config/model/GatingRule.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Route53RecoveryControlConfig
23{
24namespace Model
25{
26
33 class Rule
34 {
35 public:
36 AWS_ROUTE53RECOVERYCONTROLCONFIG_API Rule();
37 AWS_ROUTE53RECOVERYCONTROLCONFIG_API Rule(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ROUTE53RECOVERYCONTROLCONFIG_API Rule& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
51 inline const AssertionRule& GetASSERTION() const{ return m_aSSERTION; }
52 inline bool ASSERTIONHasBeenSet() const { return m_aSSERTIONHasBeenSet; }
53 inline void SetASSERTION(const AssertionRule& value) { m_aSSERTIONHasBeenSet = true; m_aSSERTION = value; }
54 inline void SetASSERTION(AssertionRule&& value) { m_aSSERTIONHasBeenSet = true; m_aSSERTION = std::move(value); }
55 inline Rule& WithASSERTION(const AssertionRule& value) { SetASSERTION(value); return *this;}
56 inline Rule& WithASSERTION(AssertionRule&& value) { SetASSERTION(std::move(value)); return *this;}
58
60
70 inline const GatingRule& GetGATING() const{ return m_gATING; }
71 inline bool GATINGHasBeenSet() const { return m_gATINGHasBeenSet; }
72 inline void SetGATING(const GatingRule& value) { m_gATINGHasBeenSet = true; m_gATING = value; }
73 inline void SetGATING(GatingRule&& value) { m_gATINGHasBeenSet = true; m_gATING = std::move(value); }
74 inline Rule& WithGATING(const GatingRule& value) { SetGATING(value); return *this;}
75 inline Rule& WithGATING(GatingRule&& value) { SetGATING(std::move(value)); return *this;}
77 private:
78
79 AssertionRule m_aSSERTION;
80 bool m_aSSERTIONHasBeenSet = false;
81
82 GatingRule m_gATING;
83 bool m_gATINGHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Route53RecoveryControlConfig
88} // namespace Aws
void SetASSERTION(AssertionRule &&value)
Definition Rule.h:54
void SetASSERTION(const AssertionRule &value)
Definition Rule.h:53
const AssertionRule & GetASSERTION() const
Definition Rule.h:51
const GatingRule & GetGATING() const
Definition Rule.h:70
void SetGATING(const GatingRule &value)
Definition Rule.h:72
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Rule()
Rule & WithASSERTION(AssertionRule &&value)
Definition Rule.h:56
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Rule(Aws::Utils::Json::JsonView jsonValue)
Rule & WithASSERTION(const AssertionRule &value)
Definition Rule.h:55
Rule & WithGATING(const GatingRule &value)
Definition Rule.h:74
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
Rule & WithGATING(GatingRule &&value)
Definition Rule.h:75
void SetGATING(GatingRule &&value)
Definition Rule.h:73
Aws::Utils::Json::JsonValue JsonValue