DatabaseInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. redisenterprise. fluent. models. DatabaseInner
- com.
- com.
public final class DatabaseInner
extends ProxyResource
Describes a database on the RedisEnterprise cluster.
Constructor Summary
Constructor | Description |
---|---|
DatabaseInner() |
Creates an instance of Database |
Method Summary
Modifier and Type | Method and Description |
---|---|
Protocol |
clientProtocol()
Get the client |
Clustering |
clusteringPolicy()
Get the clustering |
Eviction |
evictionPolicy()
Get the eviction |
Database |
geoReplication()
Get the geo |
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. |
Provisioning |
provisioningState()
Get the provisioning |
Resource |
resourceState()
Get the resource |
void |
validate()
Validates the instance. |
Database |
withClientProtocol(Protocol clientProtocol)
Set the client |
Database |
withClusteringPolicy(ClusteringPolicy clusteringPolicy)
Set the clustering |
Database |
withEvictionPolicy(EvictionPolicy evictionPolicy)
Set the eviction |
Database |
withGeoReplication(DatabasePropertiesGeoReplication geoReplication)
Set the geo |
Database |
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. |
Database |
withPersistence(Persistence persistence)
Set the persistence property: Persistence settings. |
Database |
withPort(Integer port)
Set the port property: TCP port of the database endpoint. |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
DatabaseInner
public DatabaseInner()
Creates an instance of DatabaseInner class.
Method Details
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:
clusteringPolicy
public ClusteringPolicy clusteringPolicy()
Get the clusteringPolicy property: Clustering policy - default is OSSCluster. Specified at create time.
Returns:
evictionPolicy
public EvictionPolicy evictionPolicy()
Get the evictionPolicy property: Redis eviction policy - default is VolatileLRU.
Returns:
geoReplication
public DatabasePropertiesGeoReplication geoReplication()
Get the geoReplication property: Optional set of properties to configure geo replication for this database.
Returns:
modules
public List
Get the modules property: Optional set of redis modules to enable in this database - modules can only be added at creation time.
Returns:
persistence
public Persistence persistence()
Get the persistence property: Persistence settings.
Returns:
port
public Integer port()
Get the port property: TCP port of the database endpoint. Specified at create time. Defaults to an available port.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: Current provisioning status of the database.
Returns:
resourceState
public ResourceState resourceState()
Get the resourceState property: Current resource status of the database.
Returns:
validate
public void validate()
Validates the instance.
withClientProtocol
public DatabaseInner 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:
Returns:
withClusteringPolicy
public DatabaseInner withClusteringPolicy(ClusteringPolicy clusteringPolicy)
Set the clusteringPolicy property: Clustering policy - default is OSSCluster. Specified at create time.
Parameters:
Returns:
withEvictionPolicy
public DatabaseInner withEvictionPolicy(EvictionPolicy evictionPolicy)
Set the evictionPolicy property: Redis eviction policy - default is VolatileLRU.
Parameters:
Returns:
withGeoReplication
public DatabaseInner withGeoReplication(DatabasePropertiesGeoReplication geoReplication)
Set the geoReplication property: Optional set of properties to configure geo replication for this database.
Parameters:
Returns:
withModules
public DatabaseInner withModules(List
Set the modules property: Optional set of redis modules to enable in this database - modules can only be added at creation time.
Parameters:
Returns:
withPersistence
public DatabaseInner withPersistence(Persistence persistence)
Set the persistence property: Persistence settings.
Parameters:
Returns:
withPort
public DatabaseInner withPort(Integer port)
Set the port property: TCP port of the database endpoint. Specified at create time. Defaults to an available port.
Parameters:
Returns:
Applies to
Azure SDK for Java