Class Persistence
- java.lang.Object
-
- com.azure.resourcemanager.redisenterprise.models.Persistence
-
public final class Persistence extends Object
Persistence settings Persistence-related configuration for the RedisEnterprise database.
-
-
Constructor Summary
Constructors Constructor Description Persistence()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
aofEnabled()
Get the aofEnabled property: Sets whether AOF is enabled.AofFrequency
aofFrequency()
Get the aofFrequency property: Sets the frequency at which data is written to disk.Boolean
rdbEnabled()
Get the rdbEnabled property: Sets whether RDB is enabled.RdbFrequency
rdbFrequency()
Get the rdbFrequency property: Sets the frequency at which a snapshot of the database is created.void
validate()
Validates the instance.Persistence
withAofEnabled(Boolean aofEnabled)
Set the aofEnabled property: Sets whether AOF is enabled.Persistence
withAofFrequency(AofFrequency aofFrequency)
Set the aofFrequency property: Sets the frequency at which data is written to disk.Persistence
withRdbEnabled(Boolean rdbEnabled)
Set the rdbEnabled property: Sets whether RDB is enabled.Persistence
withRdbFrequency(RdbFrequency rdbFrequency)
Set the rdbFrequency property: Sets the frequency at which a snapshot of the database is created.
-
-
-
Method Detail
-
aofEnabled
public Boolean aofEnabled()
Get the aofEnabled property: Sets whether AOF is enabled.- Returns:
- the aofEnabled value.
-
withAofEnabled
public Persistence withAofEnabled(Boolean aofEnabled)
Set the aofEnabled property: Sets whether AOF is enabled.- Parameters:
aofEnabled
- the aofEnabled value to set.- Returns:
- the Persistence object itself.
-
rdbEnabled
public Boolean rdbEnabled()
Get the rdbEnabled property: Sets whether RDB is enabled.- Returns:
- the rdbEnabled value.
-
withRdbEnabled
public Persistence withRdbEnabled(Boolean rdbEnabled)
Set the rdbEnabled property: Sets whether RDB is enabled.- Parameters:
rdbEnabled
- the rdbEnabled value to set.- Returns:
- the Persistence object itself.
-
aofFrequency
public AofFrequency aofFrequency()
Get the aofFrequency property: Sets the frequency at which data is written to disk.- Returns:
- the aofFrequency value.
-
withAofFrequency
public Persistence withAofFrequency(AofFrequency aofFrequency)
Set the aofFrequency property: Sets the frequency at which data is written to disk.- Parameters:
aofFrequency
- the aofFrequency value to set.- Returns:
- the Persistence object itself.
-
rdbFrequency
public RdbFrequency rdbFrequency()
Get the rdbFrequency property: Sets the frequency at which a snapshot of the database is created.- Returns:
- the rdbFrequency value.
-
withRdbFrequency
public Persistence withRdbFrequency(RdbFrequency rdbFrequency)
Set the rdbFrequency property: Sets the frequency at which a snapshot of the database is created.- Parameters:
rdbFrequency
- the rdbFrequency value to set.- Returns:
- the Persistence object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-