Class DatabaseInner


  • public final class DatabaseInner
    extends com.azure.core.management.ProxyResource
    Describes a database on the RedisEnterprise cluster.
    • Constructor Detail

      • DatabaseInner

        public DatabaseInner()
    • 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 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.
      • 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 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.
      • 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 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.
      • evictionPolicy

        public EvictionPolicy evictionPolicy()
        Get the evictionPolicy property: Redis eviction policy - default is VolatileLRU.
        Returns:
        the evictionPolicy value.
      • 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.
      • persistence

        public Persistence persistence()
        Get the persistence property: Persistence settings.
        Returns:
        the persistence value.
      • withPersistence

        public DatabaseInner withPersistence​(Persistence persistence)
        Set the persistence property: Persistence settings.
        Parameters:
        persistence - the persistence value to set.
        Returns:
        the DatabaseInner 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 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:
        modules - the modules value to set.
        Returns:
        the DatabaseInner 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 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.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.