Class SkuRestriction
java.lang.Object
com.azure.resourcemanager.workloads.models.SkuRestriction
The SKU restriction definition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the reasonCode property: The SKU restriction reason code.Get the restrictionInfo property: The restriction information.type()
Get the type property: The SKU restriction type.void
validate()
Validates the instance.values()
Get the values property: Restriction values.withReasonCode
(SkuRestrictionReasonCode reasonCode) Set the reasonCode property: The SKU restriction reason code.withRestrictionInfo
(Object restrictionInfo) Set the restrictionInfo property: The restriction information.withType
(SkuRestrictionType type) Set the type property: The SKU restriction type.withValues
(List<String> values) Set the values property: Restriction values.
-
Constructor Details
-
SkuRestriction
public SkuRestriction()
-
-
Method Details
-
type
Get the type property: The SKU restriction type.- Returns:
- the type value.
-
withType
Set the type property: The SKU restriction type.- Parameters:
type
- the type value to set.- Returns:
- the SkuRestriction object itself.
-
values
Get the values property: Restriction values.- Returns:
- the values value.
-
withValues
Set the values property: Restriction values.- Parameters:
values
- the values value to set.- Returns:
- the SkuRestriction object itself.
-
restrictionInfo
Get the restrictionInfo property: The restriction information.- Returns:
- the restrictionInfo value.
-
withRestrictionInfo
Set the restrictionInfo property: The restriction information.- Parameters:
restrictionInfo
- the restrictionInfo value to set.- Returns:
- the SkuRestriction object itself.
-
reasonCode
Get the reasonCode property: The SKU restriction reason code.- Returns:
- the reasonCode value.
-
withReasonCode
Set the reasonCode property: The SKU restriction reason code.- Parameters:
reasonCode
- the reasonCode value to set.- Returns:
- the SkuRestriction object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-