ResourceSkuRestrictions Class
- java.
lang. Object - com.
azure. resourcemanager. cognitiveservices. models. ResourceSkuRestrictions
- com.
public final class ResourceSkuRestrictions
Describes restrictions of a SKU.
Constructor Summary
Constructor | Description |
---|---|
ResourceSkuRestrictions() |
Creates an instance of Resource |
Method Summary
Modifier and Type | Method and Description |
---|---|
Resource |
reasonCode()
Get the reason |
Resource |
restrictionInfo()
Get the restriction |
Resource |
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. |
Resource |
withReasonCode(ResourceSkuRestrictionsReasonCode reasonCode)
Set the reason |
Resource |
withRestrictionInfo(ResourceSkuRestrictionInfo restrictionInfo)
Set the restriction |
Resource |
withType(ResourceSkuRestrictionsType type)
Set the type property: The type of restrictions. |
Resource |
withValues(List<String> values)
Set the values property: The value of restrictions. |
Methods inherited from java.lang.Object
Constructor Details
ResourceSkuRestrictions
public ResourceSkuRestrictions()
Creates an instance of ResourceSkuRestrictions class.
Method Details
reasonCode
public ResourceSkuRestrictionsReasonCode reasonCode()
Get the reasonCode property: The reason for restriction.
Returns:
restrictionInfo
public ResourceSkuRestrictionInfo restrictionInfo()
Get the restrictionInfo property: The information about the restriction where the SKU cannot be used.
Returns:
type
public ResourceSkuRestrictionsType type()
Get the type property: The type of restrictions.
Returns:
validate
public void validate()
Validates the instance.
values
public List
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:
withReasonCode
public ResourceSkuRestrictions withReasonCode(ResourceSkuRestrictionsReasonCode reasonCode)
Set the reasonCode property: The reason for restriction.
Parameters:
Returns:
withRestrictionInfo
public ResourceSkuRestrictions withRestrictionInfo(ResourceSkuRestrictionInfo restrictionInfo)
Set the restrictionInfo property: The information about the restriction where the SKU cannot be used.
Parameters:
Returns:
withType
public ResourceSkuRestrictions withType(ResourceSkuRestrictionsType type)
Set the type property: The type of restrictions.
Parameters:
Returns:
withValues
public ResourceSkuRestrictions withValues(List
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:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for