Class SkuAvailability


  • public final class SkuAvailability
    extends Object
    SKU availability.
    • Constructor Detail

      • SkuAvailability

        public SkuAvailability()
    • Method Detail

      • kind

        public String kind()
        Get the kind property: The Kind of the resource.
        Returns:
        the kind value.
      • withKind

        public SkuAvailability withKind​(String kind)
        Set the kind property: The Kind of the resource.
        Parameters:
        kind - the kind value to set.
        Returns:
        the SkuAvailability object itself.
      • type

        public String type()
        Get the type property: The Type of the resource.
        Returns:
        the type value.
      • withType

        public SkuAvailability withType​(String type)
        Set the type property: The Type of the resource.
        Parameters:
        type - the type value to set.
        Returns:
        the SkuAvailability object itself.
      • skuName

        public String skuName()
        Get the skuName property: The SKU of Cognitive Services account.
        Returns:
        the skuName value.
      • withSkuName

        public SkuAvailability withSkuName​(String skuName)
        Set the skuName property: The SKU of Cognitive Services account.
        Parameters:
        skuName - the skuName value to set.
        Returns:
        the SkuAvailability object itself.
      • skuAvailable

        public Boolean skuAvailable()
        Get the skuAvailable property: Indicates the given SKU is available or not.
        Returns:
        the skuAvailable value.
      • withSkuAvailable

        public SkuAvailability withSkuAvailable​(Boolean skuAvailable)
        Set the skuAvailable property: Indicates the given SKU is available or not.
        Parameters:
        skuAvailable - the skuAvailable value to set.
        Returns:
        the SkuAvailability object itself.
      • reason

        public String reason()
        Get the reason property: Reason why the SKU is not available.
        Returns:
        the reason value.
      • withReason

        public SkuAvailability withReason​(String reason)
        Set the reason property: Reason why the SKU is not available.
        Parameters:
        reason - the reason value to set.
        Returns:
        the SkuAvailability object itself.
      • message

        public String message()
        Get the message property: Additional error message.
        Returns:
        the message value.
      • withMessage

        public SkuAvailability withMessage​(String message)
        Set the message property: Additional error message.
        Parameters:
        message - the message value to set.
        Returns:
        the SkuAvailability object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.