com.pulumi.azure.network.outputs.NetworkConnectionMonitorTestConfigurationSuccessThreshold Maven / Gradle / Ivy
// *** 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.azure.network.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Double;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class NetworkConnectionMonitorTestConfigurationSuccessThreshold {
/**
* @return The maximum percentage of failed checks permitted for a test to be successful.
*
*/
private @Nullable Integer checksFailedPercent;
/**
* @return The maximum round-trip time in milliseconds permitted for a test to be successful.
*
*/
private @Nullable Double roundTripTimeMs;
private NetworkConnectionMonitorTestConfigurationSuccessThreshold() {}
/**
* @return The maximum percentage of failed checks permitted for a test to be successful.
*
*/
public Optional checksFailedPercent() {
return Optional.ofNullable(this.checksFailedPercent);
}
/**
* @return The maximum round-trip time in milliseconds permitted for a test to be successful.
*
*/
public Optional roundTripTimeMs() {
return Optional.ofNullable(this.roundTripTimeMs);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NetworkConnectionMonitorTestConfigurationSuccessThreshold defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer checksFailedPercent;
private @Nullable Double roundTripTimeMs;
public Builder() {}
public Builder(NetworkConnectionMonitorTestConfigurationSuccessThreshold defaults) {
Objects.requireNonNull(defaults);
this.checksFailedPercent = defaults.checksFailedPercent;
this.roundTripTimeMs = defaults.roundTripTimeMs;
}
@CustomType.Setter
public Builder checksFailedPercent(@Nullable Integer checksFailedPercent) {
this.checksFailedPercent = checksFailedPercent;
return this;
}
@CustomType.Setter
public Builder roundTripTimeMs(@Nullable Double roundTripTimeMs) {
this.roundTripTimeMs = roundTripTimeMs;
return this;
}
public NetworkConnectionMonitorTestConfigurationSuccessThreshold build() {
final var _resultValue = new NetworkConnectionMonitorTestConfigurationSuccessThreshold();
_resultValue.checksFailedPercent = checksFailedPercent;
_resultValue.roundTripTimeMs = roundTripTimeMs;
return _resultValue;
}
}
}