Class ResourceSkuInner
- java.lang.Object
-
- com.azure.resourcemanager.cognitiveservices.fluent.models.ResourceSkuInner
-
public final class ResourceSkuInner extends Object
Describes an available Cognitive Services SKU.
-
-
Constructor Summary
Constructors Constructor Description ResourceSkuInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
kind()
Get the kind property: The Kind of resources that are supported in this SKU.List<String>
locations()
Get the locations property: The set of locations that the SKU is available.String
name()
Get the name property: The name of SKU.String
resourceType()
Get the resourceType property: The type of resource the SKU applies to.List<ResourceSkuRestrictions>
restrictions()
Get the restrictions property: The restrictions because of which SKU cannot be used.String
tier()
Get the tier property: Specifies the tier of Cognitive Services account.void
validate()
Validates the instance.ResourceSkuInner
withKind(String kind)
Set the kind property: The Kind of resources that are supported in this SKU.ResourceSkuInner
withLocations(List<String> locations)
Set the locations property: The set of locations that the SKU is available.ResourceSkuInner
withName(String name)
Set the name property: The name of SKU.ResourceSkuInner
withResourceType(String resourceType)
Set the resourceType property: The type of resource the SKU applies to.ResourceSkuInner
withRestrictions(List<ResourceSkuRestrictions> restrictions)
Set the restrictions property: The restrictions because of which SKU cannot be used.ResourceSkuInner
withTier(String tier)
Set the tier property: Specifies the tier of Cognitive Services account.
-
-
-
Method Detail
-
resourceType
public String resourceType()
Get the resourceType property: The type of resource the SKU applies to.- Returns:
- the resourceType value.
-
withResourceType
public ResourceSkuInner withResourceType(String resourceType)
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
public String name()
Get the name property: The name of SKU.- Returns:
- the name value.
-
withName
public ResourceSkuInner withName(String name)
Set the name property: The name of SKU.- Parameters:
name
- the name value to set.- Returns:
- the ResourceSkuInner object itself.
-
tier
public String tier()
Get the tier property: Specifies the tier of Cognitive Services account.- Returns:
- the tier value.
-
withTier
public ResourceSkuInner withTier(String tier)
Set the tier property: Specifies the tier of Cognitive Services account.- Parameters:
tier
- the tier value to set.- Returns:
- the ResourceSkuInner object itself.
-
kind
public String kind()
Get the kind property: The Kind of resources that are supported in this SKU.- Returns:
- the kind value.
-
withKind
public ResourceSkuInner withKind(String kind)
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
public List<String> locations()
Get the locations property: The set of locations that the SKU is available.- Returns:
- the locations value.
-
withLocations
public ResourceSkuInner withLocations(List<String> locations)
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
public List<ResourceSkuRestrictions> 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
public ResourceSkuInner withRestrictions(List<ResourceSkuRestrictions> restrictions)
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.
-
-