Class SkuAvailability
java.lang.Object
com.azure.resourcemanager.cognitiveservices.models.SkuAvailability
SKU availability.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionkind()
Get the kind property: The Kind of the resource.message()
Get the message property: Additional error message.reason()
Get the reason property: Reason why the SKU is not available.Get the skuAvailable property: Indicates the given SKU is available or not.skuName()
Get the skuName property: The SKU of Cognitive Services account.type()
Get the type property: The Type of the resource.void
validate()
Validates the instance.Set the kind property: The Kind of the resource.withMessage
(String message) Set the message property: Additional error message.withReason
(String reason) Set the reason property: Reason why the SKU is not available.withSkuAvailable
(Boolean skuAvailable) Set the skuAvailable property: Indicates the given SKU is available or not.withSkuName
(String skuName) Set the skuName property: The SKU of Cognitive Services account.Set the type property: The Type of the resource.
-
Constructor Details
-
SkuAvailability
public SkuAvailability()Creates an instance of SkuAvailability class.
-
-
Method Details
-
kind
Get the kind property: The Kind of the resource.- Returns:
- the kind value.
-
withKind
Set the kind property: The Kind of the resource.- Parameters:
kind
- the kind value to set.- Returns:
- the SkuAvailability object itself.
-
type
Get the type property: The Type of the resource.- Returns:
- the type value.
-
withType
Set the type property: The Type of the resource.- Parameters:
type
- the type value to set.- Returns:
- the SkuAvailability object itself.
-
skuName
Get the skuName property: The SKU of Cognitive Services account.- Returns:
- the skuName value.
-
withSkuName
Set the skuName property: The SKU of Cognitive Services account.- Parameters:
skuName
- the skuName value to set.- Returns:
- the SkuAvailability object itself.
-
skuAvailable
Get the skuAvailable property: Indicates the given SKU is available or not.- Returns:
- the skuAvailable value.
-
withSkuAvailable
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
Get the reason property: Reason why the SKU is not available.- Returns:
- the reason value.
-
withReason
Set the reason property: Reason why the SKU is not available.- Parameters:
reason
- the reason value to set.- Returns:
- the SkuAvailability object itself.
-
message
Get the message property: Additional error message.- Returns:
- the message value.
-
withMessage
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.
-