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

com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentHealthCheckConfigArgs 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.vpn.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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 GatewayVpnAttachmentHealthCheckConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final GatewayVpnAttachmentHealthCheckConfigArgs Empty = new GatewayVpnAttachmentHealthCheckConfigArgs();

    /**
     * The destination IP address that is used for health checks.
     * 
     */
    @Import(name="dip")
    private @Nullable Output dip;

    /**
     * @return The destination IP address that is used for health checks.
     * 
     */
    public Optional> dip() {
        return Optional.ofNullable(this.dip);
    }

    /**
     * Specifies whether to enable health checks.
     * 
     */
    @Import(name="enable")
    private @Nullable Output enable;

    /**
     * @return Specifies whether to enable health checks.
     * 
     */
    public Optional> enable() {
        return Optional.ofNullable(this.enable);
    }

    /**
     * The interval between two consecutive health checks. Unit: seconds.
     * 
     */
    @Import(name="interval")
    private @Nullable Output interval;

    /**
     * @return The interval between two consecutive health checks. Unit: seconds.
     * 
     */
    public Optional> interval() {
        return Optional.ofNullable(this.interval);
    }

    /**
     * Whether to revoke the published route when the health check fails. Valid values: `revoke_route` or `reserve_route`.
     * 
     */
    @Import(name="policy")
    private @Nullable Output policy;

    /**
     * @return Whether to revoke the published route when the health check fails. Valid values: `revoke_route` or `reserve_route`.
     * 
     */
    public Optional> policy() {
        return Optional.ofNullable(this.policy);
    }

    /**
     * The maximum number of health check retries.
     * 
     */
    @Import(name="retry")
    private @Nullable Output retry;

    /**
     * @return The maximum number of health check retries.
     * 
     */
    public Optional> retry() {
        return Optional.ofNullable(this.retry);
    }

    /**
     * The source IP address that is used for health checks.
     * 
     */
    @Import(name="sip")
    private @Nullable Output sip;

    /**
     * @return The source IP address that is used for health checks.
     * 
     */
    public Optional> sip() {
        return Optional.ofNullable(this.sip);
    }

    private GatewayVpnAttachmentHealthCheckConfigArgs() {}

    private GatewayVpnAttachmentHealthCheckConfigArgs(GatewayVpnAttachmentHealthCheckConfigArgs $) {
        this.dip = $.dip;
        this.enable = $.enable;
        this.interval = $.interval;
        this.policy = $.policy;
        this.retry = $.retry;
        this.sip = $.sip;
    }

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

    public static final class Builder {
        private GatewayVpnAttachmentHealthCheckConfigArgs $;

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

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

        /**
         * @param dip The destination IP address that is used for health checks.
         * 
         * @return builder
         * 
         */
        public Builder dip(@Nullable Output dip) {
            $.dip = dip;
            return this;
        }

        /**
         * @param dip The destination IP address that is used for health checks.
         * 
         * @return builder
         * 
         */
        public Builder dip(String dip) {
            return dip(Output.of(dip));
        }

        /**
         * @param enable Specifies whether to enable health checks.
         * 
         * @return builder
         * 
         */
        public Builder enable(@Nullable Output enable) {
            $.enable = enable;
            return this;
        }

        /**
         * @param enable Specifies whether to enable health checks.
         * 
         * @return builder
         * 
         */
        public Builder enable(Boolean enable) {
            return enable(Output.of(enable));
        }

        /**
         * @param interval The interval between two consecutive health checks. Unit: seconds.
         * 
         * @return builder
         * 
         */
        public Builder interval(@Nullable Output interval) {
            $.interval = interval;
            return this;
        }

        /**
         * @param interval The interval between two consecutive health checks. Unit: seconds.
         * 
         * @return builder
         * 
         */
        public Builder interval(Integer interval) {
            return interval(Output.of(interval));
        }

        /**
         * @param policy Whether to revoke the published route when the health check fails. Valid values: `revoke_route` or `reserve_route`.
         * 
         * @return builder
         * 
         */
        public Builder policy(@Nullable Output policy) {
            $.policy = policy;
            return this;
        }

        /**
         * @param policy Whether to revoke the published route when the health check fails. Valid values: `revoke_route` or `reserve_route`.
         * 
         * @return builder
         * 
         */
        public Builder policy(String policy) {
            return policy(Output.of(policy));
        }

        /**
         * @param retry The maximum number of health check retries.
         * 
         * @return builder
         * 
         */
        public Builder retry(@Nullable Output retry) {
            $.retry = retry;
            return this;
        }

        /**
         * @param retry The maximum number of health check retries.
         * 
         * @return builder
         * 
         */
        public Builder retry(Integer retry) {
            return retry(Output.of(retry));
        }

        /**
         * @param sip The source IP address that is used for health checks.
         * 
         * @return builder
         * 
         */
        public Builder sip(@Nullable Output sip) {
            $.sip = sip;
            return this;
        }

        /**
         * @param sip The source IP address that is used for health checks.
         * 
         * @return builder
         * 
         */
        public Builder sip(String sip) {
            return sip(Output.of(sip));
        }

        public GatewayVpnAttachmentHealthCheckConfigArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy