Class DeploymentScaleSettings


  • public final class DeploymentScaleSettings
    extends Object
    Properties of Cognitive Services account deployment model.
    • Constructor Detail

      • DeploymentScaleSettings

        public DeploymentScaleSettings()
    • 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.