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; }
91 int m_thresholdPercentage;
92 bool m_thresholdPercentageHasBeenSet =
false;
94 int m_proposalDurationInHours;
95 bool m_proposalDurationInHoursHasBeenSet =
false;
98 bool m_thresholdComparatorHasBeenSet =
false;
void SetProposalDurationInHours(int value)
int GetThresholdPercentage() const
void SetThresholdComparator(const ThresholdComparator &value)
bool ThresholdComparatorHasBeenSet() const
ApprovalThresholdPolicy & WithThresholdComparator(const ThresholdComparator &value)
bool ProposalDurationInHoursHasBeenSet() const
AWS_MANAGEDBLOCKCHAIN_API ApprovalThresholdPolicy()
ApprovalThresholdPolicy & WithThresholdPercentage(int value)
AWS_MANAGEDBLOCKCHAIN_API ApprovalThresholdPolicy(Aws::Utils::Json::JsonView jsonValue)
void SetThresholdComparator(ThresholdComparator &&value)
void SetThresholdPercentage(int value)
const ThresholdComparator & GetThresholdComparator() const
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
ApprovalThresholdPolicy & WithThresholdComparator(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