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.redis;
import com.fasterxml.jackson.annotation.JsonProperty;
SKU parameters supplied to the create Redis operation.
/**
* SKU parameters supplied to the create Redis operation.
*/
public class Sku {
The type of Redis cache to deploy. Valid values: (Basic, Standard,
Premium). Possible values include: 'Basic', 'Standard', 'Premium'.
/**
* The type of Redis cache to deploy. Valid values: (Basic, Standard,
* Premium). Possible values include: 'Basic', 'Standard', 'Premium'.
*/
@JsonProperty(value = "name", required = true)
private SkuName name;
The SKU family to use. Valid values: (C, P). (C = Basic/Standard, P =
Premium). Possible values include: 'C', 'P'.
/**
* The SKU family to use. Valid values: (C, P). (C = Basic/Standard, P =
* Premium). Possible values include: 'C', 'P'.
*/
@JsonProperty(value = "family", required = true)
private SkuFamily family;
The size of the Redis cache to deploy. Valid values: for C
(Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium) family
(1, 2, 3, 4).
/**
* The size of the Redis cache to deploy. Valid values: for C
* (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium) family
* (1, 2, 3, 4).
*/
@JsonProperty(value = "capacity", required = true)
private int capacity;
Get the name value.
Returns: the name value
/**
* Get the name value.
*
* @return the name value
*/
public SkuName name() {
return this.name;
}
Set the name value.
Params: - name – the name value to set
Returns: the Sku object itself.
/**
* Set the name value.
*
* @param name the name value to set
* @return the Sku object itself.
*/
public Sku withName(SkuName name) {
this.name = name;
return this;
}
Get the family value.
Returns: the family value
/**
* Get the family value.
*
* @return the family value
*/
public SkuFamily family() {
return this.family;
}
Set the family value.
Params: - family – the family value to set
Returns: the Sku object itself.
/**
* Set the family value.
*
* @param family the family value to set
* @return the Sku object itself.
*/
public Sku withFamily(SkuFamily family) {
this.family = family;
return this;
}
Get the capacity value.
Returns: the capacity value
/**
* Get the capacity value.
*
* @return the capacity value
*/
public int capacity() {
return this.capacity;
}
Set the capacity value.
Params: - capacity – the capacity value to set
Returns: the Sku object itself.
/**
* Set the capacity value.
*
* @param capacity the capacity value to set
* @return the Sku object itself.
*/
public Sku withCapacity(int capacity) {
this.capacity = capacity;
return this;
}
}