AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ASSERTIONT = AssertionRule>
54 void SetASSERTION(ASSERTIONT&& value) { m_aSSERTIONHasBeenSet = true; m_aSSERTION = std::forward<ASSERTIONT>(value); }
55 template<typename ASSERTIONT = AssertionRule>
56 Rule& WithASSERTION(ASSERTIONT&& value) { SetASSERTION(std::forward<ASSERTIONT>(value)); return *this;}
58
60
70 inline const GatingRule& GetGATING() const { return m_gATING; }
71 inline bool GATINGHasBeenSet() const { return m_gATINGHasBeenSet; }
72 template<typename GATINGT = GatingRule>
73 void SetGATING(GATINGT&& value) { m_gATINGHasBeenSet = true; m_gATING = std::forward<GATINGT>(value); }
74 template<typename GATINGT = GatingRule>
75 Rule& WithGATING(GATINGT&& value) { SetGATING(std::forward<GATINGT>(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
const AssertionRule & GetASSERTION() const
Definition Rule.h:51
Rule & WithGATING(GATINGT &&value)
Definition Rule.h:75
const GatingRule & GetGATING() const
Definition Rule.h:70
void SetASSERTION(ASSERTIONT &&value)
Definition Rule.h:54
Rule & WithASSERTION(ASSERTIONT &&value)
Definition Rule.h:56
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Rule(Aws::Utils::Json::JsonView jsonValue)
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Rule()=default
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue