AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ApprovalThresholdPolicy.h
1
6#pragma once
7#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
8#include <aws/managedblockchain/model/ThresholdComparator.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 ManagedBlockchain
22{
23namespace Model
24{
25
37 {
38 public:
39 AWS_MANAGEDBLOCKCHAIN_API ApprovalThresholdPolicy();
40 AWS_MANAGEDBLOCKCHAIN_API ApprovalThresholdPolicy(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MANAGEDBLOCKCHAIN_API ApprovalThresholdPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
56 inline int GetThresholdPercentage() const{ return m_thresholdPercentage; }
57 inline bool ThresholdPercentageHasBeenSet() const { return m_thresholdPercentageHasBeenSet; }
58 inline void SetThresholdPercentage(int value) { m_thresholdPercentageHasBeenSet = true; m_thresholdPercentage = value; }
61
63
70 inline int GetProposalDurationInHours() const{ return m_proposalDurationInHours; }
71 inline bool ProposalDurationInHoursHasBeenSet() const { return m_proposalDurationInHoursHasBeenSet; }
72 inline void SetProposalDurationInHours(int value) { m_proposalDurationInHoursHasBeenSet = true; m_proposalDurationInHours = value; }
75
77
82 inline const ThresholdComparator& GetThresholdComparator() const{ return m_thresholdComparator; }
83 inline bool ThresholdComparatorHasBeenSet() const { return m_thresholdComparatorHasBeenSet; }
84 inline void SetThresholdComparator(const ThresholdComparator& value) { m_thresholdComparatorHasBeenSet = true; m_thresholdComparator = value; }
85 inline void SetThresholdComparator(ThresholdComparator&& value) { m_thresholdComparatorHasBeenSet = true; m_thresholdComparator = std::move(value); }
89 private:
90
91 int m_thresholdPercentage;
92 bool m_thresholdPercentageHasBeenSet = false;
93
94 int m_proposalDurationInHours;
95 bool m_proposalDurationInHoursHasBeenSet = false;
96
97 ThresholdComparator m_thresholdComparator;
98 bool m_thresholdComparatorHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace ManagedBlockchain
103} // namespace Aws
void SetThresholdComparator(const ThresholdComparator &value)
ApprovalThresholdPolicy & WithThresholdComparator(const ThresholdComparator &value)
AWS_MANAGEDBLOCKCHAIN_API ApprovalThresholdPolicy(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
ApprovalThresholdPolicy & WithThresholdComparator(ThresholdComparator &&value)
ApprovalThresholdPolicy & WithProposalDurationInHours(int value)
AWS_MANAGEDBLOCKCHAIN_API ApprovalThresholdPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue