AWS SDK for C++  1.9.132
AWS SDK for C++
Public Member Functions | List of all members
Aws::ManagedBlockchain::Model::VotingPolicy Class Reference

#include <VotingPolicy.h>

Public Member Functions

 VotingPolicy ()
 
 VotingPolicy (Aws::Utils::Json::JsonView jsonValue)
 
VotingPolicyoperator= (Aws::Utils::Json::JsonView jsonValue)
 
Aws::Utils::Json::JsonValue Jsonize () const
 
const ApprovalThresholdPolicyGetApprovalThresholdPolicy () const
 
bool ApprovalThresholdPolicyHasBeenSet () const
 
void SetApprovalThresholdPolicy (const ApprovalThresholdPolicy &value)
 
void SetApprovalThresholdPolicy (ApprovalThresholdPolicy &&value)
 
VotingPolicyWithApprovalThresholdPolicy (const ApprovalThresholdPolicy &value)
 
VotingPolicyWithApprovalThresholdPolicy (ApprovalThresholdPolicy &&value)
 

Detailed Description

The voting rules for the network to decide if a proposal is accepted

Applies only to Hyperledger Fabric.

See Also:

AWS API Reference

Definition at line 32 of file VotingPolicy.h.

Constructor & Destructor Documentation

◆ VotingPolicy() [1/2]

Aws::ManagedBlockchain::Model::VotingPolicy::VotingPolicy ( )

◆ VotingPolicy() [2/2]

Aws::ManagedBlockchain::Model::VotingPolicy::VotingPolicy ( Aws::Utils::Json::JsonView  jsonValue)

Member Function Documentation

◆ ApprovalThresholdPolicyHasBeenSet()

bool Aws::ManagedBlockchain::Model::VotingPolicy::ApprovalThresholdPolicyHasBeenSet ( ) const
inline

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.

Definition at line 55 of file VotingPolicy.h.

◆ GetApprovalThresholdPolicy()

const ApprovalThresholdPolicy& Aws::ManagedBlockchain::Model::VotingPolicy::GetApprovalThresholdPolicy ( ) const
inline

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.

Definition at line 47 of file VotingPolicy.h.

◆ Jsonize()

Aws::Utils::Json::JsonValue Aws::ManagedBlockchain::Model::VotingPolicy::Jsonize ( ) const

◆ operator=()

VotingPolicy& Aws::ManagedBlockchain::Model::VotingPolicy::operator= ( Aws::Utils::Json::JsonView  jsonValue)

◆ SetApprovalThresholdPolicy() [1/2]

void Aws::ManagedBlockchain::Model::VotingPolicy::SetApprovalThresholdPolicy ( ApprovalThresholdPolicy &&  value)
inline

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.

Definition at line 71 of file VotingPolicy.h.

◆ SetApprovalThresholdPolicy() [2/2]

void Aws::ManagedBlockchain::Model::VotingPolicy::SetApprovalThresholdPolicy ( const ApprovalThresholdPolicy value)
inline

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.

Definition at line 63 of file VotingPolicy.h.

◆ WithApprovalThresholdPolicy() [1/2]

VotingPolicy& Aws::ManagedBlockchain::Model::VotingPolicy::WithApprovalThresholdPolicy ( ApprovalThresholdPolicy &&  value)
inline

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.

Definition at line 87 of file VotingPolicy.h.

◆ WithApprovalThresholdPolicy() [2/2]

VotingPolicy& Aws::ManagedBlockchain::Model::VotingPolicy::WithApprovalThresholdPolicy ( const ApprovalThresholdPolicy value)
inline

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.

Definition at line 79 of file VotingPolicy.h.


The documentation for this class was generated from the following file: