RedisConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. redis. models. RedisConfiguration
- com.
Implements
public final class RedisConfiguration
implements JsonSerializable<RedisConfiguration>
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.
Constructor Summary
Constructor | Description |
---|---|
RedisConfiguration() |
Creates an instance of Redis |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
aadEnabled()
Get the aad |
Map<String,String> |
additionalProperties()
Get the additional |
String |
aofBackupEnabled()
Get the aof |
String |
aofStorageConnectionString0()
Get the aof |
String |
aofStorageConnectionString1()
Get the aof |
String |
authnotrequired()
Get the authnotrequired property: Specifies whether the authentication is disabled. |
static
Redis |
fromJson(JsonReader jsonReader)
Reads an instance of Redis |
String |
maxclients()
Get the maxclients property: The max clients config. |
String |
maxfragmentationmemoryReserved()
Get the maxfragmentationmemory |
String |
maxmemoryDelta()
Get the maxmemory |
String |
maxmemoryPolicy()
Get the maxmemory |
String |
maxmemoryReserved()
Get the maxmemory |
String |
notifyKeyspaceEvents()
Get the notify |
String |
preferredDataArchiveAuthMethod()
Get the preferred |
String |
preferredDataPersistenceAuthMethod()
Get the preferred |
String |
rdbBackupEnabled()
Get the rdb |
String |
rdbBackupFrequency()
Get the rdb |
String |
rdbBackupMaxSnapshotCount()
Get the rdb |
String |
rdbStorageConnectionString()
Get the rdb |
String |
storageSubscriptionId()
Get the storage |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Redis |
withAadEnabled(String aadEnabled)
Set the aad |
Redis |
withAdditionalProperties(Map<String,String> additionalProperties)
Set the additional |
Redis |
withAofBackupEnabled(String aofBackupEnabled)
Set the aof |
Redis |
withAofStorageConnectionString0(String aofStorageConnectionString0)
Set the aof |
Redis |
withAofStorageConnectionString1(String aofStorageConnectionString1)
Set the aof |
Redis |
withAuthnotrequired(String authnotrequired)
Set the authnotrequired property: Specifies whether the authentication is disabled. |
Redis |
withMaxfragmentationmemoryReserved(String maxfragmentationmemoryReserved)
Set the maxfragmentationmemory |
Redis |
withMaxmemoryDelta(String maxmemoryDelta)
Set the maxmemory |
Redis |
withMaxmemoryPolicy(String maxmemoryPolicy)
Set the maxmemory |
Redis |
withMaxmemoryReserved(String maxmemoryReserved)
Set the maxmemory |
Redis |
withNotifyKeyspaceEvents(String notifyKeyspaceEvents)
Set the notify |
Redis |
withPreferredDataPersistenceAuthMethod(String preferredDataPersistenceAuthMethod)
Set the preferred |
Redis |
withRdbBackupEnabled(String rdbBackupEnabled)
Set the rdb |
Redis |
withRdbBackupFrequency(String rdbBackupFrequency)
Set the rdb |
Redis |
withRdbBackupMaxSnapshotCount(String rdbBackupMaxSnapshotCount)
Set the rdb |
Redis |
withRdbStorageConnectionString(String rdbStorageConnectionString)
Set the rdb |
Redis |
withStorageSubscriptionId(String storageSubscriptionId)
Set the storage |
String |
zonalConfiguration()
Get the zonal |
Methods inherited from java.lang.Object
Constructor Details
RedisConfiguration
public RedisConfiguration()
Creates an instance of RedisConfiguration class.
Method Details
aadEnabled
public String aadEnabled()
Get the aadEnabled property: Specifies whether AAD based authentication has been enabled or disabled for the cache.
Returns:
additionalProperties
public Map
Get the additionalProperties 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:
aofBackupEnabled
public String aofBackupEnabled()
Get the aofBackupEnabled property: Specifies whether the aof backup is enabled.
Returns:
aofStorageConnectionString0
public String aofStorageConnectionString0()
Get the aofStorageConnectionString0 property: First storage account connection string.
Returns:
aofStorageConnectionString1
public String aofStorageConnectionString1()
Get the aofStorageConnectionString1 property: Second storage account connection string.
Returns:
authnotrequired
public String authnotrequired()
Get the authnotrequired property: Specifies whether the authentication is disabled. Setting this property is highly discouraged from security point of view.
Returns:
fromJson
public static RedisConfiguration fromJson(JsonReader jsonReader)
Reads an instance of RedisConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
maxclients
public String maxclients()
Get the maxclients property: The max clients config.
Returns:
maxfragmentationmemoryReserved
public String maxfragmentationmemoryReserved()
Get the maxfragmentationmemoryReserved property: Value in megabytes reserved for fragmentation per shard.
Returns:
maxmemoryDelta
public String maxmemoryDelta()
Get the maxmemoryDelta property: Value in megabytes reserved for non-cache usage per shard e.g. failover.
Returns:
maxmemoryPolicy
public String maxmemoryPolicy()
Get the maxmemoryPolicy property: The eviction strategy used when your data won't fit within its memory limit.
Returns:
maxmemoryReserved
public String maxmemoryReserved()
Get the maxmemoryReserved property: Value in megabytes reserved for non-cache usage per shard e.g. failover.
Returns:
notifyKeyspaceEvents
public String notifyKeyspaceEvents()
Get the notifyKeyspaceEvents property: The keyspace events which should be monitored.
Returns:
preferredDataArchiveAuthMethod
public String preferredDataArchiveAuthMethod()
Get the preferredDataArchiveAuthMethod property: Preferred auth method to communicate to storage account used for data archive, specify SAS or ManagedIdentity, default value is SAS.
Returns:
preferredDataPersistenceAuthMethod
public String preferredDataPersistenceAuthMethod()
Get the preferredDataPersistenceAuthMethod property: Preferred auth method to communicate to storage account used for data persistence, specify SAS or ManagedIdentity, default value is SAS.
Returns:
rdbBackupEnabled
public String rdbBackupEnabled()
Get the rdbBackupEnabled property: Specifies whether the rdb backup is enabled.
Returns:
rdbBackupFrequency
public String rdbBackupFrequency()
Get the rdbBackupFrequency property: Specifies the frequency for creating rdb backup in minutes. Valid values: (15, 30, 60, 360, 720, 1440).
Returns:
rdbBackupMaxSnapshotCount
public String rdbBackupMaxSnapshotCount()
Get the rdbBackupMaxSnapshotCount property: Specifies the maximum number of snapshots for rdb backup.
Returns:
rdbStorageConnectionString
public String rdbStorageConnectionString()
Get the rdbStorageConnectionString property: The storage account connection string for storing rdb file.
Returns:
storageSubscriptionId
public String storageSubscriptionId()
Get the storageSubscriptionId property: SubscriptionId of the storage account for persistence (aof/rdb) using ManagedIdentity.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAadEnabled
public RedisConfiguration withAadEnabled(String aadEnabled)
Set the aadEnabled property: Specifies whether AAD based authentication has been enabled or disabled for the cache.
Parameters:
Returns:
withAdditionalProperties
public RedisConfiguration withAdditionalProperties(Map
Set the additionalProperties 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:
withAofBackupEnabled
public RedisConfiguration withAofBackupEnabled(String aofBackupEnabled)
Set the aofBackupEnabled property: Specifies whether the aof backup is enabled.
Parameters:
Returns:
withAofStorageConnectionString0
public RedisConfiguration withAofStorageConnectionString0(String aofStorageConnectionString0)
Set the aofStorageConnectionString0 property: First storage account connection string.
Parameters:
Returns:
withAofStorageConnectionString1
public RedisConfiguration withAofStorageConnectionString1(String aofStorageConnectionString1)
Set the aofStorageConnectionString1 property: Second storage account connection string.
Parameters:
Returns:
withAuthnotrequired
public RedisConfiguration withAuthnotrequired(String authnotrequired)
Set the authnotrequired property: Specifies whether the authentication is disabled. Setting this property is highly discouraged from security point of view.
Parameters:
Returns:
withMaxfragmentationmemoryReserved
public RedisConfiguration withMaxfragmentationmemoryReserved(String maxfragmentationmemoryReserved)
Set the maxfragmentationmemoryReserved property: Value in megabytes reserved for fragmentation per shard.
Parameters:
Returns:
withMaxmemoryDelta
public RedisConfiguration withMaxmemoryDelta(String maxmemoryDelta)
Set the maxmemoryDelta property: Value in megabytes reserved for non-cache usage per shard e.g. failover.
Parameters:
Returns:
withMaxmemoryPolicy
public RedisConfiguration withMaxmemoryPolicy(String maxmemoryPolicy)
Set the maxmemoryPolicy property: The eviction strategy used when your data won't fit within its memory limit.
Parameters:
Returns:
withMaxmemoryReserved
public RedisConfiguration withMaxmemoryReserved(String maxmemoryReserved)
Set the maxmemoryReserved property: Value in megabytes reserved for non-cache usage per shard e.g. failover.
Parameters:
Returns:
withNotifyKeyspaceEvents
public RedisConfiguration withNotifyKeyspaceEvents(String notifyKeyspaceEvents)
Set the notifyKeyspaceEvents property: The keyspace events which should be monitored.
Parameters:
Returns:
withPreferredDataPersistenceAuthMethod
public RedisConfiguration withPreferredDataPersistenceAuthMethod(String preferredDataPersistenceAuthMethod)
Set the preferredDataPersistenceAuthMethod property: Preferred auth method to communicate to storage account used for data persistence, specify SAS or ManagedIdentity, default value is SAS.
Parameters:
Returns:
withRdbBackupEnabled
public RedisConfiguration withRdbBackupEnabled(String rdbBackupEnabled)
Set the rdbBackupEnabled property: Specifies whether the rdb backup is enabled.
Parameters:
Returns:
withRdbBackupFrequency
public RedisConfiguration withRdbBackupFrequency(String rdbBackupFrequency)
Set the rdbBackupFrequency property: Specifies the frequency for creating rdb backup in minutes. Valid values: (15, 30, 60, 360, 720, 1440).
Parameters:
Returns:
withRdbBackupMaxSnapshotCount
public RedisConfiguration withRdbBackupMaxSnapshotCount(String rdbBackupMaxSnapshotCount)
Set the rdbBackupMaxSnapshotCount property: Specifies the maximum number of snapshots for rdb backup.
Parameters:
Returns:
withRdbStorageConnectionString
public RedisConfiguration withRdbStorageConnectionString(String rdbStorageConnectionString)
Set the rdbStorageConnectionString property: The storage account connection string for storing rdb file.
Parameters:
Returns:
withStorageSubscriptionId
public RedisConfiguration withStorageSubscriptionId(String storageSubscriptionId)
Set the storageSubscriptionId property: SubscriptionId of the storage account for persistence (aof/rdb) using ManagedIdentity.
Parameters:
Returns:
zonalConfiguration
public String zonalConfiguration()
Get the zonalConfiguration property: Zonal Configuration.
Returns:
Applies to
Azure SDK for Java