AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AcceptRule.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/model/AcceptRuleBehavior.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 AcceptRule();
36 AWS_DATAZONE_API AcceptRule(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DATAZONE_API AcceptRule& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const AcceptRuleBehavior& GetRule() const{ return m_rule; }
47 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
48 inline void SetRule(const AcceptRuleBehavior& value) { m_ruleHasBeenSet = true; m_rule = value; }
49 inline void SetRule(AcceptRuleBehavior&& value) { m_ruleHasBeenSet = true; m_rule = std::move(value); }
50 inline AcceptRule& WithRule(const AcceptRuleBehavior& value) { SetRule(value); return *this;}
51 inline AcceptRule& WithRule(AcceptRuleBehavior&& 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 AcceptRule& WithThreshold(double value) { SetThreshold(value); return *this;}
64 private:
65
66 AcceptRuleBehavior 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
AcceptRule & WithRule(const AcceptRuleBehavior &value)
Definition AcceptRule.h:50
const AcceptRuleBehavior & GetRule() const
Definition AcceptRule.h:46
void SetRule(const AcceptRuleBehavior &value)
Definition AcceptRule.h:48
AWS_DATAZONE_API AcceptRule(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API AcceptRule & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetThreshold(double value)
Definition AcceptRule.h:61
void SetRule(AcceptRuleBehavior &&value)
Definition AcceptRule.h:49
AcceptRule & WithThreshold(double value)
Definition AcceptRule.h:62
AcceptRule & WithRule(AcceptRuleBehavior &&value)
Definition AcceptRule.h:51
Aws::Utils::Json::JsonValue JsonValue