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.implementation; import java.util.Map; import com.microsoft.azure.management.redis.TlsVersion; import com.microsoft.azure.management.redis.Sku; import com.microsoft.azure.management.redis.ProvisioningState; import java.util.List; import com.microsoft.azure.management.redis.RedisLinkedServer; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten;
A single Redis item in List or Get Operation.
/** * A single Redis item in List or Get Operation. */
@JsonFlatten public class RedisResourceInner extends TrackedResourceInner {
All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc.
/** * All Redis Settings. Few possible keys: * rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value * etc. */
@JsonProperty(value = "properties.redisConfiguration") private Map<String, String> redisConfiguration;
Specifies whether the non-ssl Redis server port (6379) is enabled.
/** * Specifies whether the non-ssl Redis server port (6379) is enabled. */
@JsonProperty(value = "properties.enableNonSslPort") private Boolean enableNonSslPort;
A dictionary of tenant settings.
/** * A dictionary of tenant settings. */
@JsonProperty(value = "properties.tenantSettings") private Map<String, String> tenantSettings;
The number of shards to be created on a Premium Cluster Cache.
/** * The number of shards to be created on a Premium Cluster Cache. */
@JsonProperty(value = "properties.shardCount") private Integer shardCount;
Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2'). Possible values include: '1.0', '1.1', '1.2'.
/** * Optional: requires clients to use a specified TLS version (or higher) to * connect (e,g, '1.0', '1.1', '1.2'). Possible values include: '1.0', * '1.1', '1.2'. */
@JsonProperty(value = "properties.minimumTlsVersion") private TlsVersion minimumTlsVersion;
The SKU of the Redis cache to deploy.
/** * The SKU of the Redis cache to deploy. */
@JsonProperty(value = "properties.sku", required = true) private Sku sku;
The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1.
/** * The full resource ID of a subnet in a virtual network to deploy the * Redis cache in. Example format: * /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1. */
@JsonProperty(value = "properties.subnetId") private String subnetId;
Static IP address. Required when deploying a Redis cache inside an existing Azure Virtual Network.
/** * Static IP address. Required when deploying a Redis cache inside an * existing Azure Virtual Network. */
@JsonProperty(value = "properties.staticIP") private String staticIP;
Redis version.
/** * Redis version. */
@JsonProperty(value = "properties.redisVersion", access = JsonProperty.Access.WRITE_ONLY) private String redisVersion;
Redis instance provisioning status. Possible values include: 'Creating', 'Deleting', 'Disabled', 'Failed', 'Linking', 'Provisioning', 'RecoveringScaleFailure', 'Scaling', 'Succeeded', 'Unlinking', 'Unprovisioning', 'Updating'.
/** * Redis instance provisioning status. Possible values include: 'Creating', * 'Deleting', 'Disabled', 'Failed', 'Linking', 'Provisioning', * 'RecoveringScaleFailure', 'Scaling', 'Succeeded', 'Unlinking', * 'Unprovisioning', 'Updating'. */
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ProvisioningState provisioningState;
Redis host name.
/** * Redis host name. */
@JsonProperty(value = "properties.hostName", access = JsonProperty.Access.WRITE_ONLY) private String hostName;
Redis non-SSL port.
/** * Redis non-SSL port. */
@JsonProperty(value = "properties.port", access = JsonProperty.Access.WRITE_ONLY) private Integer port;
Redis SSL port.
/** * Redis SSL port. */
@JsonProperty(value = "properties.sslPort", access = JsonProperty.Access.WRITE_ONLY) private Integer sslPort;
The keys of the Redis cache - not set if this object is not the response to Create or Update redis cache.
/** * The keys of the Redis cache - not set if this object is not the response * to Create or Update redis cache. */
@JsonProperty(value = "properties.accessKeys", access = JsonProperty.Access.WRITE_ONLY) private RedisAccessKeysInner accessKeys;
List of the linked servers associated with the cache.
/** * List of the linked servers associated with the cache. */
@JsonProperty(value = "properties.linkedServers", access = JsonProperty.Access.WRITE_ONLY) private List<RedisLinkedServer> linkedServers;
A list of availability zones denoting where the resource needs to come from.
/** * A list of availability zones denoting where the resource needs to come * from. */
@JsonProperty(value = "zones") private List<String> zones;
Get the redisConfiguration value.
Returns:the redisConfiguration value
/** * Get the redisConfiguration value. * * @return the redisConfiguration value */
public Map<String, String> redisConfiguration() { return this.redisConfiguration; }
Set the redisConfiguration value.
Params:
  • redisConfiguration – the redisConfiguration value to set
Returns:the RedisResourceInner object itself.
/** * Set the redisConfiguration value. * * @param redisConfiguration the redisConfiguration value to set * @return the RedisResourceInner object itself. */
public RedisResourceInner withRedisConfiguration(Map<String, String> redisConfiguration) { this.redisConfiguration = redisConfiguration; return this; }
Get the enableNonSslPort value.
Returns:the enableNonSslPort value
/** * Get the enableNonSslPort value. * * @return the enableNonSslPort value */
public Boolean enableNonSslPort() { return this.enableNonSslPort; }
Set the enableNonSslPort value.
Params:
  • enableNonSslPort – the enableNonSslPort value to set
Returns:the RedisResourceInner object itself.
/** * Set the enableNonSslPort value. * * @param enableNonSslPort the enableNonSslPort value to set * @return the RedisResourceInner object itself. */
public RedisResourceInner withEnableNonSslPort(Boolean enableNonSslPort) { this.enableNonSslPort = enableNonSslPort; return this; }
Get the tenantSettings value.
Returns:the tenantSettings value
/** * Get the tenantSettings value. * * @return the tenantSettings value */
public Map<String, String> tenantSettings() { return this.tenantSettings; }
Set the tenantSettings value.
Params:
  • tenantSettings – the tenantSettings value to set
Returns:the RedisResourceInner object itself.
/** * Set the tenantSettings value. * * @param tenantSettings the tenantSettings value to set * @return the RedisResourceInner object itself. */
public RedisResourceInner withTenantSettings(Map<String, String> tenantSettings) { this.tenantSettings = tenantSettings; return this; }
Get the shardCount value.
Returns:the shardCount value
/** * Get the shardCount value. * * @return the shardCount value */
public Integer shardCount() { return this.shardCount; }
Set the shardCount value.
Params:
  • shardCount – the shardCount value to set
Returns:the RedisResourceInner object itself.
/** * Set the shardCount value. * * @param shardCount the shardCount value to set * @return the RedisResourceInner object itself. */
public RedisResourceInner withShardCount(Integer shardCount) { this.shardCount = shardCount; return this; }
Get the minimumTlsVersion value.
Returns:the minimumTlsVersion value
/** * Get the minimumTlsVersion value. * * @return the minimumTlsVersion value */
public TlsVersion minimumTlsVersion() { return this.minimumTlsVersion; }
Set the minimumTlsVersion value.
Params:
  • minimumTlsVersion – the minimumTlsVersion value to set
Returns:the RedisResourceInner object itself.
/** * Set the minimumTlsVersion value. * * @param minimumTlsVersion the minimumTlsVersion value to set * @return the RedisResourceInner object itself. */
public RedisResourceInner withMinimumTlsVersion(TlsVersion minimumTlsVersion) { this.minimumTlsVersion = minimumTlsVersion; return this; }
Get the sku value.
Returns:the sku value
/** * Get the sku value. * * @return the sku value */
public Sku sku() { return this.sku; }
Set the sku value.
Params:
  • sku – the sku value to set
Returns:the RedisResourceInner object itself.
/** * Set the sku value. * * @param sku the sku value to set * @return the RedisResourceInner object itself. */
public RedisResourceInner withSku(Sku sku) { this.sku = sku; return this; }
Get the subnetId value.
Returns:the subnetId value
/** * Get the subnetId value. * * @return the subnetId value */
public String subnetId() { return this.subnetId; }
Set the subnetId value.
Params:
  • subnetId – the subnetId value to set
Returns:the RedisResourceInner object itself.
/** * Set the subnetId value. * * @param subnetId the subnetId value to set * @return the RedisResourceInner object itself. */
public RedisResourceInner withSubnetId(String subnetId) { this.subnetId = subnetId; return this; }
Get the staticIP value.
Returns:the staticIP value
/** * Get the staticIP value. * * @return the staticIP value */
public String staticIP() { return this.staticIP; }
Set the staticIP value.
Params:
  • staticIP – the staticIP value to set
Returns:the RedisResourceInner object itself.
/** * Set the staticIP value. * * @param staticIP the staticIP value to set * @return the RedisResourceInner object itself. */
public RedisResourceInner withStaticIP(String staticIP) { this.staticIP = staticIP; return this; }
Get the redisVersion value.
Returns:the redisVersion value
/** * Get the redisVersion value. * * @return the redisVersion value */
public String redisVersion() { return this.redisVersion; }
Get the provisioningState value.
Returns:the provisioningState value
/** * Get the provisioningState value. * * @return the provisioningState value */
public ProvisioningState provisioningState() { return this.provisioningState; }
Get the hostName value.
Returns:the hostName value
/** * Get the hostName value. * * @return the hostName value */
public String hostName() { return this.hostName; }
Get the port value.
Returns:the port value
/** * Get the port value. * * @return the port value */
public Integer port() { return this.port; }
Get the sslPort value.
Returns:the sslPort value
/** * Get the sslPort value. * * @return the sslPort value */
public Integer sslPort() { return this.sslPort; }
Get the accessKeys value.
Returns:the accessKeys value
/** * Get the accessKeys value. * * @return the accessKeys value */
public RedisAccessKeysInner accessKeys() { return this.accessKeys; }
Get the linkedServers value.
Returns:the linkedServers value
/** * Get the linkedServers value. * * @return the linkedServers value */
public List<RedisLinkedServer> linkedServers() { return this.linkedServers; }
Get the zones value.
Returns:the zones value
/** * Get the zones value. * * @return the zones value */
public List<String> zones() { return this.zones; }
Set the zones value.
Params:
  • zones – the zones value to set
Returns:the RedisResourceInner object itself.
/** * Set the zones value. * * @param zones the zones value to set * @return the RedisResourceInner object itself. */
public RedisResourceInner withZones(List<String> zones) { this.zones = zones; return this; } }