Class LoadBalancingSettingsParameters
java.lang.Object
com.azure.resourcemanager.cdn.models.LoadBalancingSettingsParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LoadBalancingSettingsParameters>
public final class LoadBalancingSettingsParameters
extends Object
implements com.azure.json.JsonSerializable<LoadBalancingSettingsParameters>
Round-Robin load balancing settings for a backend pool.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of LoadBalancingSettingsParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalLatencyInMilliseconds property: The additional latency in milliseconds for probes to fall into the lowest latency bucket.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LoadBalancingSettingsParameters from the JsonReader.Get the sampleSize property: The number of samples to consider for load balancing decisions.Get the successfulSamplesRequired property: The number of samples within the sample period that must succeed.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAdditionalLatencyInMilliseconds(Integer additionalLatencyInMilliseconds) Set the additionalLatencyInMilliseconds property: The additional latency in milliseconds for probes to fall into the lowest latency bucket.withSampleSize(Integer sampleSize) Set the sampleSize property: The number of samples to consider for load balancing decisions.withSuccessfulSamplesRequired(Integer successfulSamplesRequired) Set the successfulSamplesRequired property: The number of samples within the sample period that must succeed.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
LoadBalancingSettingsParameters
public LoadBalancingSettingsParameters()Creates an instance of LoadBalancingSettingsParameters class.
-
-
Method Details
-
sampleSize
Get the sampleSize property: The number of samples to consider for load balancing decisions.- Returns:
- the sampleSize value.
-
withSampleSize
Set the sampleSize property: The number of samples to consider for load balancing decisions.- Parameters:
sampleSize- the sampleSize value to set.- Returns:
- the LoadBalancingSettingsParameters object itself.
-
successfulSamplesRequired
Get the successfulSamplesRequired property: The number of samples within the sample period that must succeed.- Returns:
- the successfulSamplesRequired value.
-
withSuccessfulSamplesRequired
public LoadBalancingSettingsParameters withSuccessfulSamplesRequired(Integer successfulSamplesRequired) Set the successfulSamplesRequired property: The number of samples within the sample period that must succeed.- Parameters:
successfulSamplesRequired- the successfulSamplesRequired value to set.- Returns:
- the LoadBalancingSettingsParameters object itself.
-
additionalLatencyInMilliseconds
Get the additionalLatencyInMilliseconds property: The additional latency in milliseconds for probes to fall into the lowest latency bucket.- Returns:
- the additionalLatencyInMilliseconds value.
-
withAdditionalLatencyInMilliseconds
public LoadBalancingSettingsParameters withAdditionalLatencyInMilliseconds(Integer additionalLatencyInMilliseconds) Set the additionalLatencyInMilliseconds property: The additional latency in milliseconds for probes to fall into the lowest latency bucket.- Parameters:
additionalLatencyInMilliseconds- the additionalLatencyInMilliseconds value to set.- Returns:
- the LoadBalancingSettingsParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<LoadBalancingSettingsParameters>- Throws:
IOException
-
fromJson
public static LoadBalancingSettingsParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of LoadBalancingSettingsParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LoadBalancingSettingsParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the LoadBalancingSettingsParameters.
-