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

com.pulumi.azurenative.network.inputs.ConnectionMonitorSuccessThresholdArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
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.azurenative.network.inputs;

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


/**
 * Describes the threshold for declaring a test successful.
 * 
 */
public final class ConnectionMonitorSuccessThresholdArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConnectionMonitorSuccessThresholdArgs Empty = new ConnectionMonitorSuccessThresholdArgs();

    /**
     * The maximum percentage of failed checks permitted for a test to evaluate as successful.
     * 
     */
    @Import(name="checksFailedPercent")
    private @Nullable Output checksFailedPercent;

    /**
     * @return The maximum percentage of failed checks permitted for a test to evaluate as successful.
     * 
     */
    public Optional> checksFailedPercent() {
        return Optional.ofNullable(this.checksFailedPercent);
    }

    /**
     * The maximum round-trip time in milliseconds permitted for a test to evaluate as successful.
     * 
     */
    @Import(name="roundTripTimeMs")
    private @Nullable Output roundTripTimeMs;

    /**
     * @return The maximum round-trip time in milliseconds permitted for a test to evaluate as successful.
     * 
     */
    public Optional> roundTripTimeMs() {
        return Optional.ofNullable(this.roundTripTimeMs);
    }

    private ConnectionMonitorSuccessThresholdArgs() {}

    private ConnectionMonitorSuccessThresholdArgs(ConnectionMonitorSuccessThresholdArgs $) {
        this.checksFailedPercent = $.checksFailedPercent;
        this.roundTripTimeMs = $.roundTripTimeMs;
    }

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

    public static final class Builder {
        private ConnectionMonitorSuccessThresholdArgs $;

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

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

        /**
         * @param checksFailedPercent The maximum percentage of failed checks permitted for a test to evaluate as successful.
         * 
         * @return builder
         * 
         */
        public Builder checksFailedPercent(@Nullable Output checksFailedPercent) {
            $.checksFailedPercent = checksFailedPercent;
            return this;
        }

        /**
         * @param checksFailedPercent The maximum percentage of failed checks permitted for a test to evaluate as successful.
         * 
         * @return builder
         * 
         */
        public Builder checksFailedPercent(Integer checksFailedPercent) {
            return checksFailedPercent(Output.of(checksFailedPercent));
        }

        /**
         * @param roundTripTimeMs The maximum round-trip time in milliseconds permitted for a test to evaluate as successful.
         * 
         * @return builder
         * 
         */
        public Builder roundTripTimeMs(@Nullable Output roundTripTimeMs) {
            $.roundTripTimeMs = roundTripTimeMs;
            return this;
        }

        /**
         * @param roundTripTimeMs The maximum round-trip time in milliseconds permitted for a test to evaluate as successful.
         * 
         * @return builder
         * 
         */
        public Builder roundTripTimeMs(Double roundTripTimeMs) {
            return roundTripTimeMs(Output.of(roundTripTimeMs));
        }

        public ConnectionMonitorSuccessThresholdArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy