AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleConfig.h
1
6#pragma once
7#include <aws/route53-recovery-control-config/Route53RecoveryControlConfig_EXPORTS.h>
8#include <aws/route53-recovery-control-config/model/RuleType.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 Route53RecoveryControlConfig
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_ROUTE53RECOVERYCONTROLCONFIG_API RuleConfig();
38 AWS_ROUTE53RECOVERYCONTROLCONFIG_API RuleConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROUTE53RECOVERYCONTROLCONFIG_API RuleConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline bool GetInverted() const{ return m_inverted; }
49 inline bool InvertedHasBeenSet() const { return m_invertedHasBeenSet; }
50 inline void SetInverted(bool value) { m_invertedHasBeenSet = true; m_inverted = value; }
51 inline RuleConfig& WithInverted(bool value) { SetInverted(value); return *this;}
53
55
59 inline int GetThreshold() const{ return m_threshold; }
60 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
61 inline void SetThreshold(int value) { m_thresholdHasBeenSet = true; m_threshold = value; }
62 inline RuleConfig& WithThreshold(int value) { SetThreshold(value); return *this;}
64
66
69 inline const RuleType& GetType() const{ return m_type; }
70 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
71 inline void SetType(const RuleType& value) { m_typeHasBeenSet = true; m_type = value; }
72 inline void SetType(RuleType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
73 inline RuleConfig& WithType(const RuleType& value) { SetType(value); return *this;}
74 inline RuleConfig& WithType(RuleType&& value) { SetType(std::move(value)); return *this;}
76 private:
77
78 bool m_inverted;
79 bool m_invertedHasBeenSet = false;
80
81 int m_threshold;
82 bool m_thresholdHasBeenSet = false;
83
84 RuleType m_type;
85 bool m_typeHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace Route53RecoveryControlConfig
90} // namespace Aws
AWS_ROUTE53RECOVERYCONTROLCONFIG_API RuleConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleConfig & WithType(const RuleType &value)
Definition RuleConfig.h:73
AWS_ROUTE53RECOVERYCONTROLCONFIG_API RuleConfig()
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROUTE53RECOVERYCONTROLCONFIG_API RuleConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue