com.pulumi.azurenative.sqlvirtualmachine.outputs.AutoPatchingSettingsResponse 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.sqlvirtualmachine.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AutoPatchingSettingsResponse {
/**
* @return Day of week to apply the patch on.
*
*/
private @Nullable String dayOfWeek;
/**
* @return Enable or disable autopatching on SQL virtual machine.
*
*/
private @Nullable Boolean enable;
/**
* @return Duration of patching.
*
*/
private @Nullable Integer maintenanceWindowDuration;
/**
* @return Hour of the day when patching is initiated. Local VM time.
*
*/
private @Nullable Integer maintenanceWindowStartingHour;
private AutoPatchingSettingsResponse() {}
/**
* @return Day of week to apply the patch on.
*
*/
public Optional dayOfWeek() {
return Optional.ofNullable(this.dayOfWeek);
}
/**
* @return Enable or disable autopatching on SQL virtual machine.
*
*/
public Optional enable() {
return Optional.ofNullable(this.enable);
}
/**
* @return Duration of patching.
*
*/
public Optional maintenanceWindowDuration() {
return Optional.ofNullable(this.maintenanceWindowDuration);
}
/**
* @return Hour of the day when patching is initiated. Local VM time.
*
*/
public Optional maintenanceWindowStartingHour() {
return Optional.ofNullable(this.maintenanceWindowStartingHour);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AutoPatchingSettingsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String dayOfWeek;
private @Nullable Boolean enable;
private @Nullable Integer maintenanceWindowDuration;
private @Nullable Integer maintenanceWindowStartingHour;
public Builder() {}
public Builder(AutoPatchingSettingsResponse defaults) {
Objects.requireNonNull(defaults);
this.dayOfWeek = defaults.dayOfWeek;
this.enable = defaults.enable;
this.maintenanceWindowDuration = defaults.maintenanceWindowDuration;
this.maintenanceWindowStartingHour = defaults.maintenanceWindowStartingHour;
}
@CustomType.Setter
public Builder dayOfWeek(@Nullable String dayOfWeek) {
this.dayOfWeek = dayOfWeek;
return this;
}
@CustomType.Setter
public Builder enable(@Nullable Boolean enable) {
this.enable = enable;
return this;
}
@CustomType.Setter
public Builder maintenanceWindowDuration(@Nullable Integer maintenanceWindowDuration) {
this.maintenanceWindowDuration = maintenanceWindowDuration;
return this;
}
@CustomType.Setter
public Builder maintenanceWindowStartingHour(@Nullable Integer maintenanceWindowStartingHour) {
this.maintenanceWindowStartingHour = maintenanceWindowStartingHour;
return this;
}
public AutoPatchingSettingsResponse build() {
final var _resultValue = new AutoPatchingSettingsResponse();
_resultValue.dayOfWeek = dayOfWeek;
_resultValue.enable = enable;
_resultValue.maintenanceWindowDuration = maintenanceWindowDuration;
_resultValue.maintenanceWindowStartingHour = maintenanceWindowStartingHour;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy