com.pulumi.azure.maintenance.outputs.ConfigurationInstallPatchesWindow Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azure.maintenance.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class ConfigurationInstallPatchesWindow {
/**
* @return List of Classification category of patches to be patched. Possible values are `Critical`, `Security`, `UpdateRollup`, `FeaturePack`, `ServicePack`, `Definition`, `Tools` and `Updates`.
*
*/
private @Nullable List classificationsToIncludes;
/**
* @return List of KB numbers to be excluded from patching.
*
*/
private @Nullable List kbNumbersToExcludes;
/**
* @return List of KB numbers to be included for patching.
*
*/
private @Nullable List kbNumbersToIncludes;
private ConfigurationInstallPatchesWindow() {}
/**
* @return List of Classification category of patches to be patched. Possible values are `Critical`, `Security`, `UpdateRollup`, `FeaturePack`, `ServicePack`, `Definition`, `Tools` and `Updates`.
*
*/
public List classificationsToIncludes() {
return this.classificationsToIncludes == null ? List.of() : this.classificationsToIncludes;
}
/**
* @return List of KB numbers to be excluded from patching.
*
*/
public List kbNumbersToExcludes() {
return this.kbNumbersToExcludes == null ? List.of() : this.kbNumbersToExcludes;
}
/**
* @return List of KB numbers to be included for patching.
*
*/
public List kbNumbersToIncludes() {
return this.kbNumbersToIncludes == null ? List.of() : this.kbNumbersToIncludes;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ConfigurationInstallPatchesWindow defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List classificationsToIncludes;
private @Nullable List kbNumbersToExcludes;
private @Nullable List kbNumbersToIncludes;
public Builder() {}
public Builder(ConfigurationInstallPatchesWindow defaults) {
Objects.requireNonNull(defaults);
this.classificationsToIncludes = defaults.classificationsToIncludes;
this.kbNumbersToExcludes = defaults.kbNumbersToExcludes;
this.kbNumbersToIncludes = defaults.kbNumbersToIncludes;
}
@CustomType.Setter
public Builder classificationsToIncludes(@Nullable List classificationsToIncludes) {
this.classificationsToIncludes = classificationsToIncludes;
return this;
}
public Builder classificationsToIncludes(String... classificationsToIncludes) {
return classificationsToIncludes(List.of(classificationsToIncludes));
}
@CustomType.Setter
public Builder kbNumbersToExcludes(@Nullable List kbNumbersToExcludes) {
this.kbNumbersToExcludes = kbNumbersToExcludes;
return this;
}
public Builder kbNumbersToExcludes(String... kbNumbersToExcludes) {
return kbNumbersToExcludes(List.of(kbNumbersToExcludes));
}
@CustomType.Setter
public Builder kbNumbersToIncludes(@Nullable List kbNumbersToIncludes) {
this.kbNumbersToIncludes = kbNumbersToIncludes;
return this;
}
public Builder kbNumbersToIncludes(String... kbNumbersToIncludes) {
return kbNumbersToIncludes(List.of(kbNumbersToIncludes));
}
public ConfigurationInstallPatchesWindow build() {
final var _resultValue = new ConfigurationInstallPatchesWindow();
_resultValue.classificationsToIncludes = classificationsToIncludes;
_resultValue.kbNumbersToExcludes = kbNumbersToExcludes;
_resultValue.kbNumbersToIncludes = kbNumbersToIncludes;
return _resultValue;
}
}
}