Interface ApprovalThresholdPolicy.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ApprovalThresholdPolicy.Builder,,ApprovalThresholdPolicy> SdkBuilder<ApprovalThresholdPolicy.Builder,,ApprovalThresholdPolicy> SdkPojo
- Enclosing class:
ApprovalThresholdPolicy
-
Method Summary
Modifier and TypeMethodDescriptionproposalDurationInHours(Integer proposalDurationInHours) The duration from the time that a proposal is created until it expires.thresholdComparator(String thresholdComparator) Determines whether the vote percentage must be greater than theThresholdPercentageor must be greater than or equal to theThresholdPercentageto be approved.thresholdComparator(ThresholdComparator thresholdComparator) Determines whether the vote percentage must be greater than theThresholdPercentageor must be greater than or equal to theThresholdPercentageto be approved.thresholdPercentage(Integer thresholdPercentage) The percentage of votes among all members that must beYESfor a proposal to be approved.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
thresholdPercentage
The percentage of votes among all members that must be
YESfor a proposal to be approved. For example, aThresholdPercentagevalue of50indicates 50%. TheThresholdComparatordetermines the precise comparison. If aThresholdPercentagevalue of50is specified on a network with 10 members, along with aThresholdComparatorvalue ofGREATER_THAN, this indicates that 6YESvotes are required for the proposal to be approved.- Parameters:
thresholdPercentage- The percentage of votes among all members that must beYESfor a proposal to be approved. For example, aThresholdPercentagevalue of50indicates 50%. TheThresholdComparatordetermines the precise comparison. If aThresholdPercentagevalue of50is specified on a network with 10 members, along with aThresholdComparatorvalue ofGREATER_THAN, this indicates that 6YESvotes are required for the proposal to be approved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
proposalDurationInHours
The duration from the time that a proposal is created until it expires. If members cast neither the required number of
YESvotes to approve the proposal nor the number ofNOvotes required to reject it before the duration expires, the proposal isEXPIREDandProposalActionsaren't carried out.- Parameters:
proposalDurationInHours- The duration from the time that a proposal is created until it expires. If members cast neither the required number ofYESvotes to approve the proposal nor the number ofNOvotes required to reject it before the duration expires, the proposal isEXPIREDandProposalActionsaren't carried out.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
thresholdComparator
Determines whether the vote percentage must be greater than the
ThresholdPercentageor must be greater than or equal to theThresholdPercentageto be approved.- Parameters:
thresholdComparator- Determines whether the vote percentage must be greater than theThresholdPercentageor must be greater than or equal to theThresholdPercentageto be approved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
thresholdComparator
Determines whether the vote percentage must be greater than the
ThresholdPercentageor must be greater than or equal to theThresholdPercentageto be approved.- Parameters:
thresholdComparator- Determines whether the vote percentage must be greater than theThresholdPercentageor must be greater than or equal to theThresholdPercentageto be approved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-