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

com.pulumi.alicloud.ddos.BasicDefenseThresholdArgs 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.ddos;

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


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

    public static final BasicDefenseThresholdArgs Empty = new BasicDefenseThresholdArgs();

    /**
     * Specifies the traffic scrubbing threshold. Unit: Mbit/s. The traffic scrubbing threshold cannot exceed the peak inbound or outbound Internet traffic, whichever is larger, of the asset.
     * 
     */
    @Import(name="bps")
    private @Nullable Output bps;

    /**
     * @return Specifies the traffic scrubbing threshold. Unit: Mbit/s. The traffic scrubbing threshold cannot exceed the peak inbound or outbound Internet traffic, whichever is larger, of the asset.
     * 
     */
    public Optional> bps() {
        return Optional.ofNullable(this.bps);
    }

    /**
     * The type of the threshold to query. Valid values: `defense`,`blackhole`.
     * 
     */
    @Import(name="ddosType", required=true)
    private Output ddosType;

    /**
     * @return The type of the threshold to query. Valid values: `defense`,`blackhole`.
     * 
     */
    public Output ddosType() {
        return this.ddosType;
    }

    /**
     * The ID of the instance.
     * 
     */
    @Import(name="instanceId", required=true)
    private Output instanceId;

    /**
     * @return The ID of the instance.
     * 
     */
    public Output instanceId() {
        return this.instanceId;
    }

    /**
     * The instance type of the public IP address asset. Value: `ecs`,`slb`,`eip`.
     * 
     */
    @Import(name="instanceType", required=true)
    private Output instanceType;

    /**
     * @return The instance type of the public IP address asset. Value: `ecs`,`slb`,`eip`.
     * 
     */
    public Output instanceType() {
        return this.instanceType;
    }

    /**
     * The Internet IP address.
     * 
     */
    @Import(name="internetIp")
    private @Nullable Output internetIp;

    /**
     * @return The Internet IP address.
     * 
     */
    public Optional> internetIp() {
        return Optional.ofNullable(this.internetIp);
    }

    /**
     * Whether it is the system default threshold. Value:
     * 
     */
    @Import(name="isAuto")
    private @Nullable Output isAuto;

    /**
     * @return Whether it is the system default threshold. Value:
     * 
     */
    public Optional> isAuto() {
        return Optional.ofNullable(this.isAuto);
    }

    /**
     * The current message number cleaning threshold. Unit: pps.
     * 
     */
    @Import(name="pps")
    private @Nullable Output pps;

    /**
     * @return The current message number cleaning threshold. Unit: pps.
     * 
     */
    public Optional> pps() {
        return Optional.ofNullable(this.pps);
    }

    private BasicDefenseThresholdArgs() {}

    private BasicDefenseThresholdArgs(BasicDefenseThresholdArgs $) {
        this.bps = $.bps;
        this.ddosType = $.ddosType;
        this.instanceId = $.instanceId;
        this.instanceType = $.instanceType;
        this.internetIp = $.internetIp;
        this.isAuto = $.isAuto;
        this.pps = $.pps;
    }

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

    public static final class Builder {
        private BasicDefenseThresholdArgs $;

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

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

        /**
         * @param bps Specifies the traffic scrubbing threshold. Unit: Mbit/s. The traffic scrubbing threshold cannot exceed the peak inbound or outbound Internet traffic, whichever is larger, of the asset.
         * 
         * @return builder
         * 
         */
        public Builder bps(@Nullable Output bps) {
            $.bps = bps;
            return this;
        }

        /**
         * @param bps Specifies the traffic scrubbing threshold. Unit: Mbit/s. The traffic scrubbing threshold cannot exceed the peak inbound or outbound Internet traffic, whichever is larger, of the asset.
         * 
         * @return builder
         * 
         */
        public Builder bps(Integer bps) {
            return bps(Output.of(bps));
        }

        /**
         * @param ddosType The type of the threshold to query. Valid values: `defense`,`blackhole`.
         * 
         * @return builder
         * 
         */
        public Builder ddosType(Output ddosType) {
            $.ddosType = ddosType;
            return this;
        }

        /**
         * @param ddosType The type of the threshold to query. Valid values: `defense`,`blackhole`.
         * 
         * @return builder
         * 
         */
        public Builder ddosType(String ddosType) {
            return ddosType(Output.of(ddosType));
        }

        /**
         * @param instanceId The ID of the instance.
         * 
         * @return builder
         * 
         */
        public Builder instanceId(Output instanceId) {
            $.instanceId = instanceId;
            return this;
        }

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

        /**
         * @param instanceType The instance type of the public IP address asset. Value: `ecs`,`slb`,`eip`.
         * 
         * @return builder
         * 
         */
        public Builder instanceType(Output instanceType) {
            $.instanceType = instanceType;
            return this;
        }

        /**
         * @param instanceType The instance type of the public IP address asset. Value: `ecs`,`slb`,`eip`.
         * 
         * @return builder
         * 
         */
        public Builder instanceType(String instanceType) {
            return instanceType(Output.of(instanceType));
        }

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

        /**
         * @param internetIp The Internet IP address.
         * 
         * @return builder
         * 
         */
        public Builder internetIp(String internetIp) {
            return internetIp(Output.of(internetIp));
        }

        /**
         * @param isAuto Whether it is the system default threshold. Value:
         * 
         * @return builder
         * 
         */
        public Builder isAuto(@Nullable Output isAuto) {
            $.isAuto = isAuto;
            return this;
        }

        /**
         * @param isAuto Whether it is the system default threshold. Value:
         * 
         * @return builder
         * 
         */
        public Builder isAuto(Boolean isAuto) {
            return isAuto(Output.of(isAuto));
        }

        /**
         * @param pps The current message number cleaning threshold. Unit: pps.
         * 
         * @return builder
         * 
         */
        public Builder pps(@Nullable Output pps) {
            $.pps = pps;
            return this;
        }

        /**
         * @param pps The current message number cleaning threshold. Unit: pps.
         * 
         * @return builder
         * 
         */
        public Builder pps(Integer pps) {
            return pps(Output.of(pps));
        }

        public BasicDefenseThresholdArgs build() {
            if ($.ddosType == null) {
                throw new MissingRequiredPropertyException("BasicDefenseThresholdArgs", "ddosType");
            }
            if ($.instanceId == null) {
                throw new MissingRequiredPropertyException("BasicDefenseThresholdArgs", "instanceId");
            }
            if ($.instanceType == null) {
                throw new MissingRequiredPropertyException("BasicDefenseThresholdArgs", "instanceType");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy