Freigeben über


DatabaseInner Class

public final class DatabaseInner
extends ProxyResource

Describes a database on the RedisEnterprise cluster.

Constructor Summary

Constructor Description
DatabaseInner()

Creates an instance of DatabaseInner class.

Method Summary

Modifier and Type Method and 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.

DatabaseInner withClientProtocol(Protocol clientProtocol)

Set the clientProtocol property: Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols.

DatabaseInner withClusteringPolicy(ClusteringPolicy clusteringPolicy)

Set the clusteringPolicy property: Clustering policy - default is OSSCluster.

DatabaseInner withEvictionPolicy(EvictionPolicy evictionPolicy)

Set the evictionPolicy property: Redis eviction policy - default is VolatileLRU.

DatabaseInner withGeoReplication(DatabasePropertiesGeoReplication geoReplication)

Set the geoReplication property: Optional set of properties to configure geo replication for this database.

DatabaseInner 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.

DatabaseInner withPersistence(Persistence persistence)

Set the persistence property: Persistence settings.

DatabaseInner 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:

the clientProtocol value.

clusteringPolicy

public ClusteringPolicy clusteringPolicy()

Get the clusteringPolicy property: Clustering policy - default is OSSCluster. Specified at create time.

Returns:

the clusteringPolicy value.

evictionPolicy

public EvictionPolicy evictionPolicy()

Get the evictionPolicy property: Redis eviction policy - default is VolatileLRU.

Returns:

the evictionPolicy value.

geoReplication

public DatabasePropertiesGeoReplication geoReplication()

Get the geoReplication property: Optional set of properties to configure geo replication for this database.

Returns:

the geoReplication value.

modules

public List 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.

persistence

public Persistence persistence()

Get the persistence property: Persistence settings.

Returns:

the persistence value.

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.

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.

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:

clientProtocol - the clientProtocol value to set.

Returns:

the DatabaseInner object itself.

withClusteringPolicy

public DatabaseInner 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 DatabaseInner object itself.

withEvictionPolicy

public DatabaseInner withEvictionPolicy(EvictionPolicy evictionPolicy)

Set the evictionPolicy property: Redis eviction policy - default is VolatileLRU.

Parameters:

evictionPolicy - the evictionPolicy value to set.

Returns:

the DatabaseInner object itself.

withGeoReplication

public DatabaseInner 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 DatabaseInner object itself.

withModules

public DatabaseInner withModules(List 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 DatabaseInner object itself.

withPersistence

public DatabaseInner withPersistence(Persistence persistence)

Set the persistence property: Persistence settings.

Parameters:

persistence - the persistence value to set.

Returns:

the DatabaseInner object itself.

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:

port - the port value to set.

Returns:

the DatabaseInner object itself.

Applies to