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

#include <ApprovalThresholdPolicy.h>

Public Member Functions

 ApprovalThresholdPolicy ()
 
 ApprovalThresholdPolicy (Aws::Utils::Json::JsonView jsonValue)
 
ApprovalThresholdPolicyoperator= (Aws::Utils::Json::JsonView jsonValue)
 
Aws::Utils::Json::JsonValue Jsonize () const
 
int GetThresholdPercentage () const
 
bool ThresholdPercentageHasBeenSet () const
 
void SetThresholdPercentage (int value)
 
ApprovalThresholdPolicyWithThresholdPercentage (int value)
 
int GetProposalDurationInHours () const
 
bool ProposalDurationInHoursHasBeenSet () const
 
void SetProposalDurationInHours (int value)
 
ApprovalThresholdPolicyWithProposalDurationInHours (int value)
 
const ThresholdComparatorGetThresholdComparator () const
 
bool ThresholdComparatorHasBeenSet () const
 
void SetThresholdComparator (const ThresholdComparator &value)
 
void SetThresholdComparator (ThresholdComparator &&value)
 
ApprovalThresholdPolicyWithThresholdComparator (const ThresholdComparator &value)
 
ApprovalThresholdPolicyWithThresholdComparator (ThresholdComparator &&value)
 

Detailed Description

A policy type that defines the voting rules for the network. The rules decide if a proposal is approved. Approval may be based on criteria such as the percentage of YES votes and the duration of the proposal. The policy applies to all proposals and is specified when the network is created.

Applies only to Hyperledger Fabric.

See Also:


AWS API Reference

Definition at line 36 of file ApprovalThresholdPolicy.h.

Constructor & Destructor Documentation

◆ ApprovalThresholdPolicy() [1/2]

Aws::ManagedBlockchain::Model::ApprovalThresholdPolicy::ApprovalThresholdPolicy ( )

◆ ApprovalThresholdPolicy() [2/2]

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

Member Function Documentation

◆ GetProposalDurationInHours()

int Aws::ManagedBlockchain::Model::ApprovalThresholdPolicy::GetProposalDurationInHours ( ) const
inline

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 of NO votes required to reject it before the duration expires, the proposal is EXPIRED and ProposalActions are not carried out.

Definition at line 101 of file ApprovalThresholdPolicy.h.

◆ GetThresholdComparator()

const ThresholdComparator& Aws::ManagedBlockchain::Model::ApprovalThresholdPolicy::GetThresholdComparator ( ) const
inline

Determines whether the vote percentage must be greater than the ThresholdPercentage or must be greater than or equal to the ThreholdPercentage to be approved.

Definition at line 136 of file ApprovalThresholdPolicy.h.

◆ GetThresholdPercentage()

int Aws::ManagedBlockchain::Model::ApprovalThresholdPolicy::GetThresholdPercentage ( ) const
inline

The percentage of votes among all members that must be YES for a proposal to be approved. For example, a ThresholdPercentage value of 50 indicates 50%. The ThresholdComparator determines the precise comparison. If a ThresholdPercentage value of 50 is specified on a network with 10 members, along with a ThresholdComparator value of GREATER_THAN, this indicates that 6 YES votes are required for the proposal to be approved.

Definition at line 55 of file ApprovalThresholdPolicy.h.

◆ Jsonize()

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

◆ operator=()

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

◆ ProposalDurationInHoursHasBeenSet()

bool Aws::ManagedBlockchain::Model::ApprovalThresholdPolicy::ProposalDurationInHoursHasBeenSet ( ) const
inline

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 of NO votes required to reject it before the duration expires, the proposal is EXPIRED and ProposalActions are not carried out.

Definition at line 110 of file ApprovalThresholdPolicy.h.

◆ SetProposalDurationInHours()

void Aws::ManagedBlockchain::Model::ApprovalThresholdPolicy::SetProposalDurationInHours ( int  value)
inline

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 of NO votes required to reject it before the duration expires, the proposal is EXPIRED and ProposalActions are not carried out.

Definition at line 119 of file ApprovalThresholdPolicy.h.

◆ SetThresholdComparator() [1/2]

void Aws::ManagedBlockchain::Model::ApprovalThresholdPolicy::SetThresholdComparator ( const ThresholdComparator value)
inline

Determines whether the vote percentage must be greater than the ThresholdPercentage or must be greater than or equal to the ThreholdPercentage to be approved.

Definition at line 150 of file ApprovalThresholdPolicy.h.

◆ SetThresholdComparator() [2/2]

void Aws::ManagedBlockchain::Model::ApprovalThresholdPolicy::SetThresholdComparator ( ThresholdComparator &&  value)
inline

Determines whether the vote percentage must be greater than the ThresholdPercentage or must be greater than or equal to the ThreholdPercentage to be approved.

Definition at line 157 of file ApprovalThresholdPolicy.h.

◆ SetThresholdPercentage()

void Aws::ManagedBlockchain::Model::ApprovalThresholdPolicy::SetThresholdPercentage ( int  value)
inline

The percentage of votes among all members that must be YES for a proposal to be approved. For example, a ThresholdPercentage value of 50 indicates 50%. The ThresholdComparator determines the precise comparison. If a ThresholdPercentage value of 50 is specified on a network with 10 members, along with a ThresholdComparator value of GREATER_THAN, this indicates that 6 YES votes are required for the proposal to be approved.

Definition at line 79 of file ApprovalThresholdPolicy.h.

◆ ThresholdComparatorHasBeenSet()

bool Aws::ManagedBlockchain::Model::ApprovalThresholdPolicy::ThresholdComparatorHasBeenSet ( ) const
inline

Determines whether the vote percentage must be greater than the ThresholdPercentage or must be greater than or equal to the ThreholdPercentage to be approved.

Definition at line 143 of file ApprovalThresholdPolicy.h.

◆ ThresholdPercentageHasBeenSet()

bool Aws::ManagedBlockchain::Model::ApprovalThresholdPolicy::ThresholdPercentageHasBeenSet ( ) const
inline

The percentage of votes among all members that must be YES for a proposal to be approved. For example, a ThresholdPercentage value of 50 indicates 50%. The ThresholdComparator determines the precise comparison. If a ThresholdPercentage value of 50 is specified on a network with 10 members, along with a ThresholdComparator value of GREATER_THAN, this indicates that 6 YES votes are required for the proposal to be approved.

Definition at line 67 of file ApprovalThresholdPolicy.h.

◆ WithProposalDurationInHours()

ApprovalThresholdPolicy& Aws::ManagedBlockchain::Model::ApprovalThresholdPolicy::WithProposalDurationInHours ( int  value)
inline

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 of NO votes required to reject it before the duration expires, the proposal is EXPIRED and ProposalActions are not carried out.

Definition at line 128 of file ApprovalThresholdPolicy.h.

◆ WithThresholdComparator() [1/2]

ApprovalThresholdPolicy& Aws::ManagedBlockchain::Model::ApprovalThresholdPolicy::WithThresholdComparator ( const ThresholdComparator value)
inline

Determines whether the vote percentage must be greater than the ThresholdPercentage or must be greater than or equal to the ThreholdPercentage to be approved.

Definition at line 164 of file ApprovalThresholdPolicy.h.

◆ WithThresholdComparator() [2/2]

ApprovalThresholdPolicy& Aws::ManagedBlockchain::Model::ApprovalThresholdPolicy::WithThresholdComparator ( ThresholdComparator &&  value)
inline

Determines whether the vote percentage must be greater than the ThresholdPercentage or must be greater than or equal to the ThreholdPercentage to be approved.

Definition at line 171 of file ApprovalThresholdPolicy.h.

◆ WithThresholdPercentage()

ApprovalThresholdPolicy& Aws::ManagedBlockchain::Model::ApprovalThresholdPolicy::WithThresholdPercentage ( int  value)
inline

The percentage of votes among all members that must be YES for a proposal to be approved. For example, a ThresholdPercentage value of 50 indicates 50%. The ThresholdComparator determines the precise comparison. If a ThresholdPercentage value of 50 is specified on a network with 10 members, along with a ThresholdComparator value of GREATER_THAN, this indicates that 6 YES votes are required for the proposal to be approved.

Definition at line 91 of file ApprovalThresholdPolicy.h.


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