Class OsConfigPatchDeploymentInstanceFilter.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.os_config_patch_deployment.OsConfigPatchDeploymentInstanceFilter.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<OsConfigPatchDeploymentInstanceFilter>
- Enclosing interface:
- OsConfigPatchDeploymentInstanceFilter
@Stability(Stable) public static final class OsConfigPatchDeploymentInstanceFilter.Builder extends Object implements software.amazon.jsii.Builder<OsConfigPatchDeploymentInstanceFilter>
A builder forOsConfigPatchDeploymentInstanceFilter
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
all
@Stability(Stable) public OsConfigPatchDeploymentInstanceFilter.Builder all(Boolean all)
Sets the value ofOsConfigPatchDeploymentInstanceFilter.getAll()- Parameters:
all- Target all VM instances in the project. If true, no other criteria is permitted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#all OsConfigPatchDeployment#all}- Returns:
this
-
all
@Stability(Stable) public OsConfigPatchDeploymentInstanceFilter.Builder all(com.hashicorp.cdktf.IResolvable all)
Sets the value ofOsConfigPatchDeploymentInstanceFilter.getAll()- Parameters:
all- Target all VM instances in the project. If true, no other criteria is permitted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#all OsConfigPatchDeployment#all}- Returns:
this
-
groupLabels
@Stability(Stable) public OsConfigPatchDeploymentInstanceFilter.Builder groupLabels(com.hashicorp.cdktf.IResolvable groupLabels)
Sets the value ofOsConfigPatchDeploymentInstanceFilter.getGroupLabels()- Parameters:
groupLabels- group_labels block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#group_labels OsConfigPatchDeployment#group_labels}- Returns:
this
-
groupLabels
@Stability(Stable) public OsConfigPatchDeploymentInstanceFilter.Builder groupLabels(List<? extends OsConfigPatchDeploymentInstanceFilterGroupLabels> groupLabels)
Sets the value ofOsConfigPatchDeploymentInstanceFilter.getGroupLabels()- Parameters:
groupLabels- group_labels block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#group_labels OsConfigPatchDeployment#group_labels}- Returns:
this
-
instanceNamePrefixes
@Stability(Stable) public OsConfigPatchDeploymentInstanceFilter.Builder instanceNamePrefixes(List<String> instanceNamePrefixes)
Sets the value ofOsConfigPatchDeploymentInstanceFilter.getInstanceNamePrefixes()- Parameters:
instanceNamePrefixes- Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix="prod-". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#instance_name_prefixes OsConfigPatchDeployment#instance_name_prefixes}- Returns:
this
-
instances
@Stability(Stable) public OsConfigPatchDeploymentInstanceFilter.Builder instances(List<String> instances)
Sets the value ofOsConfigPatchDeploymentInstanceFilter.getInstances()- Parameters:
instances- Targets any of the VM instances specified. Instances are specified by their URI in the 'form zones/{{zone}}/instances/{{instance_name}}', 'projects/{{project_id}}/zones/{{zone}}/instances/{{instance_name}}', or 'https://www.googleapis.com/compute/v1/projects/{{project_id}}/zones/{{zone}}/instances/{{instance_name}}'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#instances OsConfigPatchDeployment#instances}- Returns:
this
-
zones
@Stability(Stable) public OsConfigPatchDeploymentInstanceFilter.Builder zones(List<String> zones)
Sets the value ofOsConfigPatchDeploymentInstanceFilter.getZones()- Parameters:
zones- Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#zones OsConfigPatchDeployment#zones}- Returns:
this
-
build
@Stability(Stable) public OsConfigPatchDeploymentInstanceFilter build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OsConfigPatchDeploymentInstanceFilter>- Returns:
- a new instance of
OsConfigPatchDeploymentInstanceFilter - Throws:
NullPointerException- if any required attribute was not provided
-
-