Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.compute;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
Describes scaling information of a SKU.
/**
* Describes scaling information of a SKU.
*/
public class ResourceSkuRestrictions {
The type of restrictions. Possible values include: 'Location', 'Zone'.
/**
* The type of restrictions. Possible values include: 'Location', 'Zone'.
*/
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private ResourceSkuRestrictionsType type;
The value of restrictions. If the restriction type is set to location.
This would be different locations where the SKU is restricted.
/**
* The value of restrictions. If the restriction type is set to location.
* This would be different locations where the SKU is restricted.
*/
@JsonProperty(value = "values", access = JsonProperty.Access.WRITE_ONLY)
private List<String> values;
The information about the restriction where the SKU cannot be used.
/**
* The information about the restriction where the SKU cannot be used.
*/
@JsonProperty(value = "restrictionInfo", access = JsonProperty.Access.WRITE_ONLY)
private ResourceSkuRestrictionInfo restrictionInfo;
The reason for restriction. Possible values include: 'QuotaId',
'NotAvailableForSubscription'.
/**
* The reason for restriction. Possible values include: 'QuotaId',
* 'NotAvailableForSubscription'.
*/
@JsonProperty(value = "reasonCode", access = JsonProperty.Access.WRITE_ONLY)
private ResourceSkuRestrictionsReasonCode reasonCode;
Get the type of restrictions. Possible values include: 'Location', 'Zone'.
Returns: the type value
/**
* Get the type of restrictions. Possible values include: 'Location', 'Zone'.
*
* @return the type value
*/
public ResourceSkuRestrictionsType type() {
return this.type;
}
Get 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
/**
* Get the value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted.
*
* @return the values value
*/
public List<String> values() {
return this.values;
}
Get the information about the restriction where the SKU cannot be used.
Returns: the restrictionInfo value
/**
* Get the information about the restriction where the SKU cannot be used.
*
* @return the restrictionInfo value
*/
public ResourceSkuRestrictionInfo restrictionInfo() {
return this.restrictionInfo;
}
Get the reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription'.
Returns: the reasonCode value
/**
* Get the reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription'.
*
* @return the reasonCode value
*/
public ResourceSkuRestrictionsReasonCode reasonCode() {
return this.reasonCode;
}
}