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 theThresholdPercentage
or must be greater than or equal to theThresholdPercentage
to be approved.thresholdComparator
(ThresholdComparator thresholdComparator) Determines whether the vote percentage must be greater than theThresholdPercentage
or must be greater than or equal to theThresholdPercentage
to be approved.thresholdPercentage
(Integer thresholdPercentage) The percentage of votes among all members that must beYES
for 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, sdkFields
-
Method Details
-
thresholdPercentage
The percentage of votes among all members that must be
YES
for a proposal to be approved. For example, aThresholdPercentage
value of50
indicates 50%. TheThresholdComparator
determines the precise comparison. If aThresholdPercentage
value of50
is specified on a network with 10 members, along with aThresholdComparator
value ofGREATER_THAN
, this indicates that 6YES
votes are required for the proposal to be approved.- Parameters:
thresholdPercentage
- The percentage of votes among all members that must beYES
for a proposal to be approved. For example, aThresholdPercentage
value of50
indicates 50%. TheThresholdComparator
determines the precise comparison. If aThresholdPercentage
value of50
is specified on a network with 10 members, along with aThresholdComparator
value ofGREATER_THAN
, this indicates that 6YES
votes 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
YES
votes to approve the proposal nor the number ofNO
votes required to reject it before the duration expires, the proposal isEXPIRED
andProposalActions
aren'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 ofYES
votes to approve the proposal nor the number ofNO
votes required to reject it before the duration expires, the proposal isEXPIRED
andProposalActions
aren'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
ThresholdPercentage
or must be greater than or equal to theThresholdPercentage
to be approved.- Parameters:
thresholdComparator
- Determines whether the vote percentage must be greater than theThresholdPercentage
or must be greater than or equal to theThresholdPercentage
to 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
ThresholdPercentage
or must be greater than or equal to theThresholdPercentage
to be approved.- Parameters:
thresholdComparator
- Determines whether the vote percentage must be greater than theThresholdPercentage
or must be greater than or equal to theThresholdPercentage
to be approved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-