Class LoadBalancingSettingsParameters
- java.lang.Object
-
- com.azure.resourcemanager.cdn.models.LoadBalancingSettingsParameters
-
public final class LoadBalancingSettingsParameters extends Object
Round-Robin load balancing settings for a backend pool.
-
-
Constructor Summary
Constructors Constructor Description LoadBalancingSettingsParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegeradditionalLatencyInMilliseconds()Get the additionalLatencyInMilliseconds property: The additional latency in milliseconds for probes to fall into the lowest latency bucket.IntegersampleSize()Get the sampleSize property: The number of samples to consider for load balancing decisions.IntegersuccessfulSamplesRequired()Get the successfulSamplesRequired property: The number of samples within the sample period that must succeed.voidvalidate()Validates the instance.LoadBalancingSettingsParameterswithAdditionalLatencyInMilliseconds(Integer additionalLatencyInMilliseconds)Set the additionalLatencyInMilliseconds property: The additional latency in milliseconds for probes to fall into the lowest latency bucket.LoadBalancingSettingsParameterswithSampleSize(Integer sampleSize)Set the sampleSize property: The number of samples to consider for load balancing decisions.LoadBalancingSettingsParameterswithSuccessfulSamplesRequired(Integer successfulSamplesRequired)Set the successfulSamplesRequired property: The number of samples within the sample period that must succeed.
-
-
-
Method Detail
-
sampleSize
public Integer sampleSize()
Get the sampleSize property: The number of samples to consider for load balancing decisions.- Returns:
- the sampleSize value.
-
withSampleSize
public LoadBalancingSettingsParameters withSampleSize(Integer sampleSize)
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
public Integer 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
public Integer 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.
-
-