AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RejectRule.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/model/RejectRuleBehavior.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 DataZone
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_DATAZONE_API RejectRule();
36 AWS_DATAZONE_API RejectRule(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DATAZONE_API RejectRule& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const RejectRuleBehavior& GetRule() const{ return m_rule; }
47 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
48 inline void SetRule(const RejectRuleBehavior& value) { m_ruleHasBeenSet = true; m_rule = value; }
49 inline void SetRule(RejectRuleBehavior&& value) { m_ruleHasBeenSet = true; m_rule = std::move(value); }
50 inline RejectRule& WithRule(const RejectRuleBehavior& value) { SetRule(value); return *this;}
51 inline RejectRule& WithRule(RejectRuleBehavior&& value) { SetRule(std::move(value)); return *this;}
53
55
59 inline double GetThreshold() const{ return m_threshold; }
60 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
61 inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; }
62 inline RejectRule& WithThreshold(double value) { SetThreshold(value); return *this;}
64 private:
65
66 RejectRuleBehavior m_rule;
67 bool m_ruleHasBeenSet = false;
68
69 double m_threshold;
70 bool m_thresholdHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace DataZone
75} // namespace Aws
RejectRule & WithThreshold(double value)
Definition RejectRule.h:62
AWS_DATAZONE_API RejectRule(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API RejectRule & operator=(Aws::Utils::Json::JsonView jsonValue)
const RejectRuleBehavior & GetRule() const
Definition RejectRule.h:46
RejectRule & WithRule(const RejectRuleBehavior &value)
Definition RejectRule.h:50
void SetRule(const RejectRuleBehavior &value)
Definition RejectRule.h:48
RejectRule & WithRule(RejectRuleBehavior &&value)
Definition RejectRule.h:51
void SetThreshold(double value)
Definition RejectRule.h:61
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRule(RejectRuleBehavior &&value)
Definition RejectRule.h:49
Aws::Utils::Json::JsonValue JsonValue