Class CfnNode.NodeConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.managedblockchain.CfnNode.NodeConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNode.NodeConfigurationProperty>
- Enclosing interface:
CfnNode.NodeConfigurationProperty
@Stability(Stable)
public static final class CfnNode.NodeConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNode.NodeConfigurationProperty>
A builder for
CfnNode.NodeConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone
(String availabilityZone) Sets the value ofCfnNode.NodeConfigurationProperty.getAvailabilityZone()
build()
Builds the configured instance.instanceType
(String instanceType) Sets the value ofCfnNode.NodeConfigurationProperty.getInstanceType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZone
@Stability(Stable) public CfnNode.NodeConfigurationProperty.Builder availabilityZone(String availabilityZone) Sets the value ofCfnNode.NodeConfigurationProperty.getAvailabilityZone()
- Parameters:
availabilityZone
- The Availability Zone in which the node exists. This parameter is required. Required for Ethereum nodes.- Returns:
this
-
instanceType
@Stability(Stable) public CfnNode.NodeConfigurationProperty.Builder instanceType(String instanceType) Sets the value ofCfnNode.NodeConfigurationProperty.getInstanceType()
- Parameters:
instanceType
- The Amazon Managed Blockchain instance type for the node. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnNode.NodeConfigurationProperty>
- Returns:
- a new instance of
CfnNode.NodeConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-