ResourceSkuRestrictions Class

  • java.lang.Object
    • com.microsoft.azure.management.appplatform.v2020_07_01.ResourceSkuRestrictions

public class ResourceSkuRestrictions

Restrictions where the SKU cannot be used.

Constructor Summary

Constructor Description
ResourceSkuRestrictions()

Method Summary

Modifier and Type Method and Description
ResourceSkuRestrictionsReasonCode reasonCode()

Get gets the reason for restriction.

ResourceSkuRestrictionInfo restrictionInfo()

Get gets the information about the restriction where the SKU cannot be used.

ResourceSkuRestrictionsType type()

Get gets the type of restrictions.

java.util.List<java.lang.String> values()

Get gets the value of restrictions.

ResourceSkuRestrictions withReasonCode(ResourceSkuRestrictionsReasonCode reasonCode)

Set gets the reason for restriction.

ResourceSkuRestrictions withRestrictionInfo(ResourceSkuRestrictionInfo restrictionInfo)

Set gets the information about the restriction where the SKU cannot be used.

ResourceSkuRestrictions withType(ResourceSkuRestrictionsType type)

Set gets the type of restrictions.

ResourceSkuRestrictions withValues(List<String> values)

Set gets the value of restrictions.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

ResourceSkuRestrictions

public ResourceSkuRestrictions()

Method Details

reasonCode

public ResourceSkuRestrictionsReasonCode reasonCode()

Get gets the reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription'.

Returns:

the reasonCode value

restrictionInfo

public ResourceSkuRestrictionInfo restrictionInfo()

Get gets the information about the restriction where the SKU cannot be used.

Returns:

the restrictionInfo value

type

public ResourceSkuRestrictionsType type()

Get gets the type of restrictions. Possible values include: 'Location', 'Zone'.

Returns:

the type value

values

public List values()

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:

the values value

withReasonCode

public ResourceSkuRestrictions withReasonCode(ResourceSkuRestrictionsReasonCode reasonCode)

Set gets the reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription'.

Parameters:

reasonCode - the reasonCode value to set

Returns:

the ResourceSkuRestrictions object itself.

withRestrictionInfo

public ResourceSkuRestrictions withRestrictionInfo(ResourceSkuRestrictionInfo restrictionInfo)

Set gets the information about the restriction where the SKU cannot be used.

Parameters:

restrictionInfo - the restrictionInfo value to set

Returns:

the ResourceSkuRestrictions object itself.

withType

public ResourceSkuRestrictions withType(ResourceSkuRestrictionsType type)

Set gets the type of restrictions. Possible values include: 'Location', 'Zone'.

Parameters:

type - the type value to set

Returns:

the ResourceSkuRestrictions object itself.

withValues

public ResourceSkuRestrictions withValues(List values)

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:

values - the values value to set

Returns:

the ResourceSkuRestrictions object itself.

Applies to