All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.cdklabs.cdkethereumnode.EthereumNode Maven / Gradle / Ivy

package io.github.cdklabs.cdkethereumnode;

/**
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.79.0 (build b22f628)", date = "2023-03-28T00:21:28.398Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdkethereumnode.$Module.class, fqn = "@cdklabs/cdk-ethereum-node.EthereumNode")
public class EthereumNode extends software.constructs.Construct {

    protected EthereumNode(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected EthereumNode(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
        super(initializationMode);
    }

    /**
     * Creates an Ethereum public network node on an Amazon Managed Blockchain network.
     * 

* @param scope This parameter is required. * @param id This parameter is required. * @param props */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public EthereumNode(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.Nullable io.github.cdklabs.cdkethereumnode.EthereumNodeProps props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), props }); } /** * Creates an Ethereum public network node on an Amazon Managed Blockchain network. *

* @param scope This parameter is required. * @param id This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public EthereumNode(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required") }); } /** * The Availability Zone in which the node exists. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getAvailabilityZone() { return software.amazon.jsii.Kernel.get(this, "availabilityZone", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * The Amazon Managed Blockchain instance type for the node. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull io.github.cdklabs.cdkethereumnode.InstanceType getInstanceType() { return software.amazon.jsii.Kernel.get(this, "instanceType", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkethereumnode.InstanceType.class)); } /** * Managed Blockchain Ethereum network identifier. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull io.github.cdklabs.cdkethereumnode.Network getNetwork() { return software.amazon.jsii.Kernel.get(this, "network", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkethereumnode.Network.class)); } /** * The Region in which the node exists. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getRegion() { return software.amazon.jsii.Kernel.get(this, "region", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * A fluent builder for {@link io.github.cdklabs.cdkethereumnode.EthereumNode}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. * @param scope This parameter is required. * @param id This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static Builder create(final software.constructs.Construct scope, final java.lang.String id) { return new Builder(scope, id); } private final software.constructs.Construct scope; private final java.lang.String id; private io.github.cdklabs.cdkethereumnode.EthereumNodeProps.Builder props; private Builder(final software.constructs.Construct scope, final java.lang.String id) { this.scope = scope; this.id = id; } /** * The Availability Zone in which the node will be created. *

* Default: - us-east-1a *

* @return {@code this} * @param availabilityZone The Availability Zone in which the node will be created. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder availabilityZone(final java.lang.String availabilityZone) { this.props().availabilityZone(availabilityZone); return this; } /** * The Amazon Managed Blockchain instance type for the Ethereum node. *

* Default: - BURSTABLE3_LARGE *

* @return {@code this} * @param instanceType The Amazon Managed Blockchain instance type for the Ethereum node. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder instanceType(final io.github.cdklabs.cdkethereumnode.InstanceType instanceType) { this.props().instanceType(instanceType); return this; } /** * The Ethereum Network in which the node will be created. *

* Default: - The default network selected is Mainnet network *

* @return {@code this} * @param network The Ethereum Network in which the node will be created. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder network(final io.github.cdklabs.cdkethereumnode.Network network) { this.props().network(network); return this; } /** * @returns a newly built instance of {@link io.github.cdklabs.cdkethereumnode.EthereumNode}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public io.github.cdklabs.cdkethereumnode.EthereumNode build() { return new io.github.cdklabs.cdkethereumnode.EthereumNode( this.scope, this.id, this.props != null ? this.props.build() : null ); } private io.github.cdklabs.cdkethereumnode.EthereumNodeProps.Builder props() { if (this.props == null) { this.props = new io.github.cdklabs.cdkethereumnode.EthereumNodeProps.Builder(); } return this.props; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy