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

com.pulumi.alicloud.sddp.inputs.DataLimitState Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.alicloud.sddp.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class DataLimitState extends com.pulumi.resources.ResourceArgs {

    public static final DataLimitState Empty = new DataLimitState();

    /**
     * Whether to enable the log auditing feature. Valid values: `0`, `1`.
     * 
     */
    @Import(name="auditStatus")
    private @Nullable Output auditStatus;

    /**
     * @return Whether to enable the log auditing feature. Valid values: `0`, `1`.
     * 
     */
    public Optional> auditStatus() {
        return Optional.ofNullable(this.auditStatus);
    }

    /**
     * The type of the database. Valid values: `MySQL`, `SQLServer`.
     * 
     */
    @Import(name="engineType")
    private @Nullable Output engineType;

    /**
     * @return The type of the database. Valid values: `MySQL`, `SQLServer`.
     * 
     */
    public Optional> engineType() {
        return Optional.ofNullable(this.engineType);
    }

    /**
     * The lang.
     * 
     */
    @Import(name="lang")
    private @Nullable Output lang;

    /**
     * @return The lang.
     * 
     */
    public Optional> lang() {
        return Optional.ofNullable(this.lang);
    }

    /**
     * The retention period of raw logs after you enable the log auditing feature. Unit: day. Valid values: `180`, `30`, `365`, `90`. **NOTE:** The`log_store_day` is valid when the `audit_status` is `1`.
     * 
     */
    @Import(name="logStoreDay")
    private @Nullable Output logStoreDay;

    /**
     * @return The retention period of raw logs after you enable the log auditing feature. Unit: day. Valid values: `180`, `30`, `365`, `90`. **NOTE:** The`log_store_day` is valid when the `audit_status` is `1`.
     * 
     */
    public Optional> logStoreDay() {
        return Optional.ofNullable(this.logStoreDay);
    }

    /**
     * The ID of the data asset.
     * 
     */
    @Import(name="parentId")
    private @Nullable Output parentId;

    /**
     * @return The ID of the data asset.
     * 
     */
    public Optional> parentId() {
        return Optional.ofNullable(this.parentId);
    }

    /**
     * The password that is used to connect to the database.
     * 
     */
    @Import(name="password")
    private @Nullable Output password;

    /**
     * @return The password that is used to connect to the database.
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }

    /**
     * The port that is used to connect to the database.
     * 
     */
    @Import(name="port")
    private @Nullable Output port;

    /**
     * @return The port that is used to connect to the database.
     * 
     */
    public Optional> port() {
        return Optional.ofNullable(this.port);
    }

    /**
     * The type of the service to which the data asset belongs. Valid values: `MaxCompute`, `OSS`, `RDS`.
     * 
     */
    @Import(name="resourceType")
    private @Nullable Output resourceType;

    /**
     * @return The type of the service to which the data asset belongs. Valid values: `MaxCompute`, `OSS`, `RDS`.
     * 
     */
    public Optional> resourceType() {
        return Optional.ofNullable(this.resourceType);
    }

    /**
     * The region ID of the data asset.
     * 
     */
    @Import(name="serviceRegionId")
    private @Nullable Output serviceRegionId;

    /**
     * @return The region ID of the data asset.
     * 
     */
    public Optional> serviceRegionId() {
        return Optional.ofNullable(this.serviceRegionId);
    }

    /**
     * The name of the service to which the data asset belongs.
     * 
     */
    @Import(name="userName")
    private @Nullable Output userName;

    /**
     * @return The name of the service to which the data asset belongs.
     * 
     */
    public Optional> userName() {
        return Optional.ofNullable(this.userName);
    }

    private DataLimitState() {}

    private DataLimitState(DataLimitState $) {
        this.auditStatus = $.auditStatus;
        this.engineType = $.engineType;
        this.lang = $.lang;
        this.logStoreDay = $.logStoreDay;
        this.parentId = $.parentId;
        this.password = $.password;
        this.port = $.port;
        this.resourceType = $.resourceType;
        this.serviceRegionId = $.serviceRegionId;
        this.userName = $.userName;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(DataLimitState defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private DataLimitState $;

        public Builder() {
            $ = new DataLimitState();
        }

        public Builder(DataLimitState defaults) {
            $ = new DataLimitState(Objects.requireNonNull(defaults));
        }

        /**
         * @param auditStatus Whether to enable the log auditing feature. Valid values: `0`, `1`.
         * 
         * @return builder
         * 
         */
        public Builder auditStatus(@Nullable Output auditStatus) {
            $.auditStatus = auditStatus;
            return this;
        }

        /**
         * @param auditStatus Whether to enable the log auditing feature. Valid values: `0`, `1`.
         * 
         * @return builder
         * 
         */
        public Builder auditStatus(Integer auditStatus) {
            return auditStatus(Output.of(auditStatus));
        }

        /**
         * @param engineType The type of the database. Valid values: `MySQL`, `SQLServer`.
         * 
         * @return builder
         * 
         */
        public Builder engineType(@Nullable Output engineType) {
            $.engineType = engineType;
            return this;
        }

        /**
         * @param engineType The type of the database. Valid values: `MySQL`, `SQLServer`.
         * 
         * @return builder
         * 
         */
        public Builder engineType(String engineType) {
            return engineType(Output.of(engineType));
        }

        /**
         * @param lang The lang.
         * 
         * @return builder
         * 
         */
        public Builder lang(@Nullable Output lang) {
            $.lang = lang;
            return this;
        }

        /**
         * @param lang The lang.
         * 
         * @return builder
         * 
         */
        public Builder lang(String lang) {
            return lang(Output.of(lang));
        }

        /**
         * @param logStoreDay The retention period of raw logs after you enable the log auditing feature. Unit: day. Valid values: `180`, `30`, `365`, `90`. **NOTE:** The`log_store_day` is valid when the `audit_status` is `1`.
         * 
         * @return builder
         * 
         */
        public Builder logStoreDay(@Nullable Output logStoreDay) {
            $.logStoreDay = logStoreDay;
            return this;
        }

        /**
         * @param logStoreDay The retention period of raw logs after you enable the log auditing feature. Unit: day. Valid values: `180`, `30`, `365`, `90`. **NOTE:** The`log_store_day` is valid when the `audit_status` is `1`.
         * 
         * @return builder
         * 
         */
        public Builder logStoreDay(Integer logStoreDay) {
            return logStoreDay(Output.of(logStoreDay));
        }

        /**
         * @param parentId The ID of the data asset.
         * 
         * @return builder
         * 
         */
        public Builder parentId(@Nullable Output parentId) {
            $.parentId = parentId;
            return this;
        }

        /**
         * @param parentId The ID of the data asset.
         * 
         * @return builder
         * 
         */
        public Builder parentId(String parentId) {
            return parentId(Output.of(parentId));
        }

        /**
         * @param password The password that is used to connect to the database.
         * 
         * @return builder
         * 
         */
        public Builder password(@Nullable Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password The password that is used to connect to the database.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param port The port that is used to connect to the database.
         * 
         * @return builder
         * 
         */
        public Builder port(@Nullable Output port) {
            $.port = port;
            return this;
        }

        /**
         * @param port The port that is used to connect to the database.
         * 
         * @return builder
         * 
         */
        public Builder port(Integer port) {
            return port(Output.of(port));
        }

        /**
         * @param resourceType The type of the service to which the data asset belongs. Valid values: `MaxCompute`, `OSS`, `RDS`.
         * 
         * @return builder
         * 
         */
        public Builder resourceType(@Nullable Output resourceType) {
            $.resourceType = resourceType;
            return this;
        }

        /**
         * @param resourceType The type of the service to which the data asset belongs. Valid values: `MaxCompute`, `OSS`, `RDS`.
         * 
         * @return builder
         * 
         */
        public Builder resourceType(String resourceType) {
            return resourceType(Output.of(resourceType));
        }

        /**
         * @param serviceRegionId The region ID of the data asset.
         * 
         * @return builder
         * 
         */
        public Builder serviceRegionId(@Nullable Output serviceRegionId) {
            $.serviceRegionId = serviceRegionId;
            return this;
        }

        /**
         * @param serviceRegionId The region ID of the data asset.
         * 
         * @return builder
         * 
         */
        public Builder serviceRegionId(String serviceRegionId) {
            return serviceRegionId(Output.of(serviceRegionId));
        }

        /**
         * @param userName The name of the service to which the data asset belongs.
         * 
         * @return builder
         * 
         */
        public Builder userName(@Nullable Output userName) {
            $.userName = userName;
            return this;
        }

        /**
         * @param userName The name of the service to which the data asset belongs.
         * 
         * @return builder
         * 
         */
        public Builder userName(String userName) {
            return userName(Output.of(userName));
        }

        public DataLimitState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy