Class NetappVolumeSnapshotPolicyWeeklySchedule.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.netapp_volume.NetappVolumeSnapshotPolicyWeeklySchedule.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetappVolumeSnapshotPolicyWeeklySchedule>
- Enclosing interface:
- NetappVolumeSnapshotPolicyWeeklySchedule
@Stability(Stable) public static final class NetappVolumeSnapshotPolicyWeeklySchedule.Builder extends Object implements software.amazon.jsii.Builder<NetappVolumeSnapshotPolicyWeeklySchedule>
A builder forNetappVolumeSnapshotPolicyWeeklySchedule
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetappVolumeSnapshotPolicyWeeklySchedulebuild()Builds the configured instance.NetappVolumeSnapshotPolicyWeeklySchedule.Builderday(String day)Sets the value ofNetappVolumeSnapshotPolicyWeeklySchedule.getDay()NetappVolumeSnapshotPolicyWeeklySchedule.Builderhour(Number hour)Sets the value ofNetappVolumeSnapshotPolicyWeeklySchedule.getHour()NetappVolumeSnapshotPolicyWeeklySchedule.Builderminute(Number minute)Sets the value ofNetappVolumeSnapshotPolicyWeeklySchedule.getMinute()NetappVolumeSnapshotPolicyWeeklySchedule.BuildersnapshotsToKeep(Number snapshotsToKeep)Sets the value ofNetappVolumeSnapshotPolicyWeeklySchedule.getSnapshotsToKeep()
-
-
-
Method Detail
-
snapshotsToKeep
@Stability(Stable) public NetappVolumeSnapshotPolicyWeeklySchedule.Builder snapshotsToKeep(Number snapshotsToKeep)
Sets the value ofNetappVolumeSnapshotPolicyWeeklySchedule.getSnapshotsToKeep()- Parameters:
snapshotsToKeep- The maximum number of snapshots to keep for the weekly schedule. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume#snapshots_to_keep NetappVolume#snapshots_to_keep}- Returns:
this
-
day
@Stability(Stable) public NetappVolumeSnapshotPolicyWeeklySchedule.Builder day(String day)
Sets the value ofNetappVolumeSnapshotPolicyWeeklySchedule.getDay()- Parameters:
day- Set the day or days of the week to make a snapshot. Accepts a comma separated days of the week. Defaults to 'Sunday'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume#day NetappVolume#day}- Returns:
this
-
hour
@Stability(Stable) public NetappVolumeSnapshotPolicyWeeklySchedule.Builder hour(Number hour)
Sets the value ofNetappVolumeSnapshotPolicyWeeklySchedule.getHour()- Parameters:
hour- Set the hour to create the snapshot (0-23), defaults to midnight (0). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume#hour NetappVolume#hour}- Returns:
this
-
minute
@Stability(Stable) public NetappVolumeSnapshotPolicyWeeklySchedule.Builder minute(Number minute)
Sets the value ofNetappVolumeSnapshotPolicyWeeklySchedule.getMinute()- Parameters:
minute- Set the minute of the hour to create the snapshot (0-59), defaults to the top of the hour (0). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume#minute NetappVolume#minute}- Returns:
this
-
build
@Stability(Stable) public NetappVolumeSnapshotPolicyWeeklySchedule build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetappVolumeSnapshotPolicyWeeklySchedule>- Returns:
- a new instance of
NetappVolumeSnapshotPolicyWeeklySchedule - Throws:
NullPointerException- if any required attribute was not provided
-
-