Class SamplingSettings
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.SamplingSettings
-
public final class SamplingSettings extends Object
Sampling settings for Diagnostic.
-
-
Constructor Summary
Constructors Constructor Description SamplingSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
percentage()
Get the percentage property: Rate of sampling for fixed-rate sampling.SamplingType
samplingType()
Get the samplingType property: Sampling type.void
validate()
Validates the instance.SamplingSettings
withPercentage(Double percentage)
Set the percentage property: Rate of sampling for fixed-rate sampling.SamplingSettings
withSamplingType(SamplingType samplingType)
Set the samplingType property: Sampling type.
-
-
-
Method Detail
-
samplingType
public SamplingType samplingType()
Get the samplingType property: Sampling type.- Returns:
- the samplingType value.
-
withSamplingType
public SamplingSettings withSamplingType(SamplingType samplingType)
Set the samplingType property: Sampling type.- Parameters:
samplingType
- the samplingType value to set.- Returns:
- the SamplingSettings object itself.
-
percentage
public Double percentage()
Get the percentage property: Rate of sampling for fixed-rate sampling.- Returns:
- the percentage value.
-
withPercentage
public SamplingSettings withPercentage(Double percentage)
Set the percentage property: Rate of sampling for fixed-rate sampling.- Parameters:
percentage
- the percentage value to set.- Returns:
- the SamplingSettings object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-