Class CfnMember.NetworkConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.managedblockchain.CfnMember.NetworkConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMember.NetworkConfigurationProperty>
- Enclosing interface:
CfnMember.NetworkConfigurationProperty
@Stability(Stable)
public static final class CfnMember.NetworkConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMember.NetworkConfigurationProperty>
A builder for
CfnMember.NetworkConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnMember.NetworkConfigurationProperty.getDescription()
Sets the value ofCfnMember.NetworkConfigurationProperty.getFramework()
frameworkVersion
(String frameworkVersion) Sets the value ofCfnMember.NetworkConfigurationProperty.getFrameworkVersion()
Sets the value ofCfnMember.NetworkConfigurationProperty.getName()
networkFrameworkConfiguration
(IResolvable networkFrameworkConfiguration) networkFrameworkConfiguration
(CfnMember.NetworkFrameworkConfigurationProperty networkFrameworkConfiguration) votingPolicy
(IResolvable votingPolicy) Sets the value ofCfnMember.NetworkConfigurationProperty.getVotingPolicy()
votingPolicy
(CfnMember.VotingPolicyProperty votingPolicy) Sets the value ofCfnMember.NetworkConfigurationProperty.getVotingPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
framework
@Stability(Stable) public CfnMember.NetworkConfigurationProperty.Builder framework(String framework) Sets the value ofCfnMember.NetworkConfigurationProperty.getFramework()
- Parameters:
framework
- The blockchain framework that the network uses. This parameter is required.- Returns:
this
-
frameworkVersion
@Stability(Stable) public CfnMember.NetworkConfigurationProperty.Builder frameworkVersion(String frameworkVersion) Sets the value ofCfnMember.NetworkConfigurationProperty.getFrameworkVersion()
- Parameters:
frameworkVersion
- The version of the blockchain framework that the network uses. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnMember.NetworkConfigurationProperty.getName()
- Parameters:
name
- The name of the network. This parameter is required.- Returns:
this
-
votingPolicy
@Stability(Stable) public CfnMember.NetworkConfigurationProperty.Builder votingPolicy(IResolvable votingPolicy) Sets the value ofCfnMember.NetworkConfigurationProperty.getVotingPolicy()
- Parameters:
votingPolicy
- The voting rules that the network uses to decide if a proposal is accepted. This parameter is required.- Returns:
this
-
votingPolicy
@Stability(Stable) public CfnMember.NetworkConfigurationProperty.Builder votingPolicy(CfnMember.VotingPolicyProperty votingPolicy) Sets the value ofCfnMember.NetworkConfigurationProperty.getVotingPolicy()
- Parameters:
votingPolicy
- The voting rules that the network uses to decide if a proposal is accepted. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public CfnMember.NetworkConfigurationProperty.Builder description(String description) Sets the value ofCfnMember.NetworkConfigurationProperty.getDescription()
- Parameters:
description
- Attributes of the blockchain framework for the network.- Returns:
this
-
networkFrameworkConfiguration
@Stability(Stable) public CfnMember.NetworkConfigurationProperty.Builder networkFrameworkConfiguration(IResolvable networkFrameworkConfiguration) - Parameters:
networkFrameworkConfiguration
- Configuration properties relevant to the network for the blockchain framework that the network uses.- Returns:
this
-
networkFrameworkConfiguration
@Stability(Stable) public CfnMember.NetworkConfigurationProperty.Builder networkFrameworkConfiguration(CfnMember.NetworkFrameworkConfigurationProperty networkFrameworkConfiguration) - Parameters:
networkFrameworkConfiguration
- Configuration properties relevant to the network for the blockchain framework that the network uses.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMember.NetworkConfigurationProperty>
- Returns:
- a new instance of
CfnMember.NetworkConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-