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

com.microsoft.azure.management.network.ConnectionMonitorSuccessThreshold Maven / Gradle / Ivy

There is a newer version: 1.41.4
Show newest version
/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.management.network;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Describes the threshold for declaring a test successful.
 */
public class ConnectionMonitorSuccessThreshold {
    /**
     * The maximum percentage of failed checks permitted for a test to evaluate
     * as successful.
     */
    @JsonProperty(value = "checksFailedPercent")
    private Integer checksFailedPercent;

    /**
     * The maximum round-trip time in milliseconds permitted for a test to
     * evaluate as successful.
     */
    @JsonProperty(value = "roundTripTimeMs")
    private Integer roundTripTimeMs;

    /**
     * Get the maximum percentage of failed checks permitted for a test to evaluate as successful.
     *
     * @return the checksFailedPercent value
     */
    public Integer checksFailedPercent() {
        return this.checksFailedPercent;
    }

    /**
     * Set the maximum percentage of failed checks permitted for a test to evaluate as successful.
     *
     * @param checksFailedPercent the checksFailedPercent value to set
     * @return the ConnectionMonitorSuccessThreshold object itself.
     */
    public ConnectionMonitorSuccessThreshold withChecksFailedPercent(Integer checksFailedPercent) {
        this.checksFailedPercent = checksFailedPercent;
        return this;
    }

    /**
     * Get the maximum round-trip time in milliseconds permitted for a test to evaluate as successful.
     *
     * @return the roundTripTimeMs value
     */
    public Integer roundTripTimeMs() {
        return this.roundTripTimeMs;
    }

    /**
     * Set the maximum round-trip time in milliseconds permitted for a test to evaluate as successful.
     *
     * @param roundTripTimeMs the roundTripTimeMs value to set
     * @return the ConnectionMonitorSuccessThreshold object itself.
     */
    public ConnectionMonitorSuccessThreshold withRoundTripTimeMs(Integer roundTripTimeMs) {
        this.roundTripTimeMs = roundTripTimeMs;
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy