AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ManagedBlockchain {
20namespace Model {
21
33 public:
34 AWS_MANAGEDBLOCKCHAIN_API ApprovalThresholdPolicy() = default;
35 AWS_MANAGEDBLOCKCHAIN_API ApprovalThresholdPolicy(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MANAGEDBLOCKCHAIN_API ApprovalThresholdPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
50 inline int GetThresholdPercentage() const { return m_thresholdPercentage; }
51 inline bool ThresholdPercentageHasBeenSet() const { return m_thresholdPercentageHasBeenSet; }
52 inline void SetThresholdPercentage(int value) {
53 m_thresholdPercentageHasBeenSet = true;
54 m_thresholdPercentage = value;
55 }
58 return *this;
59 }
61
63
70 inline int GetProposalDurationInHours() const { return m_proposalDurationInHours; }
71 inline bool ProposalDurationInHoursHasBeenSet() const { return m_proposalDurationInHoursHasBeenSet; }
72 inline void SetProposalDurationInHours(int value) {
73 m_proposalDurationInHoursHasBeenSet = true;
74 m_proposalDurationInHours = value;
75 }
78 return *this;
79 }
81
83
88 inline ThresholdComparator GetThresholdComparator() const { return m_thresholdComparator; }
89 inline bool ThresholdComparatorHasBeenSet() const { return m_thresholdComparatorHasBeenSet; }
91 m_thresholdComparatorHasBeenSet = true;
92 m_thresholdComparator = value;
93 }
96 return *this;
97 }
99 private:
100 int m_thresholdPercentage{0};
101
102 int m_proposalDurationInHours{0};
103
105 bool m_thresholdPercentageHasBeenSet = false;
106 bool m_proposalDurationInHoursHasBeenSet = false;
107 bool m_thresholdComparatorHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace ManagedBlockchain
112} // 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