Class GkeBackupBackupPlanBackupScheduleRpoConfigExclusionWindows.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.gke_backup_backup_plan.GkeBackupBackupPlanBackupScheduleRpoConfigExclusionWindows.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<GkeBackupBackupPlanBackupScheduleRpoConfigExclusionWindows>
- Enclosing interface:
- GkeBackupBackupPlanBackupScheduleRpoConfigExclusionWindows
@Stability(Stable) public static final class GkeBackupBackupPlanBackupScheduleRpoConfigExclusionWindows.Builder extends Object implements software.amazon.jsii.Builder<GkeBackupBackupPlanBackupScheduleRpoConfigExclusionWindows>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
duration
@Stability(Stable) public GkeBackupBackupPlanBackupScheduleRpoConfigExclusionWindows.Builder duration(String duration)
Sets the value ofGkeBackupBackupPlanBackupScheduleRpoConfigExclusionWindows.getDuration()- Parameters:
duration- Specifies duration of the window in seconds with up to nine fractional digits, terminated by 's'. This parameter is required. Example: "3.5s". Restrictions for duration based on the recurrence type to allow some time for backup to happen: * single_occurrence_date: no restriction * daily window: duration < 24 hours * weekly window: * days of week includes all seven days of a week: duration < 24 hours * all other weekly window: duration < 168 hours (i.e., 24 * 7 hours) Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_backup_plan#duration GkeBackupBackupPlan#duration}- Returns:
this
-
startTime
@Stability(Stable) public GkeBackupBackupPlanBackupScheduleRpoConfigExclusionWindows.Builder startTime(GkeBackupBackupPlanBackupScheduleRpoConfigExclusionWindowsStartTime startTime)
- Parameters:
startTime- start_time block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_backup_plan#start_time GkeBackupBackupPlan#start_time}- Returns:
this
-
daily
@Stability(Stable) public GkeBackupBackupPlanBackupScheduleRpoConfigExclusionWindows.Builder daily(Boolean daily)
Sets the value ofGkeBackupBackupPlanBackupScheduleRpoConfigExclusionWindows.getDaily()- Parameters:
daily- The exclusion window occurs every day if set to "True". Specifying this field to "False" is an error. Only one of singleOccurrenceDate, daily and daysOfWeek may be set. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_backup_plan#daily GkeBackupBackupPlan#daily}- Returns:
this
-
daily
@Stability(Stable) public GkeBackupBackupPlanBackupScheduleRpoConfigExclusionWindows.Builder daily(com.hashicorp.cdktf.IResolvable daily)
Sets the value ofGkeBackupBackupPlanBackupScheduleRpoConfigExclusionWindows.getDaily()- Parameters:
daily- The exclusion window occurs every day if set to "True". Specifying this field to "False" is an error. Only one of singleOccurrenceDate, daily and daysOfWeek may be set. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_backup_plan#daily GkeBackupBackupPlan#daily}- Returns:
this
-
daysOfWeek
@Stability(Stable) public GkeBackupBackupPlanBackupScheduleRpoConfigExclusionWindows.Builder daysOfWeek(GkeBackupBackupPlanBackupScheduleRpoConfigExclusionWindowsDaysOfWeek daysOfWeek)
- Parameters:
daysOfWeek- days_of_week block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_backup_plan#days_of_week GkeBackupBackupPlan#days_of_week}- Returns:
this
-
singleOccurrenceDate
@Stability(Stable) public GkeBackupBackupPlanBackupScheduleRpoConfigExclusionWindows.Builder singleOccurrenceDate(GkeBackupBackupPlanBackupScheduleRpoConfigExclusionWindowsSingleOccurrenceDate singleOccurrenceDate)
Sets the value ofGkeBackupBackupPlanBackupScheduleRpoConfigExclusionWindows.getSingleOccurrenceDate()- Parameters:
singleOccurrenceDate- single_occurrence_date block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_backup_plan#single_occurrence_date GkeBackupBackupPlan#single_occurrence_date}- Returns:
this
-
build
@Stability(Stable) public GkeBackupBackupPlanBackupScheduleRpoConfigExclusionWindows build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GkeBackupBackupPlanBackupScheduleRpoConfigExclusionWindows>- Returns:
- a new instance of
GkeBackupBackupPlanBackupScheduleRpoConfigExclusionWindows - Throws:
NullPointerException- if any required attribute was not provided
-
-