Class OsConfigPatchDeploymentConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.os_config_patch_deployment.OsConfigPatchDeploymentConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<OsConfigPatchDeploymentConfig>
- Enclosing interface:
- OsConfigPatchDeploymentConfig
@Stability(Stable) public static final class OsConfigPatchDeploymentConfig.Builder extends Object implements software.amazon.jsii.Builder<OsConfigPatchDeploymentConfig>
A builder forOsConfigPatchDeploymentConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
instanceFilter
@Stability(Stable) public OsConfigPatchDeploymentConfig.Builder instanceFilter(OsConfigPatchDeploymentInstanceFilter instanceFilter)
Sets the value ofOsConfigPatchDeploymentConfig.getInstanceFilter()- Parameters:
instanceFilter- instance_filter block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#instance_filter OsConfigPatchDeployment#instance_filter}- Returns:
this
-
patchDeploymentId
@Stability(Stable) public OsConfigPatchDeploymentConfig.Builder patchDeploymentId(String patchDeploymentId)
Sets the value ofOsConfigPatchDeploymentConfig.getPatchDeploymentId()- Parameters:
patchDeploymentId- A name for the patch deployment in the project. This parameter is required. When creating a name the following rules apply: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the project. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#patch_deployment_id OsConfigPatchDeployment#patch_deployment_id}- Returns:
this
-
description
@Stability(Stable) public OsConfigPatchDeploymentConfig.Builder description(String description)
Sets the value ofOsConfigPatchDeploymentConfig.getDescription()- Parameters:
description- Description of the patch deployment. Length of the description is limited to 1024 characters. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#description OsConfigPatchDeployment#description}- Returns:
this
-
duration
@Stability(Stable) public OsConfigPatchDeploymentConfig.Builder duration(String duration)
Sets the value ofOsConfigPatchDeploymentConfig.getDuration()- Parameters:
duration- Duration of the patch. After the duration ends, the patch times out. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s" Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#duration OsConfigPatchDeployment#duration}- Returns:
this
-
id
@Stability(Stable) public OsConfigPatchDeploymentConfig.Builder id(String id)
Sets the value ofOsConfigPatchDeploymentConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#id OsConfigPatchDeployment#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
oneTimeSchedule
@Stability(Stable) public OsConfigPatchDeploymentConfig.Builder oneTimeSchedule(OsConfigPatchDeploymentOneTimeSchedule oneTimeSchedule)
Sets the value ofOsConfigPatchDeploymentConfig.getOneTimeSchedule()- Parameters:
oneTimeSchedule- one_time_schedule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#one_time_schedule OsConfigPatchDeployment#one_time_schedule}- Returns:
this
-
patchConfig
@Stability(Stable) public OsConfigPatchDeploymentConfig.Builder patchConfig(OsConfigPatchDeploymentPatchConfig patchConfig)
Sets the value ofOsConfigPatchDeploymentConfig.getPatchConfig()- Parameters:
patchConfig- patch_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#patch_config OsConfigPatchDeployment#patch_config}- Returns:
this
-
project
@Stability(Stable) public OsConfigPatchDeploymentConfig.Builder project(String project)
Sets the value ofOsConfigPatchDeploymentConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#project OsConfigPatchDeployment#project}.- Returns:
this
-
recurringSchedule
@Stability(Stable) public OsConfigPatchDeploymentConfig.Builder recurringSchedule(OsConfigPatchDeploymentRecurringSchedule recurringSchedule)
Sets the value ofOsConfigPatchDeploymentConfig.getRecurringSchedule()- Parameters:
recurringSchedule- recurring_schedule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#recurring_schedule OsConfigPatchDeployment#recurring_schedule}- Returns:
this
-
rollout
@Stability(Stable) public OsConfigPatchDeploymentConfig.Builder rollout(OsConfigPatchDeploymentRollout rollout)
Sets the value ofOsConfigPatchDeploymentConfig.getRollout()- Parameters:
rollout- rollout block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#rollout OsConfigPatchDeployment#rollout}- Returns:
this
-
timeouts
@Stability(Stable) public OsConfigPatchDeploymentConfig.Builder timeouts(OsConfigPatchDeploymentTimeouts timeouts)
Sets the value ofOsConfigPatchDeploymentConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#timeouts OsConfigPatchDeployment#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public OsConfigPatchDeploymentConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public OsConfigPatchDeploymentConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public OsConfigPatchDeploymentConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public OsConfigPatchDeploymentConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public OsConfigPatchDeploymentConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public OsConfigPatchDeploymentConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public OsConfigPatchDeploymentConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public OsConfigPatchDeploymentConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public OsConfigPatchDeploymentConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public OsConfigPatchDeploymentConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OsConfigPatchDeploymentConfig>- Returns:
- a new instance of
OsConfigPatchDeploymentConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-