com.pulumi.azure.mssql.inputs.VirtualMachineAutoPatchingArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.mssql.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
public final class VirtualMachineAutoPatchingArgs extends com.pulumi.resources.ResourceArgs {
public static final VirtualMachineAutoPatchingArgs Empty = new VirtualMachineAutoPatchingArgs();
/**
* The day of week to apply the patch on. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
*
*/
@Import(name="dayOfWeek", required=true)
private Output dayOfWeek;
/**
* @return The day of week to apply the patch on. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
*
*/
public Output dayOfWeek() {
return this.dayOfWeek;
}
/**
* The size of the Maintenance Window in minutes.
*
*/
@Import(name="maintenanceWindowDurationInMinutes", required=true)
private Output maintenanceWindowDurationInMinutes;
/**
* @return The size of the Maintenance Window in minutes.
*
*/
public Output maintenanceWindowDurationInMinutes() {
return this.maintenanceWindowDurationInMinutes;
}
/**
* The Hour, in the Virtual Machine Time-Zone when the patching maintenance window should begin.
*
*/
@Import(name="maintenanceWindowStartingHour", required=true)
private Output maintenanceWindowStartingHour;
/**
* @return The Hour, in the Virtual Machine Time-Zone when the patching maintenance window should begin.
*
*/
public Output maintenanceWindowStartingHour() {
return this.maintenanceWindowStartingHour;
}
private VirtualMachineAutoPatchingArgs() {}
private VirtualMachineAutoPatchingArgs(VirtualMachineAutoPatchingArgs $) {
this.dayOfWeek = $.dayOfWeek;
this.maintenanceWindowDurationInMinutes = $.maintenanceWindowDurationInMinutes;
this.maintenanceWindowStartingHour = $.maintenanceWindowStartingHour;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VirtualMachineAutoPatchingArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private VirtualMachineAutoPatchingArgs $;
public Builder() {
$ = new VirtualMachineAutoPatchingArgs();
}
public Builder(VirtualMachineAutoPatchingArgs defaults) {
$ = new VirtualMachineAutoPatchingArgs(Objects.requireNonNull(defaults));
}
/**
* @param dayOfWeek The day of week to apply the patch on. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
*
* @return builder
*
*/
public Builder dayOfWeek(Output dayOfWeek) {
$.dayOfWeek = dayOfWeek;
return this;
}
/**
* @param dayOfWeek The day of week to apply the patch on. Possible values are `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`.
*
* @return builder
*
*/
public Builder dayOfWeek(String dayOfWeek) {
return dayOfWeek(Output.of(dayOfWeek));
}
/**
* @param maintenanceWindowDurationInMinutes The size of the Maintenance Window in minutes.
*
* @return builder
*
*/
public Builder maintenanceWindowDurationInMinutes(Output maintenanceWindowDurationInMinutes) {
$.maintenanceWindowDurationInMinutes = maintenanceWindowDurationInMinutes;
return this;
}
/**
* @param maintenanceWindowDurationInMinutes The size of the Maintenance Window in minutes.
*
* @return builder
*
*/
public Builder maintenanceWindowDurationInMinutes(Integer maintenanceWindowDurationInMinutes) {
return maintenanceWindowDurationInMinutes(Output.of(maintenanceWindowDurationInMinutes));
}
/**
* @param maintenanceWindowStartingHour The Hour, in the Virtual Machine Time-Zone when the patching maintenance window should begin.
*
* @return builder
*
*/
public Builder maintenanceWindowStartingHour(Output maintenanceWindowStartingHour) {
$.maintenanceWindowStartingHour = maintenanceWindowStartingHour;
return this;
}
/**
* @param maintenanceWindowStartingHour The Hour, in the Virtual Machine Time-Zone when the patching maintenance window should begin.
*
* @return builder
*
*/
public Builder maintenanceWindowStartingHour(Integer maintenanceWindowStartingHour) {
return maintenanceWindowStartingHour(Output.of(maintenanceWindowStartingHour));
}
public VirtualMachineAutoPatchingArgs build() {
if ($.dayOfWeek == null) {
throw new MissingRequiredPropertyException("VirtualMachineAutoPatchingArgs", "dayOfWeek");
}
if ($.maintenanceWindowDurationInMinutes == null) {
throw new MissingRequiredPropertyException("VirtualMachineAutoPatchingArgs", "maintenanceWindowDurationInMinutes");
}
if ($.maintenanceWindowStartingHour == null) {
throw new MissingRequiredPropertyException("VirtualMachineAutoPatchingArgs", "maintenanceWindowStartingHour");
}
return $;
}
}
}