com.pulumi.azurenative.network.outputs.ConnectionMonitorSuccessThresholdResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
The 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.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 ConnectionMonitorSuccessThresholdResponse {
/**
* @return The maximum percentage of failed checks permitted for a test to evaluate as successful.
*
*/
private @Nullable Integer checksFailedPercent;
/**
* @return The maximum round-trip time in milliseconds permitted for a test to evaluate as successful.
*
*/
private @Nullable Double roundTripTimeMs;
private ConnectionMonitorSuccessThresholdResponse() {}
/**
* @return The maximum percentage of failed checks permitted for a test to evaluate as successful.
*
*/
public Optional checksFailedPercent() {
return Optional.ofNullable(this.checksFailedPercent);
}
/**
* @return The maximum round-trip time in milliseconds permitted for a test to evaluate as successful.
*
*/
public Optional roundTripTimeMs() {
return Optional.ofNullable(this.roundTripTimeMs);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ConnectionMonitorSuccessThresholdResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer checksFailedPercent;
private @Nullable Double roundTripTimeMs;
public Builder() {}
public Builder(ConnectionMonitorSuccessThresholdResponse 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 ConnectionMonitorSuccessThresholdResponse build() {
final var _resultValue = new ConnectionMonitorSuccessThresholdResponse();
_resultValue.checksFailedPercent = checksFailedPercent;
_resultValue.roundTripTimeMs = roundTripTimeMs;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy