Class ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_resource_policy.ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties>
- Enclosing interface:
- ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties
@Stability(Stable) public static final class ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder extends Object implements software.amazon.jsii.Builder<ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeResourcePolicySnapshotSchedulePolicySnapshotPropertiesbuild()Builds the configured instance.ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties.BuilderchainName(String chainName)ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties.BuilderguestFlush(com.hashicorp.cdktf.IResolvable guestFlush)ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties.BuilderguestFlush(Boolean guestFlush)ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties.Builderlabels(Map<String,String> labels)ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties.BuilderstorageLocations(List<String> storageLocations)
-
-
-
Method Detail
-
chainName
@Stability(Stable) public ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder chainName(String chainName)
- Parameters:
chainName- Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_resource_policy#chain_name ComputeResourcePolicy#chain_name}- Returns:
this
-
guestFlush
@Stability(Stable) public ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder guestFlush(Boolean guestFlush)
- Parameters:
guestFlush- Whether to perform a 'guest aware' snapshot. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_resource_policy#guest_flush ComputeResourcePolicy#guest_flush}- Returns:
this
-
guestFlush
@Stability(Stable) public ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder guestFlush(com.hashicorp.cdktf.IResolvable guestFlush)
- Parameters:
guestFlush- Whether to perform a 'guest aware' snapshot. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_resource_policy#guest_flush ComputeResourcePolicy#guest_flush}- Returns:
this
-
labels
@Stability(Stable) public ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder labels(Map<String,String> labels)
- Parameters:
labels- A set of key-value pairs. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_resource_policy#labels ComputeResourcePolicy#labels}- Returns:
this
-
storageLocations
@Stability(Stable) public ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder storageLocations(List<String> storageLocations)
Sets the value ofComputeResourcePolicySnapshotSchedulePolicySnapshotProperties.getStorageLocations()- Parameters:
storageLocations- Cloud Storage bucket location to store the auto snapshot (regional or multi-regional). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_resource_policy#storage_locations ComputeResourcePolicy#storage_locations}- Returns:
this
-
build
@Stability(Stable) public ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties>- Returns:
- a new instance of
ComputeResourcePolicySnapshotSchedulePolicySnapshotProperties - Throws:
NullPointerException- if any required attribute was not provided
-
-