ConnectionMonitorSuccessThreshold Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. ConnectionMonitorSuccessThreshold
- com.
Implements
public final class ConnectionMonitorSuccessThreshold
implements JsonSerializable<ConnectionMonitorSuccessThreshold>
Describes the threshold for declaring a test successful.
Constructor Summary
Constructor | Description |
---|---|
ConnectionMonitorSuccessThreshold() |
Creates an instance of Connection |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
checksFailedPercent()
Get the checks |
static
Connection |
fromJson(JsonReader jsonReader)
Reads an instance of Connection |
Float |
roundTripTimeMs()
Get the round |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Connection |
withChecksFailedPercent(Integer checksFailedPercent)
Set the checks |
Connection |
withRoundTripTimeMs(Float roundTripTimeMs)
Set the round |
Methods inherited from java.lang.Object
Constructor Details
ConnectionMonitorSuccessThreshold
public ConnectionMonitorSuccessThreshold()
Creates an instance of ConnectionMonitorSuccessThreshold class.
Method Details
checksFailedPercent
public Integer checksFailedPercent()
Get the checksFailedPercent property: The maximum percentage of failed checks permitted for a test to evaluate as successful.
Returns:
fromJson
public static ConnectionMonitorSuccessThreshold fromJson(JsonReader jsonReader)
Reads an instance of ConnectionMonitorSuccessThreshold from the JsonReader.
Parameters:
Returns:
Throws:
roundTripTimeMs
public Float roundTripTimeMs()
Get the roundTripTimeMs property: The maximum round-trip time in milliseconds permitted for a test to evaluate as successful.
Returns:
toJson
validate
public void validate()
Validates the instance.
withChecksFailedPercent
public ConnectionMonitorSuccessThreshold withChecksFailedPercent(Integer checksFailedPercent)
Set the checksFailedPercent property: The maximum percentage of failed checks permitted for a test to evaluate as successful.
Parameters:
Returns:
withRoundTripTimeMs
public ConnectionMonitorSuccessThreshold withRoundTripTimeMs(Float roundTripTimeMs)
Set the roundTripTimeMs property: The maximum round-trip time in milliseconds permitted for a test to evaluate as successful.
Parameters:
Returns:
Applies to
Azure SDK for Java