Restriction Class

  • java.lang.Object
    • com.azure.resourcemanager.machinelearningservices.models.Restriction

public final class Restriction

The restriction because of which SKU cannot be used.

Constructor Summary

Constructor Description
Restriction()

Method Summary

Modifier and Type Method and Description
ReasonCode reasonCode()

Get the reasonCode property: The reason for the restriction.

String 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.

Restriction withReasonCode(ReasonCode reasonCode)

Set the reasonCode property: The reason for the restriction.

Methods inherited from java.lang.Object

Constructor Details

Restriction

public Restriction()

Method Details

reasonCode

public ReasonCode reasonCode()

Get the reasonCode property: The reason for the restriction.

Returns:

the reasonCode value.

type

public String type()

Get the type property: The type of restrictions. As of now only possible value for this is location.

Returns:

the type value.

validate

public void validate()

Validates the instance.

values

public List 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.

withReasonCode

public Restriction withReasonCode(ReasonCode reasonCode)

Set the reasonCode property: The reason for the restriction.

Parameters:

reasonCode - the reasonCode value to set.

Returns:

the Restriction object itself.

Applies to