Class DatabaseUpdate
- java.lang.Object
-
- com.azure.resourcemanager.redisenterprise.models.DatabaseUpdate
-
public final class DatabaseUpdate extends Object
A partial update to the RedisEnterprise database.
-
-
Constructor Summary
Constructors Constructor Description DatabaseUpdate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Protocol
clientProtocol()
Get the clientProtocol property: Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols.ClusteringPolicy
clusteringPolicy()
Get the clusteringPolicy property: Clustering policy - default is OSSCluster.EvictionPolicy
evictionPolicy()
Get the evictionPolicy property: Redis eviction policy - default is VolatileLRU.DatabasePropertiesGeoReplication
geoReplication()
Get the geoReplication property: Optional set of properties to configure geo replication for this database.List<Module>
modules()
Get the modules property: Optional set of redis modules to enable in this database - modules can only be added at creation time.Persistence
persistence()
Get the persistence property: Persistence settings.Integer
port()
Get the port property: TCP port of the database endpoint.ProvisioningState
provisioningState()
Get the provisioningState property: Current provisioning status of the database.ResourceState
resourceState()
Get the resourceState property: Current resource status of the database.void
validate()
Validates the instance.DatabaseUpdate
withClientProtocol(Protocol clientProtocol)
Set the clientProtocol property: Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols.DatabaseUpdate
withClusteringPolicy(ClusteringPolicy clusteringPolicy)
Set the clusteringPolicy property: Clustering policy - default is OSSCluster.DatabaseUpdate
withEvictionPolicy(EvictionPolicy evictionPolicy)
Set the evictionPolicy property: Redis eviction policy - default is VolatileLRU.DatabaseUpdate
withGeoReplication(DatabasePropertiesGeoReplication geoReplication)
Set the geoReplication property: Optional set of properties to configure geo replication for this database.DatabaseUpdate
withModules(List<Module> modules)
Set the modules property: Optional set of redis modules to enable in this database - modules can only be added at creation time.DatabaseUpdate
withPersistence(Persistence persistence)
Set the persistence property: Persistence settings.DatabaseUpdate
withPort(Integer port)
Set the port property: TCP port of the database endpoint.
-
-
-
Method Detail
-
clientProtocol
public Protocol clientProtocol()
Get the clientProtocol property: Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.- Returns:
- the clientProtocol value.
-
withClientProtocol
public DatabaseUpdate withClientProtocol(Protocol clientProtocol)
Set the clientProtocol property: Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.- Parameters:
clientProtocol
- the clientProtocol value to set.- Returns:
- the DatabaseUpdate object itself.
-
port
public Integer port()
Get the port property: TCP port of the database endpoint. Specified at create time. Defaults to an available port.- Returns:
- the port value.
-
withPort
public DatabaseUpdate withPort(Integer port)
Set the port property: TCP port of the database endpoint. Specified at create time. Defaults to an available port.- Parameters:
port
- the port value to set.- Returns:
- the DatabaseUpdate object itself.
-
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: Current provisioning status of the database.- Returns:
- the provisioningState value.
-
resourceState
public ResourceState resourceState()
Get the resourceState property: Current resource status of the database.- Returns:
- the resourceState value.
-
clusteringPolicy
public ClusteringPolicy clusteringPolicy()
Get the clusteringPolicy property: Clustering policy - default is OSSCluster. Specified at create time.- Returns:
- the clusteringPolicy value.
-
withClusteringPolicy
public DatabaseUpdate withClusteringPolicy(ClusteringPolicy clusteringPolicy)
Set the clusteringPolicy property: Clustering policy - default is OSSCluster. Specified at create time.- Parameters:
clusteringPolicy
- the clusteringPolicy value to set.- Returns:
- the DatabaseUpdate object itself.
-
evictionPolicy
public EvictionPolicy evictionPolicy()
Get the evictionPolicy property: Redis eviction policy - default is VolatileLRU.- Returns:
- the evictionPolicy value.
-
withEvictionPolicy
public DatabaseUpdate withEvictionPolicy(EvictionPolicy evictionPolicy)
Set the evictionPolicy property: Redis eviction policy - default is VolatileLRU.- Parameters:
evictionPolicy
- the evictionPolicy value to set.- Returns:
- the DatabaseUpdate object itself.
-
persistence
public Persistence persistence()
Get the persistence property: Persistence settings.- Returns:
- the persistence value.
-
withPersistence
public DatabaseUpdate withPersistence(Persistence persistence)
Set the persistence property: Persistence settings.- Parameters:
persistence
- the persistence value to set.- Returns:
- the DatabaseUpdate object itself.
-
modules
public List<Module> modules()
Get the modules property: Optional set of redis modules to enable in this database - modules can only be added at creation time.- Returns:
- the modules value.
-
withModules
public DatabaseUpdate withModules(List<Module> modules)
Set the modules property: Optional set of redis modules to enable in this database - modules can only be added at creation time.- Parameters:
modules
- the modules value to set.- Returns:
- the DatabaseUpdate object itself.
-
geoReplication
public DatabasePropertiesGeoReplication geoReplication()
Get the geoReplication property: Optional set of properties to configure geo replication for this database.- Returns:
- the geoReplication value.
-
withGeoReplication
public DatabaseUpdate withGeoReplication(DatabasePropertiesGeoReplication geoReplication)
Set the geoReplication property: Optional set of properties to configure geo replication for this database.- Parameters:
geoReplication
- the geoReplication value to set.- Returns:
- the DatabaseUpdate object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-