RedisResourceInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. redis. fluent. models. RedisResourceInner
- com.
- com.
- com.
public final class RedisResourceInner
extends Resource
A single Redis item in List or Get Operation.
Constructor Summary
Constructor | Description |
---|---|
RedisResourceInner() |
Creates an instance of Redis |
Method Summary
Modifier and Type | Method and Description |
---|---|
Redis |
accessKeys()
Get the access |
Boolean |
disableAccessKeyAuthentication()
Get the disable |
Boolean |
enableNonSslPort()
Get the enable |
static
Redis |
fromJson(JsonReader jsonReader)
Reads an instance of Redis |
String |
hostname()
Get the hostname property: Redis host name. |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
Managed |
identity()
Get the identity property: The identity of the resource. |
List<Redis |
instances()
Get the instances property: List of the Redis instances associated with the cache. |
List<Redis |
linkedServers()
Get the linked |
Tls |
minimumTlsVersion()
Get the minimum |
String |
name()
Get the name property: The name of the resource. |
Integer |
port()
Get the port property: Redis non-SSL port. |
List<Private |
privateEndpointConnections()
Get the private |
Provisioning |
provisioningState()
Get the provisioning |
Public |
publicNetworkAccess()
Get the public |
Redis |
redisConfiguration()
Get the redis |
String |
redisVersion()
Get the redis |
Integer |
replicasPerMaster()
Get the replicas |
Integer |
replicasPerPrimary()
Get the replicas |
Integer |
shardCount()
Get the shard |
Sku |
sku()
Get the sku property: The SKU of the Redis cache to deploy. |
Integer |
sslPort()
Get the ssl |
String |
staticIp()
Get the static |
String |
subnetId()
Get the subnet |
Map<String,String> |
tenantSettings()
Get the tenant |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
Update |
updateChannel()
Get the update |
void |
validate()
Validates the instance. |
Redis |
withDisableAccessKeyAuthentication(Boolean disableAccessKeyAuthentication)
Set the disable |
Redis |
withEnableNonSslPort(Boolean enableNonSslPort)
Set the enable |
Redis |
withIdentity(ManagedServiceIdentity identity)
Set the identity property: The identity of the resource. |
Redis |
withLocation(String location) |
Redis |
withMinimumTlsVersion(TlsVersion minimumTlsVersion)
Set the minimum |
Redis |
withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)
Set the public |
Redis |
withRedisConfiguration(RedisConfiguration redisConfiguration)
Set the redis |
Redis |
withRedisVersion(String redisVersion)
Set the redis |
Redis |
withReplicasPerMaster(Integer replicasPerMaster)
Set the replicas |
Redis |
withReplicasPerPrimary(Integer replicasPerPrimary)
Set the replicas |
Redis |
withShardCount(Integer shardCount)
Set the shard |
Redis |
withSku(Sku sku)
Set the sku property: The SKU of the Redis cache to deploy. |
Redis |
withStaticIp(String staticIp)
Set the static |
Redis |
withSubnetId(String subnetId)
Set the subnet |
Redis |
withTags(Map<String,String> tags) |
Redis |
withTenantSettings(Map<String,String> tenantSettings)
Set the tenant |
Redis |
withUpdateChannel(UpdateChannel updateChannel)
Set the update |
Redis |
withZones(List<String> zones)
Set the zones property: A list of availability zones denoting where the resource needs to come from. |
List<String> |
zones()
Get the zones property: A list of availability zones denoting where the resource needs to come from. |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
RedisResourceInner
public RedisResourceInner()
Creates an instance of RedisResourceInner class.
Method Details
accessKeys
public RedisAccessKeysInner accessKeys()
Get the accessKeys property: The keys of the Redis cache - not set if this object is not the response to Create or Update redis cache.
Returns:
disableAccessKeyAuthentication
public Boolean disableAccessKeyAuthentication()
Get the disableAccessKeyAuthentication property: Authentication to Redis through access keys is disabled when set as true. Default value is false.
Returns:
enableNonSslPort
public Boolean enableNonSslPort()
Get the enableNonSslPort property: Specifies whether the non-ssl Redis server port (6379) is enabled.
Returns:
fromJson
public static RedisResourceInner fromJson(JsonReader jsonReader)
Reads an instance of RedisResourceInner from the JsonReader.
Parameters:
Returns:
Throws:
hostname
public String hostname()
Get the hostname property: Redis host name.
Returns:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
RedisResourceInner.id()Returns:
identity
public ManagedServiceIdentity identity()
Get the identity property: The identity of the resource.
Returns:
instances
public List
Get the instances property: List of the Redis instances associated with the cache.
Returns:
linkedServers
public List
Get the linkedServers property: List of the linked servers associated with the cache.
Returns:
minimumTlsVersion
public TlsVersion minimumTlsVersion()
Get the minimumTlsVersion property: Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2').
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
RedisResourceInner.name()Returns:
port
public Integer port()
Get the port property: Redis non-SSL port.
Returns:
privateEndpointConnections
public List
Get the privateEndpointConnections property: List of private endpoint connection associated with the specified redis cache.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: Redis instance provisioning status.
Returns:
publicNetworkAccess
public PublicNetworkAccess publicNetworkAccess()
Get the publicNetworkAccess property: Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'.
Returns:
redisConfiguration
public RedisConfiguration redisConfiguration()
Get the redisConfiguration property: All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta, maxmemory-policy,notify-keyspace-events, aof-backup-enabled, aof-storage-connection-string-0, aof-storage-connection-string-1 etc.
Returns:
redisVersion
public String redisVersion()
Get the redisVersion property: Redis version. This should be in the form 'major[.minor]' (only 'major' is required) or the value 'latest' which refers to the latest stable Redis version that is available. Supported versions: 4.0, 6.0 (latest). Default value is 'latest'.
Returns:
replicasPerMaster
public Integer replicasPerMaster()
Get the replicasPerMaster property: The number of replicas to be created per primary.
Returns:
replicasPerPrimary
public Integer replicasPerPrimary()
Get the replicasPerPrimary property: The number of replicas to be created per primary.
Returns:
shardCount
public Integer shardCount()
Get the shardCount property: The number of shards to be created on a Premium Cluster Cache.
Returns:
sku
public Sku sku()
Get the sku property: The SKU of the Redis cache to deploy.
Returns:
sslPort
public Integer sslPort()
Get the sslPort property: Redis SSL port.
Returns:
staticIp
public String staticIp()
Get the staticIp property: Static IP address. Optionally, may be specified when deploying a Redis cache inside an existing Azure Virtual Network; auto assigned by default.
Returns:
subnetId
public String subnetId()
Get the subnetId property: The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1.
Returns:
tenantSettings
public Map
Get the tenantSettings property: A dictionary of tenant settings.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RedisResourceInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
RedisResourceInner.type()Returns:
updateChannel
public UpdateChannel updateChannel()
Get the updateChannel property: Optional: Specifies the update channel for the monthly Redis updates your Redis Cache will receive. Caches using 'Preview' update channel get latest Redis updates at least 4 weeks ahead of 'Stable' channel caches. Default value is 'Stable'.
Returns:
validate
public void validate()
Validates the instance.
withDisableAccessKeyAuthentication
public RedisResourceInner withDisableAccessKeyAuthentication(Boolean disableAccessKeyAuthentication)
Set the disableAccessKeyAuthentication property: Authentication to Redis through access keys is disabled when set as true. Default value is false.
Parameters:
Returns:
withEnableNonSslPort
public RedisResourceInner withEnableNonSslPort(Boolean enableNonSslPort)
Set the enableNonSslPort property: Specifies whether the non-ssl Redis server port (6379) is enabled.
Parameters:
Returns:
withIdentity
public RedisResourceInner withIdentity(ManagedServiceIdentity identity)
Set the identity property: The identity of the resource.
Parameters:
Returns:
withLocation
public RedisResourceInner withLocation(String location)
Overrides:
RedisResourceInner.withLocation(String location)Parameters:
withMinimumTlsVersion
public RedisResourceInner withMinimumTlsVersion(TlsVersion minimumTlsVersion)
Set the minimumTlsVersion property: Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2').
Parameters:
Returns:
withPublicNetworkAccess
public RedisResourceInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)
Set the publicNetworkAccess property: Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'.
Parameters:
Returns:
withRedisConfiguration
public RedisResourceInner withRedisConfiguration(RedisConfiguration redisConfiguration)
Set the redisConfiguration property: All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta, maxmemory-policy,notify-keyspace-events, aof-backup-enabled, aof-storage-connection-string-0, aof-storage-connection-string-1 etc.
Parameters:
Returns:
withRedisVersion
public RedisResourceInner withRedisVersion(String redisVersion)
Set the redisVersion property: Redis version. This should be in the form 'major[.minor]' (only 'major' is required) or the value 'latest' which refers to the latest stable Redis version that is available. Supported versions: 4.0, 6.0 (latest). Default value is 'latest'.
Parameters:
Returns:
withReplicasPerMaster
public RedisResourceInner withReplicasPerMaster(Integer replicasPerMaster)
Set the replicasPerMaster property: The number of replicas to be created per primary.
Parameters:
Returns:
withReplicasPerPrimary
public RedisResourceInner withReplicasPerPrimary(Integer replicasPerPrimary)
Set the replicasPerPrimary property: The number of replicas to be created per primary.
Parameters:
Returns:
withShardCount
public RedisResourceInner withShardCount(Integer shardCount)
Set the shardCount property: The number of shards to be created on a Premium Cluster Cache.
Parameters:
Returns:
withSku
public RedisResourceInner withSku(Sku sku)
Set the sku property: The SKU of the Redis cache to deploy.
Parameters:
Returns:
withStaticIp
public RedisResourceInner withStaticIp(String staticIp)
Set the staticIp property: Static IP address. Optionally, may be specified when deploying a Redis cache inside an existing Azure Virtual Network; auto assigned by default.
Parameters:
Returns:
withSubnetId
public RedisResourceInner withSubnetId(String subnetId)
Set the subnetId property: The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1.
Parameters:
Returns:
withTags
public RedisResourceInner withTags(Map
Overrides:
RedisResourceInner.withTags(Map<String,String> tags)Parameters:
withTenantSettings
public RedisResourceInner withTenantSettings(Map
Set the tenantSettings property: A dictionary of tenant settings.
Parameters:
Returns:
withUpdateChannel
public RedisResourceInner withUpdateChannel(UpdateChannel updateChannel)
Set the updateChannel property: Optional: Specifies the update channel for the monthly Redis updates your Redis Cache will receive. Caches using 'Preview' update channel get latest Redis updates at least 4 weeks ahead of 'Stable' channel caches. Default value is 'Stable'.
Parameters:
Returns:
withZones
public RedisResourceInner withZones(List
Set the zones property: A list of availability zones denoting where the resource needs to come from.
Parameters:
Returns:
zones
public List
Get the zones property: A list of availability zones denoting where the resource needs to come from.
Returns:
Applies to
Azure SDK for Java