Class OsConfigPatchDeploymentPatchConfigApt.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.os_config_patch_deployment.OsConfigPatchDeploymentPatchConfigApt.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<OsConfigPatchDeploymentPatchConfigApt>
- Enclosing interface:
- OsConfigPatchDeploymentPatchConfigApt
@Stability(Stable) public static final class OsConfigPatchDeploymentPatchConfigApt.Builder extends Object implements software.amazon.jsii.Builder<OsConfigPatchDeploymentPatchConfigApt>
A builder forOsConfigPatchDeploymentPatchConfigApt
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OsConfigPatchDeploymentPatchConfigAptbuild()Builds the configured instance.OsConfigPatchDeploymentPatchConfigApt.Builderexcludes(List<String> excludes)Sets the value ofOsConfigPatchDeploymentPatchConfigApt.getExcludes()OsConfigPatchDeploymentPatchConfigApt.BuilderexclusivePackages(List<String> exclusivePackages)Sets the value ofOsConfigPatchDeploymentPatchConfigApt.getExclusivePackages()OsConfigPatchDeploymentPatchConfigApt.Buildertype(String type)Sets the value ofOsConfigPatchDeploymentPatchConfigApt.getType()
-
-
-
Method Detail
-
excludes
@Stability(Stable) public OsConfigPatchDeploymentPatchConfigApt.Builder excludes(List<String> excludes)
Sets the value ofOsConfigPatchDeploymentPatchConfigApt.getExcludes()- Parameters:
excludes- List of packages to exclude from update. These packages will be excluded. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#excludes OsConfigPatchDeployment#excludes}- Returns:
this
-
exclusivePackages
@Stability(Stable) public OsConfigPatchDeploymentPatchConfigApt.Builder exclusivePackages(List<String> exclusivePackages)
Sets the value ofOsConfigPatchDeploymentPatchConfigApt.getExclusivePackages()- Parameters:
exclusivePackages- An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field cannot be specified with any other patch configuration fields. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#exclusive_packages OsConfigPatchDeployment#exclusive_packages}- Returns:
this
-
type
@Stability(Stable) public OsConfigPatchDeploymentPatchConfigApt.Builder type(String type)
Sets the value ofOsConfigPatchDeploymentPatchConfigApt.getType()- Parameters:
type- By changing the type to DIST, the patching is performed using apt-get dist-upgrade instead. Possible values: ["DIST", "UPGRADE"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_patch_deployment#type OsConfigPatchDeployment#type}- Returns:
this
-
build
@Stability(Stable) public OsConfigPatchDeploymentPatchConfigApt build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OsConfigPatchDeploymentPatchConfigApt>- Returns:
- a new instance of
OsConfigPatchDeploymentPatchConfigApt - Throws:
NullPointerException- if any required attribute was not provided
-
-