7#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
8#include <aws/managedblockchain/model/ThresholdComparator.h>
21namespace ManagedBlockchain
58 inline void SetThresholdPercentage(
int value) { m_thresholdPercentageHasBeenSet =
true; m_thresholdPercentage = value; }
89 int m_thresholdPercentage{0};
90 bool m_thresholdPercentageHasBeenSet =
false;
92 int m_proposalDurationInHours{0};
93 bool m_proposalDurationInHoursHasBeenSet =
false;
96 bool m_thresholdComparatorHasBeenSet =
false;
void SetProposalDurationInHours(int value)
int GetThresholdPercentage() const
bool ThresholdComparatorHasBeenSet() const
ThresholdComparator GetThresholdComparator() const
bool ProposalDurationInHoursHasBeenSet() const
ApprovalThresholdPolicy & WithThresholdComparator(ThresholdComparator value)
ApprovalThresholdPolicy & WithThresholdPercentage(int value)
AWS_MANAGEDBLOCKCHAIN_API ApprovalThresholdPolicy(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDBLOCKCHAIN_API ApprovalThresholdPolicy()=default
void SetThresholdPercentage(int value)
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetThresholdComparator(ThresholdComparator value)
ApprovalThresholdPolicy & WithProposalDurationInHours(int value)
bool ThresholdPercentageHasBeenSet() const
int GetProposalDurationInHours() const
AWS_MANAGEDBLOCKCHAIN_API ApprovalThresholdPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue