com.pulumi.azure.mysql.outputs.FlexibleServerMaintenanceWindow 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.mysql.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class FlexibleServerMaintenanceWindow {
/**
* @return The day of week for maintenance window. Defaults to `0`.
*
*/
private @Nullable Integer dayOfWeek;
/**
* @return The start hour for maintenance window. Defaults to `0`.
*
*/
private @Nullable Integer startHour;
/**
* @return The start minute for maintenance window. Defaults to `0`.
*
*/
private @Nullable Integer startMinute;
private FlexibleServerMaintenanceWindow() {}
/**
* @return The day of week for maintenance window. Defaults to `0`.
*
*/
public Optional dayOfWeek() {
return Optional.ofNullable(this.dayOfWeek);
}
/**
* @return The start hour for maintenance window. Defaults to `0`.
*
*/
public Optional startHour() {
return Optional.ofNullable(this.startHour);
}
/**
* @return The start minute for maintenance window. Defaults to `0`.
*
*/
public Optional startMinute() {
return Optional.ofNullable(this.startMinute);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FlexibleServerMaintenanceWindow defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer dayOfWeek;
private @Nullable Integer startHour;
private @Nullable Integer startMinute;
public Builder() {}
public Builder(FlexibleServerMaintenanceWindow defaults) {
Objects.requireNonNull(defaults);
this.dayOfWeek = defaults.dayOfWeek;
this.startHour = defaults.startHour;
this.startMinute = defaults.startMinute;
}
@CustomType.Setter
public Builder dayOfWeek(@Nullable Integer dayOfWeek) {
this.dayOfWeek = dayOfWeek;
return this;
}
@CustomType.Setter
public Builder startHour(@Nullable Integer startHour) {
this.startHour = startHour;
return this;
}
@CustomType.Setter
public Builder startMinute(@Nullable Integer startMinute) {
this.startMinute = startMinute;
return this;
}
public FlexibleServerMaintenanceWindow build() {
final var _resultValue = new FlexibleServerMaintenanceWindow();
_resultValue.dayOfWeek = dayOfWeek;
_resultValue.startHour = startHour;
_resultValue.startMinute = startMinute;
return _resultValue;
}
}
}