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

com.pwrdrvr.microapps.cdk.MicroAppsTableProps Maven / Gradle / Ivy

package com.pwrdrvr.microapps.cdk;

/**
 * (experimental) Properties to initialize an instance of `MicroAppsTable`.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.75.0 (build 63bb957)", date = "2023-06-14T17:32:47.082Z")
@software.amazon.jsii.Jsii(module = com.pwrdrvr.microapps.cdk.$Module.class, fqn = "@pwrdrvr/microapps-cdk.MicroAppsTableProps")
@software.amazon.jsii.Jsii.Proxy(MicroAppsTableProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface MicroAppsTableProps extends software.amazon.jsii.JsiiSerializable {

    /**
     * (experimental) Optional asset name root.
     * 

* Default: - resource names auto assigned *

* Example: *

*

     * microapps
     * 
*/ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.String getAssetNameRoot() { return null; } /** * (experimental) Optional asset name suffix. *

* Default: none *

* Example: *

*

     * -dev-pr-12
     * 
*/ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.String getAssetNameSuffix() { return null; } /** * (experimental) RemovalPolicy override for child resources. *

* Note: if set to DESTROY the S3 buckes will have autoDeleteObjects set to true *

* Default: - per resource default */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable software.amazon.awscdk.RemovalPolicy getRemovalPolicy() { return null; } /** * @return a {@link Builder} of {@link MicroAppsTableProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) static Builder builder() { return new Builder(); } /** * A builder for {@link MicroAppsTableProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder implements software.amazon.jsii.Builder { java.lang.String assetNameRoot; java.lang.String assetNameSuffix; software.amazon.awscdk.RemovalPolicy removalPolicy; /** * Sets the value of {@link MicroAppsTableProps#getAssetNameRoot} * @param assetNameRoot Optional asset name root. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder assetNameRoot(java.lang.String assetNameRoot) { this.assetNameRoot = assetNameRoot; return this; } /** * Sets the value of {@link MicroAppsTableProps#getAssetNameSuffix} * @param assetNameSuffix Optional asset name suffix. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder assetNameSuffix(java.lang.String assetNameSuffix) { this.assetNameSuffix = assetNameSuffix; return this; } /** * Sets the value of {@link MicroAppsTableProps#getRemovalPolicy} * @param removalPolicy RemovalPolicy override for child resources. * Note: if set to DESTROY the S3 buckes will have autoDeleteObjects set to true * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder removalPolicy(software.amazon.awscdk.RemovalPolicy removalPolicy) { this.removalPolicy = removalPolicy; return this; } /** * Builds the configured instance. * @return a new instance of {@link MicroAppsTableProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public MicroAppsTableProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link MicroAppsTableProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements MicroAppsTableProps { private final java.lang.String assetNameRoot; private final java.lang.String assetNameSuffix; private final software.amazon.awscdk.RemovalPolicy removalPolicy; /** * 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.assetNameRoot = software.amazon.jsii.Kernel.get(this, "assetNameRoot", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.assetNameSuffix = software.amazon.jsii.Kernel.get(this, "assetNameSuffix", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.removalPolicy = software.amazon.jsii.Kernel.get(this, "removalPolicy", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.RemovalPolicy.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.assetNameRoot = builder.assetNameRoot; this.assetNameSuffix = builder.assetNameSuffix; this.removalPolicy = builder.removalPolicy; } @Override public final java.lang.String getAssetNameRoot() { return this.assetNameRoot; } @Override public final java.lang.String getAssetNameSuffix() { return this.assetNameSuffix; } @Override public final software.amazon.awscdk.RemovalPolicy getRemovalPolicy() { return this.removalPolicy; } @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.getAssetNameRoot() != null) { data.set("assetNameRoot", om.valueToTree(this.getAssetNameRoot())); } if (this.getAssetNameSuffix() != null) { data.set("assetNameSuffix", om.valueToTree(this.getAssetNameSuffix())); } if (this.getRemovalPolicy() != null) { data.set("removalPolicy", om.valueToTree(this.getRemovalPolicy())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@pwrdrvr/microapps-cdk.MicroAppsTableProps")); 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; MicroAppsTableProps.Jsii$Proxy that = (MicroAppsTableProps.Jsii$Proxy) o; if (this.assetNameRoot != null ? !this.assetNameRoot.equals(that.assetNameRoot) : that.assetNameRoot != null) return false; if (this.assetNameSuffix != null ? !this.assetNameSuffix.equals(that.assetNameSuffix) : that.assetNameSuffix != null) return false; return this.removalPolicy != null ? this.removalPolicy.equals(that.removalPolicy) : that.removalPolicy == null; } @Override public final int hashCode() { int result = this.assetNameRoot != null ? this.assetNameRoot.hashCode() : 0; result = 31 * result + (this.assetNameSuffix != null ? this.assetNameSuffix.hashCode() : 0); result = 31 * result + (this.removalPolicy != null ? this.removalPolicy.hashCode() : 0); return result; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy