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

io.github.cdklabs.cdk.amazonmq.BrokerCloudwatchLogsExports Maven / Gradle / Ivy

package io.github.cdklabs.cdk.amazonmq;

/**
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.102.0 (build e354887)", date = "2024-08-08T22:30:31.774Z")
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdk.amazonmq.$Module.class, fqn = "@cdklabs/cdk-amazonmq.BrokerCloudwatchLogsExports")
@software.amazon.jsii.Jsii.Proxy(BrokerCloudwatchLogsExports.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface BrokerCloudwatchLogsExports extends software.amazon.jsii.JsiiSerializable {

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    default @org.jetbrains.annotations.Nullable java.lang.Boolean getAudit() {
        return null;
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    default @org.jetbrains.annotations.Nullable java.lang.Boolean getChannel() {
        return null;
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    default @org.jetbrains.annotations.Nullable java.lang.Boolean getConnection() {
        return null;
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    default @org.jetbrains.annotations.Nullable java.lang.Boolean getGeneral() {
        return null;
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    default @org.jetbrains.annotations.Nullable java.lang.Boolean getMirroring() {
        return null;
    }

    /**
     * @return a {@link Builder} of {@link BrokerCloudwatchLogsExports}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    static Builder builder() {
        return new Builder();
    }
    /**
     * A builder for {@link BrokerCloudwatchLogsExports}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    public static final class Builder implements software.amazon.jsii.Builder {
        java.lang.Boolean audit;
        java.lang.Boolean channel;
        java.lang.Boolean connection;
        java.lang.Boolean general;
        java.lang.Boolean mirroring;

        /**
         * Sets the value of {@link BrokerCloudwatchLogsExports#getAudit}
         * @param audit the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder audit(java.lang.Boolean audit) {
            this.audit = audit;
            return this;
        }

        /**
         * Sets the value of {@link BrokerCloudwatchLogsExports#getChannel}
         * @param channel the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder channel(java.lang.Boolean channel) {
            this.channel = channel;
            return this;
        }

        /**
         * Sets the value of {@link BrokerCloudwatchLogsExports#getConnection}
         * @param connection the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder connection(java.lang.Boolean connection) {
            this.connection = connection;
            return this;
        }

        /**
         * Sets the value of {@link BrokerCloudwatchLogsExports#getGeneral}
         * @param general the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder general(java.lang.Boolean general) {
            this.general = general;
            return this;
        }

        /**
         * Sets the value of {@link BrokerCloudwatchLogsExports#getMirroring}
         * @param mirroring the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder mirroring(java.lang.Boolean mirroring) {
            this.mirroring = mirroring;
            return this;
        }

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

    /**
     * An implementation for {@link BrokerCloudwatchLogsExports}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    @software.amazon.jsii.Internal
    final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements BrokerCloudwatchLogsExports {
        private final java.lang.Boolean audit;
        private final java.lang.Boolean channel;
        private final java.lang.Boolean connection;
        private final java.lang.Boolean general;
        private final java.lang.Boolean mirroring;

        /**
         * 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.audit = software.amazon.jsii.Kernel.get(this, "audit", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
            this.channel = software.amazon.jsii.Kernel.get(this, "channel", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
            this.connection = software.amazon.jsii.Kernel.get(this, "connection", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
            this.general = software.amazon.jsii.Kernel.get(this, "general", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
            this.mirroring = software.amazon.jsii.Kernel.get(this, "mirroring", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.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.audit = builder.audit;
            this.channel = builder.channel;
            this.connection = builder.connection;
            this.general = builder.general;
            this.mirroring = builder.mirroring;
        }

        @Override
        public final java.lang.Boolean getAudit() {
            return this.audit;
        }

        @Override
        public final java.lang.Boolean getChannel() {
            return this.channel;
        }

        @Override
        public final java.lang.Boolean getConnection() {
            return this.connection;
        }

        @Override
        public final java.lang.Boolean getGeneral() {
            return this.general;
        }

        @Override
        public final java.lang.Boolean getMirroring() {
            return this.mirroring;
        }

        @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.getAudit() != null) {
                data.set("audit", om.valueToTree(this.getAudit()));
            }
            if (this.getChannel() != null) {
                data.set("channel", om.valueToTree(this.getChannel()));
            }
            if (this.getConnection() != null) {
                data.set("connection", om.valueToTree(this.getConnection()));
            }
            if (this.getGeneral() != null) {
                data.set("general", om.valueToTree(this.getGeneral()));
            }
            if (this.getMirroring() != null) {
                data.set("mirroring", om.valueToTree(this.getMirroring()));
            }

            final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
            struct.set("fqn", om.valueToTree("@cdklabs/cdk-amazonmq.BrokerCloudwatchLogsExports"));
            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;

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

            if (this.audit != null ? !this.audit.equals(that.audit) : that.audit != null) return false;
            if (this.channel != null ? !this.channel.equals(that.channel) : that.channel != null) return false;
            if (this.connection != null ? !this.connection.equals(that.connection) : that.connection != null) return false;
            if (this.general != null ? !this.general.equals(that.general) : that.general != null) return false;
            return this.mirroring != null ? this.mirroring.equals(that.mirroring) : that.mirroring == null;
        }

        @Override
        public final int hashCode() {
            int result = this.audit != null ? this.audit.hashCode() : 0;
            result = 31 * result + (this.channel != null ? this.channel.hashCode() : 0);
            result = 31 * result + (this.connection != null ? this.connection.hashCode() : 0);
            result = 31 * result + (this.general != null ? this.general.hashCode() : 0);
            result = 31 * result + (this.mirroring != null ? this.mirroring.hashCode() : 0);
            return result;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy