ResourceSkuRestrictions Class
- java.
lang. Object - com.
microsoft. azure. management. appplatform. v2020_07_01.ResourceSkuRestrictions
- com.
public class ResourceSkuRestrictions
Restrictions where the SKU cannot be used.
Constructor Summary
Constructor | Description | |
---|---|---|
ResourceSkuRestrictions() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Resource |
reasonCode()
Get gets the reason for restriction. |
Resource |
restrictionInfo()
Get gets the information about the restriction where the SKU cannot be used. |
Resource |
type()
Get gets the type of restrictions. |
java.util.List<java.lang.String> |
values()
Get gets the value of restrictions. |
Resource |
withReasonCode(ResourceSkuRestrictionsReasonCode reasonCode)
Set gets the reason for restriction. |
Resource |
withRestrictionInfo(ResourceSkuRestrictionInfo restrictionInfo)
Set gets the information about the restriction where the SKU cannot be used. |
Resource |
withType(ResourceSkuRestrictionsType type)
Set gets the type of restrictions. |
Resource |
withValues(List<String> values)
Set gets the value of restrictions. |
Methods inherited from java.lang.Object
Constructor Details
ResourceSkuRestrictions
public ResourceSkuRestrictions()
Method Details
reasonCode
public ResourceSkuRestrictionsReasonCode reasonCode()
Get gets the reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription'.
Returns:
restrictionInfo
public ResourceSkuRestrictionInfo restrictionInfo()
Get gets the information about the restriction where the SKU cannot be used.
Returns:
type
public ResourceSkuRestrictionsType type()
Get gets the type of restrictions. Possible values include: 'Location', 'Zone'.
Returns:
values
public List
Get gets 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 gets the reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription'.
Parameters:
Returns:
withRestrictionInfo
public ResourceSkuRestrictions withRestrictionInfo(ResourceSkuRestrictionInfo restrictionInfo)
Set gets the information about the restriction where the SKU cannot be used.
Parameters:
Returns:
withType
public ResourceSkuRestrictions withType(ResourceSkuRestrictionsType type)
Set gets the type of restrictions. Possible values include: 'Location', 'Zone'.
Parameters:
Returns:
withValues
public ResourceSkuRestrictions withValues(List
Set gets 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