AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 ThresholdComparator GetThresholdComparator() const { return m_thresholdComparator; }
83 inline bool ThresholdComparatorHasBeenSet() const { return m_thresholdComparatorHasBeenSet; }
84 inline void SetThresholdComparator(ThresholdComparator value) { m_thresholdComparatorHasBeenSet = true; m_thresholdComparator = value; }
87 private:
88
89 int m_thresholdPercentage{0};
90 bool m_thresholdPercentageHasBeenSet = false;
91
92 int m_proposalDurationInHours{0};
93 bool m_proposalDurationInHoursHasBeenSet = false;
94
96 bool m_thresholdComparatorHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace ManagedBlockchain
101} // namespace Aws
ApprovalThresholdPolicy & WithThresholdComparator(ThresholdComparator value)
AWS_MANAGEDBLOCKCHAIN_API ApprovalThresholdPolicy(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDBLOCKCHAIN_API ApprovalThresholdPolicy()=default
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
ApprovalThresholdPolicy & WithProposalDurationInHours(int value)
AWS_MANAGEDBLOCKCHAIN_API ApprovalThresholdPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue