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

com.gammarer.cdk.aws.secure_log_bucket.StorageClassTransitionProperty Maven / Gradle / Ivy

There is a newer version: 1.5.6
Show newest version
package com.gammarer.cdk.aws.secure_log_bucket;

/**
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.97.0 (build 729de35)", date = "2024-04-14T23:00:07.530Z")
@software.amazon.jsii.Jsii(module = com.gammarer.cdk.aws.secure_log_bucket.$Module.class, fqn = "@gammarer/aws-secure-log-bucket.StorageClassTransitionProperty")
@software.amazon.jsii.Jsii.Proxy(StorageClassTransitionProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface StorageClassTransitionProperty extends software.amazon.jsii.JsiiSerializable {

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull java.lang.Number getDeepArchiveDays();

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull java.lang.Number getGlacierDays();

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull java.lang.Number getInfrequentAccessDays();

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull java.lang.Number getIntelligentTieringDays();

    /**
     * @return a {@link Builder} of {@link StorageClassTransitionProperty}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    static Builder builder() {
        return new Builder();
    }
    /**
     * A builder for {@link StorageClassTransitionProperty}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public static final class Builder implements software.amazon.jsii.Builder {
        java.lang.Number deepArchiveDays;
        java.lang.Number glacierDays;
        java.lang.Number infrequentAccessDays;
        java.lang.Number intelligentTieringDays;

        /**
         * Sets the value of {@link StorageClassTransitionProperty#getDeepArchiveDays}
         * @param deepArchiveDays the value to be set. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder deepArchiveDays(java.lang.Number deepArchiveDays) {
            this.deepArchiveDays = deepArchiveDays;
            return this;
        }

        /**
         * Sets the value of {@link StorageClassTransitionProperty#getGlacierDays}
         * @param glacierDays the value to be set. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder glacierDays(java.lang.Number glacierDays) {
            this.glacierDays = glacierDays;
            return this;
        }

        /**
         * Sets the value of {@link StorageClassTransitionProperty#getInfrequentAccessDays}
         * @param infrequentAccessDays the value to be set. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder infrequentAccessDays(java.lang.Number infrequentAccessDays) {
            this.infrequentAccessDays = infrequentAccessDays;
            return this;
        }

        /**
         * Sets the value of {@link StorageClassTransitionProperty#getIntelligentTieringDays}
         * @param intelligentTieringDays the value to be set. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder intelligentTieringDays(java.lang.Number intelligentTieringDays) {
            this.intelligentTieringDays = intelligentTieringDays;
            return this;
        }

        /**
         * Builds the configured instance.
         * @return a new instance of {@link StorageClassTransitionProperty}
         * @throws NullPointerException if any required attribute was not provided
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        @Override
        public StorageClassTransitionProperty build() {
            return new Jsii$Proxy(this);
        }
    }

    /**
     * An implementation for {@link StorageClassTransitionProperty}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @software.amazon.jsii.Internal
    final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements StorageClassTransitionProperty {
        private final java.lang.Number deepArchiveDays;
        private final java.lang.Number glacierDays;
        private final java.lang.Number infrequentAccessDays;
        private final java.lang.Number intelligentTieringDays;

        /**
         * 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.deepArchiveDays = software.amazon.jsii.Kernel.get(this, "deepArchiveDays", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
            this.glacierDays = software.amazon.jsii.Kernel.get(this, "glacierDays", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
            this.infrequentAccessDays = software.amazon.jsii.Kernel.get(this, "infrequentAccessDays", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
            this.intelligentTieringDays = software.amazon.jsii.Kernel.get(this, "intelligentTieringDays", software.amazon.jsii.NativeType.forClass(java.lang.Number.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.deepArchiveDays = java.util.Objects.requireNonNull(builder.deepArchiveDays, "deepArchiveDays is required");
            this.glacierDays = java.util.Objects.requireNonNull(builder.glacierDays, "glacierDays is required");
            this.infrequentAccessDays = java.util.Objects.requireNonNull(builder.infrequentAccessDays, "infrequentAccessDays is required");
            this.intelligentTieringDays = java.util.Objects.requireNonNull(builder.intelligentTieringDays, "intelligentTieringDays is required");
        }

        @Override
        public final java.lang.Number getDeepArchiveDays() {
            return this.deepArchiveDays;
        }

        @Override
        public final java.lang.Number getGlacierDays() {
            return this.glacierDays;
        }

        @Override
        public final java.lang.Number getInfrequentAccessDays() {
            return this.infrequentAccessDays;
        }

        @Override
        public final java.lang.Number getIntelligentTieringDays() {
            return this.intelligentTieringDays;
        }

        @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("deepArchiveDays", om.valueToTree(this.getDeepArchiveDays()));
            data.set("glacierDays", om.valueToTree(this.getGlacierDays()));
            data.set("infrequentAccessDays", om.valueToTree(this.getInfrequentAccessDays()));
            data.set("intelligentTieringDays", om.valueToTree(this.getIntelligentTieringDays()));

            final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
            struct.set("fqn", om.valueToTree("@gammarer/aws-secure-log-bucket.StorageClassTransitionProperty"));
            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;

            StorageClassTransitionProperty.Jsii$Proxy that = (StorageClassTransitionProperty.Jsii$Proxy) o;

            if (!deepArchiveDays.equals(that.deepArchiveDays)) return false;
            if (!glacierDays.equals(that.glacierDays)) return false;
            if (!infrequentAccessDays.equals(that.infrequentAccessDays)) return false;
            return this.intelligentTieringDays.equals(that.intelligentTieringDays);
        }

        @Override
        public final int hashCode() {
            int result = this.deepArchiveDays.hashCode();
            result = 31 * result + (this.glacierDays.hashCode());
            result = 31 * result + (this.infrequentAccessDays.hashCode());
            result = 31 * result + (this.intelligentTieringDays.hashCode());
            return result;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy