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

ca.wheatstalk.cdkecskeycloak.EnsureMysqlDatabaseExtensionProps Maven / Gradle / Ivy

There is a newer version: 0.0.164
Show newest version
package ca.wheatstalk.cdkecskeycloak;

/**
 * Props for EnsureMysqlDatabaseExtension.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.29.0 (build 41df200)", date = "2021-04-28T04:27:48.341Z")
@software.amazon.jsii.Jsii(module = ca.wheatstalk.cdkecskeycloak.$Module.class, fqn = "@wheatstalk/cdk-ecs-keycloak.EnsureMysqlDatabaseExtensionProps")
@software.amazon.jsii.Jsii.Proxy(EnsureMysqlDatabaseExtensionProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface EnsureMysqlDatabaseExtensionProps extends software.amazon.jsii.JsiiSerializable {

    /**
     * RDS credentials.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.secretsmanager.ISecret getDatabaseCredentials();

    /**
     * Name of the database to create.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull java.lang.String getDatabaseName();

    /**
     * Name of the container to add to do this work.
     * 

* Default: 'ensure-mysql-database' */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getContainerName() { return null; } /** * Logging driver. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ecs.LogDriver getLogging() { return null; } /** * @return a {@link Builder} of {@link EnsureMysqlDatabaseExtensionProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link EnsureMysqlDatabaseExtensionProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { private software.amazon.awscdk.services.secretsmanager.ISecret databaseCredentials; private java.lang.String databaseName; private java.lang.String containerName; private software.amazon.awscdk.services.ecs.LogDriver logging; /** * Sets the value of {@link EnsureMysqlDatabaseExtensionProps#getDatabaseCredentials} * @param databaseCredentials RDS credentials. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder databaseCredentials(software.amazon.awscdk.services.secretsmanager.ISecret databaseCredentials) { this.databaseCredentials = databaseCredentials; return this; } /** * Sets the value of {@link EnsureMysqlDatabaseExtensionProps#getDatabaseName} * @param databaseName Name of the database to create. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder databaseName(java.lang.String databaseName) { this.databaseName = databaseName; return this; } /** * Sets the value of {@link EnsureMysqlDatabaseExtensionProps#getContainerName} * @param containerName Name of the container to add to do this work. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder containerName(java.lang.String containerName) { this.containerName = containerName; return this; } /** * Sets the value of {@link EnsureMysqlDatabaseExtensionProps#getLogging} * @param logging Logging driver. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder logging(software.amazon.awscdk.services.ecs.LogDriver logging) { this.logging = logging; return this; } /** * Builds the configured instance. * @return a new instance of {@link EnsureMysqlDatabaseExtensionProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public EnsureMysqlDatabaseExtensionProps build() { return new Jsii$Proxy(databaseCredentials, databaseName, containerName, logging); } } /** * An implementation for {@link EnsureMysqlDatabaseExtensionProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements EnsureMysqlDatabaseExtensionProps { private final software.amazon.awscdk.services.secretsmanager.ISecret databaseCredentials; private final java.lang.String databaseName; private final java.lang.String containerName; private final software.amazon.awscdk.services.ecs.LogDriver logging; /** * 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.databaseCredentials = software.amazon.jsii.Kernel.get(this, "databaseCredentials", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.secretsmanager.ISecret.class)); this.databaseName = software.amazon.jsii.Kernel.get(this, "databaseName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.containerName = software.amazon.jsii.Kernel.get(this, "containerName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.logging = software.amazon.jsii.Kernel.get(this, "logging", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ecs.LogDriver.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ protected Jsii$Proxy(final software.amazon.awscdk.services.secretsmanager.ISecret databaseCredentials, final java.lang.String databaseName, final java.lang.String containerName, final software.amazon.awscdk.services.ecs.LogDriver logging) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.databaseCredentials = java.util.Objects.requireNonNull(databaseCredentials, "databaseCredentials is required"); this.databaseName = java.util.Objects.requireNonNull(databaseName, "databaseName is required"); this.containerName = containerName; this.logging = logging; } @Override public final software.amazon.awscdk.services.secretsmanager.ISecret getDatabaseCredentials() { return this.databaseCredentials; } @Override public final java.lang.String getDatabaseName() { return this.databaseName; } @Override public final java.lang.String getContainerName() { return this.containerName; } @Override public final software.amazon.awscdk.services.ecs.LogDriver getLogging() { return this.logging; } @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(); data.set("databaseCredentials", om.valueToTree(this.getDatabaseCredentials())); data.set("databaseName", om.valueToTree(this.getDatabaseName())); if (this.getContainerName() != null) { data.set("containerName", om.valueToTree(this.getContainerName())); } if (this.getLogging() != null) { data.set("logging", om.valueToTree(this.getLogging())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@wheatstalk/cdk-ecs-keycloak.EnsureMysqlDatabaseExtensionProps")); 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; EnsureMysqlDatabaseExtensionProps.Jsii$Proxy that = (EnsureMysqlDatabaseExtensionProps.Jsii$Proxy) o; if (!databaseCredentials.equals(that.databaseCredentials)) return false; if (!databaseName.equals(that.databaseName)) return false; if (this.containerName != null ? !this.containerName.equals(that.containerName) : that.containerName != null) return false; return this.logging != null ? this.logging.equals(that.logging) : that.logging == null; } @Override public final int hashCode() { int result = this.databaseCredentials.hashCode(); result = 31 * result + (this.databaseName.hashCode()); result = 31 * result + (this.containerName != null ? this.containerName.hashCode() : 0); result = 31 * result + (this.logging != null ? this.logging.hashCode() : 0); return result; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy