Class ResourceSkuRestrictions
- java.lang.Object
-
- com.azure.resourcemanager.cognitiveservices.models.ResourceSkuRestrictions
-
public final class ResourceSkuRestrictions extends Object
Describes restrictions of a SKU.
-
-
Constructor Summary
Constructors Constructor Description ResourceSkuRestrictions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceSkuRestrictionsReasonCode
reasonCode()
Get the reasonCode property: The reason for restriction.ResourceSkuRestrictionInfo
restrictionInfo()
Get the restrictionInfo property: The information about the restriction where the SKU cannot be used.ResourceSkuRestrictionsType
type()
Get the type property: The type of restrictions.void
validate()
Validates the instance.List<String>
values()
Get the values property: The value of restrictions.ResourceSkuRestrictions
withReasonCode(ResourceSkuRestrictionsReasonCode reasonCode)
Set the reasonCode property: The reason for restriction.ResourceSkuRestrictions
withRestrictionInfo(ResourceSkuRestrictionInfo restrictionInfo)
Set the restrictionInfo property: The information about the restriction where the SKU cannot be used.ResourceSkuRestrictions
withType(ResourceSkuRestrictionsType type)
Set the type property: The type of restrictions.ResourceSkuRestrictions
withValues(List<String> values)
Set the values property: The value of restrictions.
-
-
-
Method Detail
-
type
public ResourceSkuRestrictionsType type()
Get the type property: The type of restrictions.- Returns:
- the type value.
-
withType
public ResourceSkuRestrictions withType(ResourceSkuRestrictionsType type)
Set the type property: The type of restrictions.- Parameters:
type
- the type value to set.- Returns:
- the ResourceSkuRestrictions object itself.
-
values
public List<String> values()
Get the values property: The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted.- Returns:
- the values value.
-
withValues
public ResourceSkuRestrictions withValues(List<String> values)
Set the values property: The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted.- Parameters:
values
- the values value to set.- Returns:
- the ResourceSkuRestrictions object itself.
-
restrictionInfo
public ResourceSkuRestrictionInfo restrictionInfo()
Get the restrictionInfo property: The information about the restriction where the SKU cannot be used.- Returns:
- the restrictionInfo value.
-
withRestrictionInfo
public ResourceSkuRestrictions withRestrictionInfo(ResourceSkuRestrictionInfo restrictionInfo)
Set the restrictionInfo property: The information about the restriction where the SKU cannot be used.- Parameters:
restrictionInfo
- the restrictionInfo value to set.- Returns:
- the ResourceSkuRestrictions object itself.
-
reasonCode
public ResourceSkuRestrictionsReasonCode reasonCode()
Get the reasonCode property: The reason for restriction.- Returns:
- the reasonCode value.
-
withReasonCode
public ResourceSkuRestrictions withReasonCode(ResourceSkuRestrictionsReasonCode reasonCode)
Set the reasonCode property: The reason for restriction.- Parameters:
reasonCode
- the reasonCode value to set.- Returns:
- the ResourceSkuRestrictions object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-