Class CfnAccessor.Builder
java.lang.Object
software.amazon.awscdk.services.managedblockchain.CfnAccessor.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAccessor>
- Enclosing class:
CfnAccessor
@Stability(Stable)
public static final class CfnAccessor.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAccessor>
A fluent builder for
CfnAccessor.-
Method Summary
Modifier and TypeMethodDescriptionaccessorType(String accessorType) The type of the accessor.build()static CfnAccessor.BuildernetworkType(String networkType) The blockchain network that theAccessortoken is created for.The tags assigned to the Accessor.
-
Method Details
-
create
@Stability(Stable) public static CfnAccessor.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnAccessor.Builder.
-
accessorType
The type of the accessor.Currently, accessor type is restricted to
BILLING_TOKEN.- Parameters:
accessorType- The type of the accessor. This parameter is required.- Returns:
this- See Also:
-
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.
- Parameters:
networkType- The blockchain network that theAccessortoken is created for. This parameter is required.- Returns:
this- See Also:
- when the
-
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 .
- Parameters:
tags- The tags assigned to the Accessor. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAccessor>- Returns:
- a newly built instance of
CfnAccessor.
-