Class DeploymentScaleSettings
- java.lang.Object
-
- com.azure.resourcemanager.cognitiveservices.models.DeploymentScaleSettings
-
public final class DeploymentScaleSettings extends Object
Properties of Cognitive Services account deployment model.
-
-
Constructor Summary
Constructors Constructor Description DeploymentScaleSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
activeCapacity()
Get the activeCapacity property: Deployment active capacity.Integer
capacity()
Get the capacity property: Deployment capacity.DeploymentScaleType
scaleType()
Get the scaleType property: Deployment scale type.void
validate()
Validates the instance.DeploymentScaleSettings
withCapacity(Integer capacity)
Set the capacity property: Deployment capacity.DeploymentScaleSettings
withScaleType(DeploymentScaleType scaleType)
Set the scaleType property: Deployment scale type.
-
-
-
Method Detail
-
scaleType
public DeploymentScaleType scaleType()
Get the scaleType property: Deployment scale type.- Returns:
- the scaleType value.
-
withScaleType
public DeploymentScaleSettings withScaleType(DeploymentScaleType scaleType)
Set the scaleType property: Deployment scale type.- Parameters:
scaleType
- the scaleType value to set.- Returns:
- the DeploymentScaleSettings object itself.
-
capacity
public Integer capacity()
Get the capacity property: Deployment capacity.- Returns:
- the capacity value.
-
withCapacity
public DeploymentScaleSettings withCapacity(Integer capacity)
Set the capacity property: Deployment capacity.- Parameters:
capacity
- the capacity value to set.- Returns:
- the DeploymentScaleSettings object itself.
-
activeCapacity
public Integer activeCapacity()
Get the activeCapacity property: Deployment active capacity. This value might be different from `capacity` if customer recently updated `capacity`.- Returns:
- the activeCapacity value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-