Class GkeBackupBackupPlanBackupSchedule.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.gke_backup_backup_plan.GkeBackupBackupPlanBackupSchedule.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<GkeBackupBackupPlanBackupSchedule>
- Enclosing interface:
- GkeBackupBackupPlanBackupSchedule
@Stability(Stable) public static final class GkeBackupBackupPlanBackupSchedule.Builder extends Object implements software.amazon.jsii.Builder<GkeBackupBackupPlanBackupSchedule>
A builder forGkeBackupBackupPlanBackupSchedule
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GkeBackupBackupPlanBackupSchedulebuild()Builds the configured instance.GkeBackupBackupPlanBackupSchedule.BuildercronSchedule(String cronSchedule)Sets the value ofGkeBackupBackupPlanBackupSchedule.getCronSchedule()GkeBackupBackupPlanBackupSchedule.Builderpaused(com.hashicorp.cdktf.IResolvable paused)Sets the value ofGkeBackupBackupPlanBackupSchedule.getPaused()GkeBackupBackupPlanBackupSchedule.Builderpaused(Boolean paused)Sets the value ofGkeBackupBackupPlanBackupSchedule.getPaused()GkeBackupBackupPlanBackupSchedule.BuilderrpoConfig(GkeBackupBackupPlanBackupScheduleRpoConfig rpoConfig)Sets the value ofGkeBackupBackupPlanBackupSchedule.getRpoConfig()
-
-
-
Method Detail
-
cronSchedule
@Stability(Stable) public GkeBackupBackupPlanBackupSchedule.Builder cronSchedule(String cronSchedule)
Sets the value ofGkeBackupBackupPlanBackupSchedule.getCronSchedule()- Parameters:
cronSchedule- A standard cron string that defines a repeating schedule for creating Backups via this BackupPlan. This is mutually exclusive with the rpoConfig field since at most one schedule can be defined for a BackupPlan. If this is defined, then backupRetainDays must also be defined. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_backup_plan#cron_schedule GkeBackupBackupPlan#cron_schedule}- Returns:
this
-
paused
@Stability(Stable) public GkeBackupBackupPlanBackupSchedule.Builder paused(Boolean paused)
Sets the value ofGkeBackupBackupPlanBackupSchedule.getPaused()- Parameters:
paused- This flag denotes whether automatic Backup creation is paused for this BackupPlan. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_backup_plan#paused GkeBackupBackupPlan#paused}- Returns:
this
-
paused
@Stability(Stable) public GkeBackupBackupPlanBackupSchedule.Builder paused(com.hashicorp.cdktf.IResolvable paused)
Sets the value ofGkeBackupBackupPlanBackupSchedule.getPaused()- Parameters:
paused- This flag denotes whether automatic Backup creation is paused for this BackupPlan. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_backup_plan#paused GkeBackupBackupPlan#paused}- Returns:
this
-
rpoConfig
@Stability(Stable) public GkeBackupBackupPlanBackupSchedule.Builder rpoConfig(GkeBackupBackupPlanBackupScheduleRpoConfig rpoConfig)
Sets the value ofGkeBackupBackupPlanBackupSchedule.getRpoConfig()- Parameters:
rpoConfig- rpo_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_backup_plan#rpo_config GkeBackupBackupPlan#rpo_config}- Returns:
this
-
build
@Stability(Stable) public GkeBackupBackupPlanBackupSchedule build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GkeBackupBackupPlanBackupSchedule>- Returns:
- a new instance of
GkeBackupBackupPlanBackupSchedule - Throws:
NullPointerException- if any required attribute was not provided
-
-