Class ResourceSkuInner
java.lang.Object
com.azure.resourcemanager.cognitiveservices.fluent.models.ResourceSkuInner
Describes an available Cognitive Services SKU.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionkind()
Get the kind property: The Kind of resources that are supported in this SKU.Get the locations property: The set of locations that the SKU is available.name()
Get the name property: The name of SKU.Get the resourceType property: The type of resource the SKU applies to.Get the restrictions property: The restrictions because of which SKU cannot be used.tier()
Get the tier property: Specifies the tier of Cognitive Services account.void
validate()
Validates the instance.Set the kind property: The Kind of resources that are supported in this SKU.withLocations
(List<String> locations) Set the locations property: The set of locations that the SKU is available.Set the name property: The name of SKU.withResourceType
(String resourceType) Set the resourceType property: The type of resource the SKU applies to.withRestrictions
(List<ResourceSkuRestrictions> restrictions) Set the restrictions property: The restrictions because of which SKU cannot be used.Set the tier property: Specifies the tier of Cognitive Services account.
-
Constructor Details
-
ResourceSkuInner
public ResourceSkuInner()
-
-
Method Details
-
resourceType
Get the resourceType property: The type of resource the SKU applies to.- Returns:
- the resourceType value.
-
withResourceType
Set the resourceType property: The type of resource the SKU applies to.- Parameters:
resourceType
- the resourceType value to set.- Returns:
- the ResourceSkuInner object itself.
-
name
Get the name property: The name of SKU.- Returns:
- the name value.
-
withName
Set the name property: The name of SKU.- Parameters:
name
- the name value to set.- Returns:
- the ResourceSkuInner object itself.
-
tier
Get the tier property: Specifies the tier of Cognitive Services account.- Returns:
- the tier value.
-
withTier
Set the tier property: Specifies the tier of Cognitive Services account.- Parameters:
tier
- the tier value to set.- Returns:
- the ResourceSkuInner object itself.
-
kind
Get the kind property: The Kind of resources that are supported in this SKU.- Returns:
- the kind value.
-
withKind
Set the kind property: The Kind of resources that are supported in this SKU.- Parameters:
kind
- the kind value to set.- Returns:
- the ResourceSkuInner object itself.
-
locations
Get the locations property: The set of locations that the SKU is available.- Returns:
- the locations value.
-
withLocations
Set the locations property: The set of locations that the SKU is available.- Parameters:
locations
- the locations value to set.- Returns:
- the ResourceSkuInner object itself.
-
restrictions
Get the restrictions property: The restrictions because of which SKU cannot be used. This is empty if there are no restrictions.- Returns:
- the restrictions value.
-
withRestrictions
Set the restrictions property: The restrictions because of which SKU cannot be used. This is empty if there are no restrictions.- Parameters:
restrictions
- the restrictions value to set.- Returns:
- the ResourceSkuInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-