Class RedisInstancePersistenceConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.redis_instance.RedisInstancePersistenceConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<RedisInstancePersistenceConfig>
- Enclosing interface:
- RedisInstancePersistenceConfig
@Stability(Stable) public static final class RedisInstancePersistenceConfig.Builder extends Object implements software.amazon.jsii.Builder<RedisInstancePersistenceConfig>
A builder forRedisInstancePersistenceConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RedisInstancePersistenceConfigbuild()Builds the configured instance.RedisInstancePersistenceConfig.BuilderpersistenceMode(String persistenceMode)Sets the value ofRedisInstancePersistenceConfig.getPersistenceMode()RedisInstancePersistenceConfig.BuilderrdbSnapshotPeriod(String rdbSnapshotPeriod)Sets the value ofRedisInstancePersistenceConfig.getRdbSnapshotPeriod()RedisInstancePersistenceConfig.BuilderrdbSnapshotStartTime(String rdbSnapshotStartTime)Sets the value ofRedisInstancePersistenceConfig.getRdbSnapshotStartTime()
-
-
-
Method Detail
-
persistenceMode
@Stability(Stable) public RedisInstancePersistenceConfig.Builder persistenceMode(String persistenceMode)
Sets the value ofRedisInstancePersistenceConfig.getPersistenceMode()- Parameters:
persistenceMode- Optional. Controls whether Persistence features are enabled. If not provided, the existing value will be used. * DISABLED: Persistence is disabled for the instance, and any existing snapshots are deleted. * RDB: RDB based Persistence is enabled. Possible values: ["DISABLED", "RDB"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_instance#persistence_mode RedisInstance#persistence_mode}- Returns:
this
-
rdbSnapshotPeriod
@Stability(Stable) public RedisInstancePersistenceConfig.Builder rdbSnapshotPeriod(String rdbSnapshotPeriod)
Sets the value ofRedisInstancePersistenceConfig.getRdbSnapshotPeriod()- Parameters:
rdbSnapshotPeriod- Optional. Available snapshot periods for scheduling. * ONE_HOUR: Snapshot every 1 hour. * SIX_HOURS: Snapshot every 6 hours. * TWELVE_HOURS: Snapshot every 12 hours. * TWENTY_FOUR_HOURS: Snapshot every 24 hours. Possible values: ["ONE_HOUR", "SIX_HOURS", "TWELVE_HOURS", "TWENTY_FOUR_HOURS"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_instance#rdb_snapshot_period RedisInstance#rdb_snapshot_period}- Returns:
this
-
rdbSnapshotStartTime
@Stability(Stable) public RedisInstancePersistenceConfig.Builder rdbSnapshotStartTime(String rdbSnapshotStartTime)
Sets the value ofRedisInstancePersistenceConfig.getRdbSnapshotStartTime()- Parameters:
rdbSnapshotStartTime- Optional. Date and time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_instance#rdb_snapshot_start_time RedisInstance#rdb_snapshot_start_time}- Returns:
this
-
build
@Stability(Stable) public RedisInstancePersistenceConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<RedisInstancePersistenceConfig>- Returns:
- a new instance of
RedisInstancePersistenceConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-