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 Redis Enterprise cluster.
Constructor Summary
| Constructor | Description |
|---|---|
| DatabaseInner() |
Creates an instance of Database |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Access |
accessKeysAuthentication()
Get the access |
| Protocol |
clientProtocol()
Get the client |
|
Clustering |
clusteringPolicy()
Get the clustering |
|
Defer |
deferUpgrade()
Get the defer |
|
Eviction |
evictionPolicy()
Get the eviction |
|
static
Database |
fromJson(JsonReader jsonReader)
Reads an instance of Database |
|
Database |
geoReplication()
Get the geo |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| 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. |
| String |
name()
Get the name property: The name of the resource. |
| 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 |
| String |
redisVersion()
Get the redis |
|
Resource |
resourceState()
Get the resource |
|
System |
systemData()
Get the system |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Database |
withAccessKeysAuthentication(AccessKeysAuthentication accessKeysAuthentication)
Set the access |
|
Database |
withClientProtocol(Protocol clientProtocol)
Set the client |
|
Database |
withClusteringPolicy(ClusteringPolicy clusteringPolicy)
Set the clustering |
|
Database |
withDeferUpgrade(DeferUpgradeSetting deferUpgrade)
Set the defer |
|
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
accessKeysAuthentication
public AccessKeysAuthentication accessKeysAuthentication()
Get the accessKeysAuthentication property: This property can be Enabled/Disabled to allow or deny access with the current access keys. Can be updated even after database is created.
Returns:
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. This property can be updated only if the current value is NoCluster. If the value is OSSCluster or EnterpriseCluster, it cannot be updated without deleting the database.
Returns:
deferUpgrade
public DeferUpgradeSetting deferUpgrade()
Get the deferUpgrade property: Option to defer upgrade when newest version is released - default is NotDeferred. Learn more: https://aka.ms/redisversionupgrade.
Returns:
evictionPolicy
public EvictionPolicy evictionPolicy()
Get the evictionPolicy property: Redis eviction policy - default is VolatileLRU.
Returns:
fromJson
public static DatabaseInner fromJson(JsonReader jsonReader)
Reads an instance of DatabaseInner from the JsonReader.
Parameters:
Returns:
Throws:
geoReplication
public DatabasePropertiesGeoReplication geoReplication()
Get the geoReplication property: Optional set of properties to configure geo replication for this database.
Returns:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
DatabaseInner.id()Returns:
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:
name
public String name()
Get the name property: The name of the resource.
Overrides:
DatabaseInner.name()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:
redisVersion
public String redisVersion()
Get the redisVersion property: Version of Redis the database is running on, e.g. '6.0'.
Returns:
resourceState
public ResourceState resourceState()
Get the resourceState property: Current resource status of the database.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
DatabaseInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
DatabaseInner.type()Returns:
validate
public void validate()
Validates the instance.
withAccessKeysAuthentication
public DatabaseInner withAccessKeysAuthentication(AccessKeysAuthentication accessKeysAuthentication)
Set the accessKeysAuthentication property: This property can be Enabled/Disabled to allow or deny access with the current access keys. Can be updated even after database is created.
Parameters:
Returns:
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. This property can be updated only if the current value is NoCluster. If the value is OSSCluster or EnterpriseCluster, it cannot be updated without deleting the database.
Parameters:
Returns:
withDeferUpgrade
public DatabaseInner withDeferUpgrade(DeferUpgradeSetting deferUpgrade)
Set the deferUpgrade property: Option to defer upgrade when newest version is released - default is NotDeferred. Learn more: https://aka.ms/redisversionupgrade.
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<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:
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: