Class CfnNodeProps.Builder
java.lang.Object
software.amazon.awscdk.services.managedblockchain.CfnNodeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNodeProps>
- Enclosing interface:
- CfnNodeProps
@Stability(Stable)
public static final class CfnNodeProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNodeProps>
A builder for
CfnNodeProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnNodeProps.getMemberId()Sets the value ofCfnNodeProps.getNetworkId()nodeConfiguration(IResolvable nodeConfiguration) Sets the value ofCfnNodeProps.getNodeConfiguration()nodeConfiguration(CfnNode.NodeConfigurationProperty nodeConfiguration) Sets the value ofCfnNodeProps.getNodeConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
networkId
Sets the value ofCfnNodeProps.getNetworkId()- Parameters:
networkId- The unique identifier of the network for the node. This parameter is required. Ethereum public networks have the followingNetworkIds:n-ethereum-mainnetn-ethereum-goerlin-ethereum-rinkeby
- Returns:
this
-
nodeConfiguration
Sets the value ofCfnNodeProps.getNodeConfiguration()- Parameters:
nodeConfiguration- Configuration properties of a peer node. This parameter is required.- Returns:
this
-
nodeConfiguration
@Stability(Stable) public CfnNodeProps.Builder nodeConfiguration(CfnNode.NodeConfigurationProperty nodeConfiguration) Sets the value ofCfnNodeProps.getNodeConfiguration()- Parameters:
nodeConfiguration- Configuration properties of a peer node. This parameter is required.- Returns:
this
-
memberId
Sets the value ofCfnNodeProps.getMemberId()- Parameters:
memberId- The unique identifier of the member to which the node belongs. Applies only to Hyperledger Fabric.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNodeProps>- Returns:
- a new instance of
CfnNodeProps - Throws:
NullPointerException- if any required attribute was not provided
-