Restriction Class

  • java.lang.Object
    • com.microsoft.azure.management.storagecache.v2020_03_01.Restriction

public class Restriction

The restrictions preventing this SKU from being used.

Constructor Summary

Constructor Description
Restriction()

Method Summary

Modifier and Type Method and Description
ReasonCode reasonCode()

Get the reason for the restriction.

java.lang.String type()

Get the type of restrictions.

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

Get the value of restrictions.

Restriction withReasonCode(ReasonCode reasonCode)

Set the reason for the restriction.

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

Restriction

public Restriction()

Method Details

reasonCode

public ReasonCode reasonCode()

Get the reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". "QuotaId" is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. "NotAvailableForSubscription" is related to capacity at the datacenter. Possible values include: 'QuotaId', 'NotAvailableForSubscription'.

Returns:

the reasonCode value

type

public String type()

Get the type of restrictions. In this version, the only possible value for this is location.

Returns:

the type value

values

public List values()

Get the value of restrictions. If the restriction type is set to location, then this would be the different locations where the SKU is restricted.

Returns:

the values value

withReasonCode

public Restriction withReasonCode(ReasonCode reasonCode)

Set the reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". "QuotaId" is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. "NotAvailableForSubscription" is related to capacity at the datacenter. Possible values include: 'QuotaId', 'NotAvailableForSubscription'.

Parameters:

reasonCode - the reasonCode value to set

Returns:

the Restriction object itself.

Applies to

Azure SDK for Java

Latest