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

io.github.cdklabs.cdkhyperledgerfabricnetwork.HyperledgerFabricClient Maven / Gradle / Ivy

Go to download

CDK construct to deploy a Hyperledger Fabric network running on Amazon Managed Blockchain

There is a newer version: 0.8.723
Show newest version
package io.github.cdklabs.cdkhyperledgerfabricnetwork;

/**
 * Creates a VPC and endpoint that allows Hyperledger Fabric client to interact with the Hyperledger Fabric endpoints that Amazon Managed Blockchain exposes for the member and network resources.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.104.0 (build e79254c)", date = "2024-11-14T00:24:56.696Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdkhyperledgerfabricnetwork.$Module.class, fqn = "@cdklabs/cdk-hyperledger-fabric-network.HyperledgerFabricClient")
public class HyperledgerFabricClient extends software.constructs.Construct {

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

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

    /**
     * @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 HyperledgerFabricClient(final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdkhyperledgerfabricnetwork.HyperledgerFabricNetwork scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.Nullable io.github.cdklabs.cdkhyperledgerfabricnetwork.HyperledgerFabricClientProps 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 });
    }

    /**
     * @param scope This parameter is required.
     * @param id This parameter is required.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public HyperledgerFabricClient(final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdkhyperledgerfabricnetwork.HyperledgerFabricNetwork 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 client VPC that has endpoint to access the Amazon Managed Blockchain.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.IVpc getVpc() {
        return software.amazon.jsii.Kernel.get(this, "vpc", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.IVpc.class));
    }

    /**
     * Managed Blockchain network VPC endpoint.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.InterfaceVpcEndpoint getVpcEndpoint() {
        return software.amazon.jsii.Kernel.get(this, "vpcEndpoint", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.InterfaceVpcEndpoint.class));
    }

    /**
     * A fluent builder for {@link io.github.cdklabs.cdkhyperledgerfabricnetwork.HyperledgerFabricClient}.
     */
    @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 io.github.cdklabs.cdkhyperledgerfabricnetwork.HyperledgerFabricNetwork scope, final java.lang.String id) {
            return new Builder(scope, id);
        }

        private final io.github.cdklabs.cdkhyperledgerfabricnetwork.HyperledgerFabricNetwork scope;
        private final java.lang.String id;
        private io.github.cdklabs.cdkhyperledgerfabricnetwork.HyperledgerFabricClientProps.Builder props;

        private Builder(final io.github.cdklabs.cdkhyperledgerfabricnetwork.HyperledgerFabricNetwork scope, final java.lang.String id) {
            this.scope = scope;
            this.id = id;
        }

        /**
         * Client VPC to create the endpoints.
         * 

* If not provided, * VPC will be created with the default properties * (CIDR-10.0.0.0/16 and subnets of type PRIVATE_ISOLATED) *

* @return {@code this} * @param vpc Client VPC to create the endpoints. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder vpc(final software.amazon.awscdk.services.ec2.IVpc vpc) { this.props().vpc(vpc); return this; } /** * @return a newly built instance of {@link io.github.cdklabs.cdkhyperledgerfabricnetwork.HyperledgerFabricClient}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public io.github.cdklabs.cdkhyperledgerfabricnetwork.HyperledgerFabricClient build() { return new io.github.cdklabs.cdkhyperledgerfabricnetwork.HyperledgerFabricClient( this.scope, this.id, this.props != null ? this.props.build() : null ); } private io.github.cdklabs.cdkhyperledgerfabricnetwork.HyperledgerFabricClientProps.Builder props() { if (this.props == null) { this.props = new io.github.cdklabs.cdkhyperledgerfabricnetwork.HyperledgerFabricClientProps.Builder(); } return this.props; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy