Class RedisInstancePersistenceConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • persistenceMode

        @Stability(Stable)
        public RedisInstancePersistenceConfig.Builder persistenceMode​(String persistenceMode)
        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)
        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)
        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