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

com.aliyun.ros.cdk.sls.RosIndexProps Maven / Gradle / Ivy

Go to download

Aliyun SDK Copyright (C) Alibaba Cloud Computing All rights reserved. http://www.aliyun.com

There is a newer version: 1.4.0
Show newest version
package com.aliyun.ros.cdk.sls;

/**
 * Properties for defining a `ALIYUN::SLS::Index`.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.30.0 (build adae23f)", date = "2021-06-21T09:47:44.137Z")
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.sls.$Module.class, fqn = "@alicloud/ros-cdk-sls.RosIndexProps")
@software.amazon.jsii.Jsii.Proxy(RosIndexProps.Jsii$Proxy.class)
public interface RosIndexProps extends software.amazon.jsii.JsiiSerializable {

    /**
     */
    @org.jetbrains.annotations.NotNull java.lang.Object getFullTextIndex();

    /**
     */
    @org.jetbrains.annotations.NotNull java.lang.Object getLogstoreName();

    /**
     */
    @org.jetbrains.annotations.NotNull java.lang.Object getProjectName();

    /**
     */
    default @org.jetbrains.annotations.Nullable java.lang.Object getKeyIndices() {
        return null;
    }

    /**
     */
    default @org.jetbrains.annotations.Nullable java.lang.Object getLogReduce() {
        return null;
    }

    /**
     * @return a {@link Builder} of {@link RosIndexProps}
     */
    static Builder builder() {
        return new Builder();
    }
    /**
     * A builder for {@link RosIndexProps}
     */
    public static final class Builder implements software.amazon.jsii.Builder {
        private java.lang.Object fullTextIndex;
        private java.lang.Object logstoreName;
        private java.lang.Object projectName;
        private java.lang.Object keyIndices;
        private java.lang.Object logReduce;

        /**
         * Sets the value of {@link RosIndexProps#getFullTextIndex}
         * @param fullTextIndex the value to be set. This parameter is required.
         * @return {@code this}
         */
        public Builder fullTextIndex(com.aliyun.ros.cdk.core.IResolvable fullTextIndex) {
            this.fullTextIndex = fullTextIndex;
            return this;
        }

        /**
         * Sets the value of {@link RosIndexProps#getFullTextIndex}
         * @param fullTextIndex the value to be set. This parameter is required.
         * @return {@code this}
         */
        public Builder fullTextIndex(com.aliyun.ros.cdk.sls.RosIndex.FullTextIndexProperty fullTextIndex) {
            this.fullTextIndex = fullTextIndex;
            return this;
        }

        /**
         * Sets the value of {@link RosIndexProps#getLogstoreName}
         * @param logstoreName the value to be set. This parameter is required.
         * @return {@code this}
         */
        public Builder logstoreName(java.lang.String logstoreName) {
            this.logstoreName = logstoreName;
            return this;
        }

        /**
         * Sets the value of {@link RosIndexProps#getLogstoreName}
         * @param logstoreName the value to be set. This parameter is required.
         * @return {@code this}
         */
        public Builder logstoreName(com.aliyun.ros.cdk.core.IResolvable logstoreName) {
            this.logstoreName = logstoreName;
            return this;
        }

        /**
         * Sets the value of {@link RosIndexProps#getProjectName}
         * @param projectName the value to be set. This parameter is required.
         * @return {@code this}
         */
        public Builder projectName(java.lang.String projectName) {
            this.projectName = projectName;
            return this;
        }

        /**
         * Sets the value of {@link RosIndexProps#getProjectName}
         * @param projectName the value to be set. This parameter is required.
         * @return {@code this}
         */
        public Builder projectName(com.aliyun.ros.cdk.core.IResolvable projectName) {
            this.projectName = projectName;
            return this;
        }

        /**
         * Sets the value of {@link RosIndexProps#getKeyIndices}
         * @param keyIndices the value to be set.
         * @return {@code this}
         */
        public Builder keyIndices(com.aliyun.ros.cdk.core.IResolvable keyIndices) {
            this.keyIndices = keyIndices;
            return this;
        }

        /**
         * Sets the value of {@link RosIndexProps#getKeyIndices}
         * @param keyIndices the value to be set.
         * @return {@code this}
         */
        public Builder keyIndices(java.util.List keyIndices) {
            this.keyIndices = keyIndices;
            return this;
        }

        /**
         * Sets the value of {@link RosIndexProps#getLogReduce}
         * @param logReduce the value to be set.
         * @return {@code this}
         */
        public Builder logReduce(java.lang.Boolean logReduce) {
            this.logReduce = logReduce;
            return this;
        }

        /**
         * Sets the value of {@link RosIndexProps#getLogReduce}
         * @param logReduce the value to be set.
         * @return {@code this}
         */
        public Builder logReduce(com.aliyun.ros.cdk.core.IResolvable logReduce) {
            this.logReduce = logReduce;
            return this;
        }

        /**
         * Builds the configured instance.
         * @return a new instance of {@link RosIndexProps}
         * @throws NullPointerException if any required attribute was not provided
         */
        @Override
        public RosIndexProps build() {
            return new Jsii$Proxy(fullTextIndex, logstoreName, projectName, keyIndices, logReduce);
        }
    }

    /**
     * An implementation for {@link RosIndexProps}
     */
    @software.amazon.jsii.Internal
    final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements RosIndexProps {
        private final java.lang.Object fullTextIndex;
        private final java.lang.Object logstoreName;
        private final java.lang.Object projectName;
        private final java.lang.Object keyIndices;
        private final java.lang.Object logReduce;

        /**
         * 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.fullTextIndex = software.amazon.jsii.Kernel.get(this, "fullTextIndex", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
            this.logstoreName = software.amazon.jsii.Kernel.get(this, "logstoreName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
            this.projectName = software.amazon.jsii.Kernel.get(this, "projectName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
            this.keyIndices = software.amazon.jsii.Kernel.get(this, "keyIndices", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
            this.logReduce = software.amazon.jsii.Kernel.get(this, "logReduce", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
        }

        /**
         * Constructor that initializes the object based on literal property values passed by the {@link Builder}.
         */
        protected Jsii$Proxy(final java.lang.Object fullTextIndex, final java.lang.Object logstoreName, final java.lang.Object projectName, final java.lang.Object keyIndices, final java.lang.Object logReduce) {
            super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
            this.fullTextIndex = java.util.Objects.requireNonNull(fullTextIndex, "fullTextIndex is required");
            this.logstoreName = java.util.Objects.requireNonNull(logstoreName, "logstoreName is required");
            this.projectName = java.util.Objects.requireNonNull(projectName, "projectName is required");
            this.keyIndices = keyIndices;
            this.logReduce = logReduce;
        }

        @Override
        public final java.lang.Object getFullTextIndex() {
            return this.fullTextIndex;
        }

        @Override
        public final java.lang.Object getLogstoreName() {
            return this.logstoreName;
        }

        @Override
        public final java.lang.Object getProjectName() {
            return this.projectName;
        }

        @Override
        public final java.lang.Object getKeyIndices() {
            return this.keyIndices;
        }

        @Override
        public final java.lang.Object getLogReduce() {
            return this.logReduce;
        }

        @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("fullTextIndex", om.valueToTree(this.getFullTextIndex()));
            data.set("logstoreName", om.valueToTree(this.getLogstoreName()));
            data.set("projectName", om.valueToTree(this.getProjectName()));
            if (this.getKeyIndices() != null) {
                data.set("keyIndices", om.valueToTree(this.getKeyIndices()));
            }
            if (this.getLogReduce() != null) {
                data.set("logReduce", om.valueToTree(this.getLogReduce()));
            }

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

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

            if (!fullTextIndex.equals(that.fullTextIndex)) return false;
            if (!logstoreName.equals(that.logstoreName)) return false;
            if (!projectName.equals(that.projectName)) return false;
            if (this.keyIndices != null ? !this.keyIndices.equals(that.keyIndices) : that.keyIndices != null) return false;
            return this.logReduce != null ? this.logReduce.equals(that.logReduce) : that.logReduce == null;
        }

        @Override
        public final int hashCode() {
            int result = this.fullTextIndex.hashCode();
            result = 31 * result + (this.logstoreName.hashCode());
            result = 31 * result + (this.projectName.hashCode());
            result = 31 * result + (this.keyIndices != null ? this.keyIndices.hashCode() : 0);
            result = 31 * result + (this.logReduce != null ? this.logReduce.hashCode() : 0);
            return result;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy