AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 RuleType GetType() const { return m_type; }
70 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
71 inline void SetType(RuleType value) { m_typeHasBeenSet = true; m_type = value; }
72 inline RuleConfig& WithType(RuleType value) { SetType(value); return *this;}
74 private:
75
76 bool m_inverted{false};
77 bool m_invertedHasBeenSet = false;
78
79 int m_threshold{0};
80 bool m_thresholdHasBeenSet = false;
81
83 bool m_typeHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Route53RecoveryControlConfig
88} // namespace Aws
AWS_ROUTE53RECOVERYCONTROLCONFIG_API RuleConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROUTE53RECOVERYCONTROLCONFIG_API RuleConfig()=default
AWS_ROUTE53RECOVERYCONTROLCONFIG_API RuleConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue