
com.pulumi.azurenative.compute.outputs.PatchSettingsResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.azurenative.compute.outputs;
import com.pulumi.azurenative.compute.outputs.WindowsVMGuestPatchAutomaticByPlatformSettingsResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class PatchSettingsResponse {
/**
* @return Specifies the mode of VM Guest patch assessment for the IaaS virtual machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You control the timing of patch assessments on a virtual machine.<br /><br /> **AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true.
*
*/
private @Nullable String assessmentMode;
/**
* @return Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Windows.
*
*/
private @Nullable WindowsVMGuestPatchAutomaticByPlatformSettingsResponse automaticByPlatformSettings;
/**
* @return Enables customers to patch their Azure VMs without requiring a reboot. For enableHotpatching, the 'provisionVMAgent' must be set to true and 'patchMode' must be set to 'AutomaticByPlatform'.
*
*/
private @Nullable Boolean enableHotpatching;
/**
* @return Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.<br /><br /> Possible values are:<br /><br /> **Manual** - You control the application of patches to a virtual machine. You do this by applying patches manually inside the VM. In this mode, automatic updates are disabled; the property WindowsConfiguration.enableAutomaticUpdates must be false<br /><br /> **AutomaticByOS** - The virtual machine will automatically be updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates must be true. <br /><br /> **AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true
*
*/
private @Nullable String patchMode;
private PatchSettingsResponse() {}
/**
* @return Specifies the mode of VM Guest patch assessment for the IaaS virtual machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You control the timing of patch assessments on a virtual machine.<br /><br /> **AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true.
*
*/
public Optional assessmentMode() {
return Optional.ofNullable(this.assessmentMode);
}
/**
* @return Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Windows.
*
*/
public Optional automaticByPlatformSettings() {
return Optional.ofNullable(this.automaticByPlatformSettings);
}
/**
* @return Enables customers to patch their Azure VMs without requiring a reboot. For enableHotpatching, the 'provisionVMAgent' must be set to true and 'patchMode' must be set to 'AutomaticByPlatform'.
*
*/
public Optional enableHotpatching() {
return Optional.ofNullable(this.enableHotpatching);
}
/**
* @return Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.<br /><br /> Possible values are:<br /><br /> **Manual** - You control the application of patches to a virtual machine. You do this by applying patches manually inside the VM. In this mode, automatic updates are disabled; the property WindowsConfiguration.enableAutomaticUpdates must be false<br /><br /> **AutomaticByOS** - The virtual machine will automatically be updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates must be true. <br /><br /> **AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true
*
*/
public Optional patchMode() {
return Optional.ofNullable(this.patchMode);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PatchSettingsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String assessmentMode;
private @Nullable WindowsVMGuestPatchAutomaticByPlatformSettingsResponse automaticByPlatformSettings;
private @Nullable Boolean enableHotpatching;
private @Nullable String patchMode;
public Builder() {}
public Builder(PatchSettingsResponse defaults) {
Objects.requireNonNull(defaults);
this.assessmentMode = defaults.assessmentMode;
this.automaticByPlatformSettings = defaults.automaticByPlatformSettings;
this.enableHotpatching = defaults.enableHotpatching;
this.patchMode = defaults.patchMode;
}
@CustomType.Setter
public Builder assessmentMode(@Nullable String assessmentMode) {
this.assessmentMode = assessmentMode;
return this;
}
@CustomType.Setter
public Builder automaticByPlatformSettings(@Nullable WindowsVMGuestPatchAutomaticByPlatformSettingsResponse automaticByPlatformSettings) {
this.automaticByPlatformSettings = automaticByPlatformSettings;
return this;
}
@CustomType.Setter
public Builder enableHotpatching(@Nullable Boolean enableHotpatching) {
this.enableHotpatching = enableHotpatching;
return this;
}
@CustomType.Setter
public Builder patchMode(@Nullable String patchMode) {
this.patchMode = patchMode;
return this;
}
public PatchSettingsResponse build() {
final var _resultValue = new PatchSettingsResponse();
_resultValue.assessmentMode = assessmentMode;
_resultValue.automaticByPlatformSettings = automaticByPlatformSettings;
_resultValue.enableHotpatching = enableHotpatching;
_resultValue.patchMode = patchMode;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy