7#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
8#include <aws/managedblockchain/model/ThresholdComparator.h>
19namespace ManagedBlockchain {
53 m_thresholdPercentageHasBeenSet =
true;
54 m_thresholdPercentage = value;
73 m_proposalDurationInHoursHasBeenSet =
true;
74 m_proposalDurationInHours = value;
91 m_thresholdComparatorHasBeenSet =
true;
92 m_thresholdComparator = value;
100 int m_thresholdPercentage{0};
102 int m_proposalDurationInHours{0};
105 bool m_thresholdPercentageHasBeenSet =
false;
106 bool m_proposalDurationInHoursHasBeenSet =
false;
107 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