Class PatchJobs.WindowsUpdateSettings.Builder (2.17.0)

public static final class PatchJobs.WindowsUpdateSettings.Builder extends GeneratedMessageV3.Builder<PatchJobs.WindowsUpdateSettings.Builder> implements PatchJobs.WindowsUpdateSettingsOrBuilder

Windows patching is performed using the Windows Update Agent.

Protobuf type google.cloud.osconfig.v1beta.WindowsUpdateSettings

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllClassifications(Iterable<? extends PatchJobs.WindowsUpdateSettings.Classification> values)

public PatchJobs.WindowsUpdateSettings.Builder addAllClassifications(Iterable<? extends PatchJobs.WindowsUpdateSettings.Classification> values)

Only apply updates of these windows update classifications. If empty, all updates are applied.

repeated .google.cloud.osconfig.v1beta.WindowsUpdateSettings.Classification classifications = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.osconfig.v1beta.PatchJobs.WindowsUpdateSettings.Classification>

The classifications to add.

Returns
TypeDescription
PatchJobs.WindowsUpdateSettings.Builder

This builder for chaining.

addAllClassificationsValue(Iterable<Integer> values)

public PatchJobs.WindowsUpdateSettings.Builder addAllClassificationsValue(Iterable<Integer> values)

Only apply updates of these windows update classifications. If empty, all updates are applied.

repeated .google.cloud.osconfig.v1beta.WindowsUpdateSettings.Classification classifications = 1;

Parameter
NameDescription
valuesIterable<Integer>

The enum numeric values on the wire for classifications to add.

Returns
TypeDescription
PatchJobs.WindowsUpdateSettings.Builder

This builder for chaining.

addAllExcludes(Iterable<String> values)

public PatchJobs.WindowsUpdateSettings.Builder addAllExcludes(Iterable<String> values)

List of KBs to exclude from update.

repeated string excludes = 2;

Parameter
NameDescription
valuesIterable<String>

The excludes to add.

Returns
TypeDescription
PatchJobs.WindowsUpdateSettings.Builder

This builder for chaining.

addAllExclusivePatches(Iterable<String> values)

public PatchJobs.WindowsUpdateSettings.Builder addAllExclusivePatches(Iterable<String> values)

An exclusive list of kbs to be updated. These are the only patches that will be updated. This field must not be used with other patch configurations.

repeated string exclusive_patches = 3;

Parameter
NameDescription
valuesIterable<String>

The exclusivePatches to add.

Returns
TypeDescription
PatchJobs.WindowsUpdateSettings.Builder

This builder for chaining.

addClassifications(PatchJobs.WindowsUpdateSettings.Classification value)

public PatchJobs.WindowsUpdateSettings.Builder addClassifications(PatchJobs.WindowsUpdateSettings.Classification value)

Only apply updates of these windows update classifications. If empty, all updates are applied.

repeated .google.cloud.osconfig.v1beta.WindowsUpdateSettings.Classification classifications = 1;

Parameter
NameDescription
valuePatchJobs.WindowsUpdateSettings.Classification

The classifications to add.

Returns
TypeDescription
PatchJobs.WindowsUpdateSettings.Builder

This builder for chaining.

addClassificationsValue(int value)

public PatchJobs.WindowsUpdateSettings.Builder addClassificationsValue(int value)

Only apply updates of these windows update classifications. If empty, all updates are applied.

repeated .google.cloud.osconfig.v1beta.WindowsUpdateSettings.Classification classifications = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for classifications to add.

Returns
TypeDescription
PatchJobs.WindowsUpdateSettings.Builder

This builder for chaining.