Class NetappVolumeSnapshotPolicyMonthlySchedule.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.netapp_volume.NetappVolumeSnapshotPolicyMonthlySchedule.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetappVolumeSnapshotPolicyMonthlySchedule>
- Enclosing interface:
- NetappVolumeSnapshotPolicyMonthlySchedule
@Stability(Stable) public static final class NetappVolumeSnapshotPolicyMonthlySchedule.Builder extends Object implements software.amazon.jsii.Builder<NetappVolumeSnapshotPolicyMonthlySchedule>
A builder forNetappVolumeSnapshotPolicyMonthlySchedule
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetappVolumeSnapshotPolicyMonthlySchedulebuild()Builds the configured instance.NetappVolumeSnapshotPolicyMonthlySchedule.BuilderdaysOfMonth(String daysOfMonth)Sets the value ofNetappVolumeSnapshotPolicyMonthlySchedule.getDaysOfMonth()NetappVolumeSnapshotPolicyMonthlySchedule.Builderhour(Number hour)Sets the value ofNetappVolumeSnapshotPolicyMonthlySchedule.getHour()NetappVolumeSnapshotPolicyMonthlySchedule.Builderminute(Number minute)Sets the value ofNetappVolumeSnapshotPolicyMonthlySchedule.getMinute()NetappVolumeSnapshotPolicyMonthlySchedule.BuildersnapshotsToKeep(Number snapshotsToKeep)Sets the value ofNetappVolumeSnapshotPolicyMonthlySchedule.getSnapshotsToKeep()
-
-
-
Method Detail
-
snapshotsToKeep
@Stability(Stable) public NetappVolumeSnapshotPolicyMonthlySchedule.Builder snapshotsToKeep(Number snapshotsToKeep)
Sets the value ofNetappVolumeSnapshotPolicyMonthlySchedule.getSnapshotsToKeep()- Parameters:
snapshotsToKeep- The maximum number of snapshots to keep for the monthly 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
-
daysOfMonth
@Stability(Stable) public NetappVolumeSnapshotPolicyMonthlySchedule.Builder daysOfMonth(String daysOfMonth)
Sets the value ofNetappVolumeSnapshotPolicyMonthlySchedule.getDaysOfMonth()- Parameters:
daysOfMonth- Set the day or days of the month to make a snapshot (1-31). Accepts a comma separated number of days. Defaults to '1'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume#days_of_month NetappVolume#days_of_month}- Returns:
this
-
hour
@Stability(Stable) public NetappVolumeSnapshotPolicyMonthlySchedule.Builder hour(Number hour)
Sets the value ofNetappVolumeSnapshotPolicyMonthlySchedule.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 NetappVolumeSnapshotPolicyMonthlySchedule.Builder minute(Number minute)
Sets the value ofNetappVolumeSnapshotPolicyMonthlySchedule.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 NetappVolumeSnapshotPolicyMonthlySchedule build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetappVolumeSnapshotPolicyMonthlySchedule>- Returns:
- a new instance of
NetappVolumeSnapshotPolicyMonthlySchedule - Throws:
NullPointerException- if any required attribute was not provided
-
-