Class NetappVolumeSnapshotPolicy.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.netapp_volume.NetappVolumeSnapshotPolicy.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetappVolumeSnapshotPolicy>
- Enclosing interface:
- NetappVolumeSnapshotPolicy
@Stability(Stable) public static final class NetappVolumeSnapshotPolicy.Builder extends Object implements software.amazon.jsii.Builder<NetappVolumeSnapshotPolicy>
A builder forNetappVolumeSnapshotPolicy
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
dailySchedule
@Stability(Stable) public NetappVolumeSnapshotPolicy.Builder dailySchedule(NetappVolumeSnapshotPolicyDailySchedule dailySchedule)
Sets the value ofNetappVolumeSnapshotPolicy.getDailySchedule()- Parameters:
dailySchedule- daily_schedule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume#daily_schedule NetappVolume#daily_schedule}- Returns:
this
-
enabled
@Stability(Stable) public NetappVolumeSnapshotPolicy.Builder enabled(Boolean enabled)
Sets the value ofNetappVolumeSnapshotPolicy.getEnabled()- Parameters:
enabled- Enables automated snapshot creation according to defined schedule. Default is false. To disable automatic snapshot creation you have to remove the whole snapshot_policy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume#enabled NetappVolume#enabled}- Returns:
this
-
enabled
@Stability(Stable) public NetappVolumeSnapshotPolicy.Builder enabled(com.hashicorp.cdktf.IResolvable enabled)
Sets the value ofNetappVolumeSnapshotPolicy.getEnabled()- Parameters:
enabled- Enables automated snapshot creation according to defined schedule. Default is false. To disable automatic snapshot creation you have to remove the whole snapshot_policy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume#enabled NetappVolume#enabled}- Returns:
this
-
hourlySchedule
@Stability(Stable) public NetappVolumeSnapshotPolicy.Builder hourlySchedule(NetappVolumeSnapshotPolicyHourlySchedule hourlySchedule)
Sets the value ofNetappVolumeSnapshotPolicy.getHourlySchedule()- Parameters:
hourlySchedule- hourly_schedule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume#hourly_schedule NetappVolume#hourly_schedule}- Returns:
this
-
monthlySchedule
@Stability(Stable) public NetappVolumeSnapshotPolicy.Builder monthlySchedule(NetappVolumeSnapshotPolicyMonthlySchedule monthlySchedule)
Sets the value ofNetappVolumeSnapshotPolicy.getMonthlySchedule()- Parameters:
monthlySchedule- monthly_schedule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume#monthly_schedule NetappVolume#monthly_schedule}- Returns:
this
-
weeklySchedule
@Stability(Stable) public NetappVolumeSnapshotPolicy.Builder weeklySchedule(NetappVolumeSnapshotPolicyWeeklySchedule weeklySchedule)
Sets the value ofNetappVolumeSnapshotPolicy.getWeeklySchedule()- Parameters:
weeklySchedule- weekly_schedule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume#weekly_schedule NetappVolume#weekly_schedule}- Returns:
this
-
build
@Stability(Stable) public NetappVolumeSnapshotPolicy build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetappVolumeSnapshotPolicy>- Returns:
- a new instance of
NetappVolumeSnapshotPolicy - Throws:
NullPointerException- if any required attribute was not provided
-
-