Class CfnAccessorProps.Builder
java.lang.Object
software.amazon.awscdk.services.managedblockchain.CfnAccessorProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAccessorProps>
- Enclosing interface:
CfnAccessorProps
@Stability(Stable)
public static final class CfnAccessorProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAccessorProps>
A builder for
CfnAccessorProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessorType(String accessorType) Sets the value ofCfnAccessorProps.getAccessorType()build()Builds the configured instance.networkType(String networkType) Sets the value ofCfnAccessorProps.getNetworkType()Sets the value ofCfnAccessorProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessorType
Sets the value ofCfnAccessorProps.getAccessorType()- Parameters:
accessorType- The type of the accessor. This parameter is required.Currently, accessor type is restricted to
BILLING_TOKEN.- Returns:
this
-
networkType
Sets the value ofCfnAccessorProps.getNetworkType()- Parameters:
networkType- The blockchain network that theAccessortoken is created for.We recommend using the appropriate
networkTypevalue for the blockchain network that you are creating theAccessortoken for. You cannot use the valueETHEREUM_MAINNET_AND_GOERLIto specify anetworkTypefor your Accessor token.The default value of
ETHEREUM_MAINNET_AND_GOERLIis only applied:- when the
CreateAccessoraction does not set anetworkType. - to all existing
Accessortokens that were created before thenetworkTypeproperty was introduced.
- when the
- Returns:
this
-
tags
Sets the value ofCfnAccessorProps.getTags()- Parameters:
tags- The tags assigned to the Accessor. For more information about tags, see Tagging Resources in the Amazon Managed Blockchain Ethereum Developer Guide , or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAccessorProps>- Returns:
- a new instance of
CfnAccessorProps - Throws:
NullPointerException- if any required attribute was not provided
-