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

io.github.cdklabs.cdkhyperledgerfabricnetwork.HyperledgerFabricNodeProps 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;

/**
 * Construct properties for HyperledgerFabricNode.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.104.0 (build e79254c)", date = "2024-11-14T00:24:56.709Z")
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdkhyperledgerfabricnetwork.$Module.class, fqn = "@cdklabs/cdk-hyperledger-fabric-network.HyperledgerFabricNodeProps")
@software.amazon.jsii.Jsii.Proxy(HyperledgerFabricNodeProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface HyperledgerFabricNodeProps extends software.amazon.jsii.JsiiSerializable {

    /**
     * The Availability Zone in which the node will be created.
     * 

* Default: - The first AZ in the region */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getAvailabilityZone() { return null; } /** * The configuration to enable or disable chaincode logging. *

* Default: - true */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Boolean getEnableChaincodeLogging() { return null; } /** * The configuration to enable or disable node logging. *

* Default: - true */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Boolean getEnableNodeLogging() { return null; } /** * The Amazon Managed Blockchain instance type for the node. *

* Default: - BURSTABLE3_SMALL */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable io.github.cdklabs.cdkhyperledgerfabricnetwork.InstanceType getInstanceType() { return null; } /** * @return a {@link Builder} of {@link HyperledgerFabricNodeProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link HyperledgerFabricNodeProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.String availabilityZone; java.lang.Boolean enableChaincodeLogging; java.lang.Boolean enableNodeLogging; io.github.cdklabs.cdkhyperledgerfabricnetwork.InstanceType instanceType; /** * Sets the value of {@link HyperledgerFabricNodeProps#getAvailabilityZone} * @param availabilityZone The Availability Zone in which the node will be created. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder availabilityZone(java.lang.String availabilityZone) { this.availabilityZone = availabilityZone; return this; } /** * Sets the value of {@link HyperledgerFabricNodeProps#getEnableChaincodeLogging} * @param enableChaincodeLogging The configuration to enable or disable chaincode logging. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder enableChaincodeLogging(java.lang.Boolean enableChaincodeLogging) { this.enableChaincodeLogging = enableChaincodeLogging; return this; } /** * Sets the value of {@link HyperledgerFabricNodeProps#getEnableNodeLogging} * @param enableNodeLogging The configuration to enable or disable node logging. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder enableNodeLogging(java.lang.Boolean enableNodeLogging) { this.enableNodeLogging = enableNodeLogging; return this; } /** * Sets the value of {@link HyperledgerFabricNodeProps#getInstanceType} * @param instanceType The Amazon Managed Blockchain instance type for the node. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder instanceType(io.github.cdklabs.cdkhyperledgerfabricnetwork.InstanceType instanceType) { this.instanceType = instanceType; return this; } /** * Builds the configured instance. * @return a new instance of {@link HyperledgerFabricNodeProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public HyperledgerFabricNodeProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link HyperledgerFabricNodeProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements HyperledgerFabricNodeProps { private final java.lang.String availabilityZone; private final java.lang.Boolean enableChaincodeLogging; private final java.lang.Boolean enableNodeLogging; private final io.github.cdklabs.cdkhyperledgerfabricnetwork.InstanceType instanceType; /** * Constructor that initializes the object based on values retrieved from the JsiiObject. * @param objRef Reference to the JSII managed object. */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); this.availabilityZone = software.amazon.jsii.Kernel.get(this, "availabilityZone", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.enableChaincodeLogging = software.amazon.jsii.Kernel.get(this, "enableChaincodeLogging", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.enableNodeLogging = software.amazon.jsii.Kernel.get(this, "enableNodeLogging", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.instanceType = software.amazon.jsii.Kernel.get(this, "instanceType", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkhyperledgerfabricnetwork.InstanceType.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.availabilityZone = builder.availabilityZone; this.enableChaincodeLogging = builder.enableChaincodeLogging; this.enableNodeLogging = builder.enableNodeLogging; this.instanceType = builder.instanceType; } @Override public final java.lang.String getAvailabilityZone() { return this.availabilityZone; } @Override public final java.lang.Boolean getEnableChaincodeLogging() { return this.enableChaincodeLogging; } @Override public final java.lang.Boolean getEnableNodeLogging() { return this.enableNodeLogging; } @Override public final io.github.cdklabs.cdkhyperledgerfabricnetwork.InstanceType getInstanceType() { return this.instanceType; } @Override @software.amazon.jsii.Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); if (this.getAvailabilityZone() != null) { data.set("availabilityZone", om.valueToTree(this.getAvailabilityZone())); } if (this.getEnableChaincodeLogging() != null) { data.set("enableChaincodeLogging", om.valueToTree(this.getEnableChaincodeLogging())); } if (this.getEnableNodeLogging() != null) { data.set("enableNodeLogging", om.valueToTree(this.getEnableNodeLogging())); } if (this.getInstanceType() != null) { data.set("instanceType", om.valueToTree(this.getInstanceType())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@cdklabs/cdk-hyperledger-fabric-network.HyperledgerFabricNodeProps")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); obj.set("$jsii.struct", struct); return obj; } @Override public final boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; HyperledgerFabricNodeProps.Jsii$Proxy that = (HyperledgerFabricNodeProps.Jsii$Proxy) o; if (this.availabilityZone != null ? !this.availabilityZone.equals(that.availabilityZone) : that.availabilityZone != null) return false; if (this.enableChaincodeLogging != null ? !this.enableChaincodeLogging.equals(that.enableChaincodeLogging) : that.enableChaincodeLogging != null) return false; if (this.enableNodeLogging != null ? !this.enableNodeLogging.equals(that.enableNodeLogging) : that.enableNodeLogging != null) return false; return this.instanceType != null ? this.instanceType.equals(that.instanceType) : that.instanceType == null; } @Override public final int hashCode() { int result = this.availabilityZone != null ? this.availabilityZone.hashCode() : 0; result = 31 * result + (this.enableChaincodeLogging != null ? this.enableChaincodeLogging.hashCode() : 0); result = 31 * result + (this.enableNodeLogging != null ? this.enableNodeLogging.hashCode() : 0); result = 31 * result + (this.instanceType != null ? this.instanceType.hashCode() : 0); return result; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy