Interface ApprovalThresholdPolicy.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ApprovalThresholdPolicy.Builder,ApprovalThresholdPolicy>,SdkBuilder<ApprovalThresholdPolicy.Builder,ApprovalThresholdPolicy>,SdkPojo
- Enclosing class:
- ApprovalThresholdPolicy
public static interface ApprovalThresholdPolicy.Builder extends SdkPojo, CopyableBuilder<ApprovalThresholdPolicy.Builder,ApprovalThresholdPolicy>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ApprovalThresholdPolicy.BuilderproposalDurationInHours(Integer proposalDurationInHours)The duration from the time that a proposal is created until it expires.ApprovalThresholdPolicy.BuilderthresholdComparator(String thresholdComparator)Determines whether the vote percentage must be greater than theThresholdPercentageor must be greater than or equal to theThresholdPercentageto be approved.ApprovalThresholdPolicy.BuilderthresholdComparator(ThresholdComparator thresholdComparator)Determines whether the vote percentage must be greater than theThresholdPercentageor must be greater than or equal to theThresholdPercentageto be approved.ApprovalThresholdPolicy.BuilderthresholdPercentage(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
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
thresholdPercentage
ApprovalThresholdPolicy.Builder thresholdPercentage(Integer 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
ApprovalThresholdPolicy.Builder proposalDurationInHours(Integer 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
ApprovalThresholdPolicy.Builder thresholdComparator(String 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,ThresholdComparator
-
thresholdComparator
ApprovalThresholdPolicy.Builder thresholdComparator(ThresholdComparator 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,ThresholdComparator
-
-