Struct aws_sdk_managedblockchain::model::voting_policy::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for VotingPolicy.
Implementations§
source§impl Builder
impl Builder
sourcepub fn approval_threshold_policy(self, input: ApprovalThresholdPolicy) -> Self
pub fn approval_threshold_policy(self, input: ApprovalThresholdPolicy) -> Self
Defines the rules for the network for voting on proposals, such as the percentage of YES votes required for the proposal to be approved and the duration of the proposal. The policy applies to all proposals and is specified when the network is created.
sourcepub fn set_approval_threshold_policy(
self,
input: Option<ApprovalThresholdPolicy>
) -> Self
pub fn set_approval_threshold_policy(
self,
input: Option<ApprovalThresholdPolicy>
) -> Self
Defines the rules for the network for voting on proposals, such as the percentage of YES votes required for the proposal to be approved and the duration of the proposal. The policy applies to all proposals and is specified when the network is created.
sourcepub fn build(self) -> VotingPolicy
pub fn build(self) -> VotingPolicy
Consumes the builder and constructs a VotingPolicy.