com.pulumi.azure.redis.outputs.CachePatchSchedule 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.redis.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class CachePatchSchedule {
/**
* @return the Weekday name - possible values include `Monday`, `Tuesday`, `Wednesday` etc.
*
*/
private String dayOfWeek;
/**
* @return The ISO 8601 timespan which specifies the amount of time the Redis Cache can be updated. Defaults to `PT5H`.
*
*/
private @Nullable String maintenanceWindow;
/**
* @return the Start Hour for maintenance in UTC - possible values range from `0 - 23`.
*
* > **Note:** The Patch Window lasts for `5` hours from the `start_hour_utc`.
*
*/
private @Nullable Integer startHourUtc;
private CachePatchSchedule() {}
/**
* @return the Weekday name - possible values include `Monday`, `Tuesday`, `Wednesday` etc.
*
*/
public String dayOfWeek() {
return this.dayOfWeek;
}
/**
* @return The ISO 8601 timespan which specifies the amount of time the Redis Cache can be updated. Defaults to `PT5H`.
*
*/
public Optional maintenanceWindow() {
return Optional.ofNullable(this.maintenanceWindow);
}
/**
* @return the Start Hour for maintenance in UTC - possible values range from `0 - 23`.
*
* > **Note:** The Patch Window lasts for `5` hours from the `start_hour_utc`.
*
*/
public Optional startHourUtc() {
return Optional.ofNullable(this.startHourUtc);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CachePatchSchedule defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String dayOfWeek;
private @Nullable String maintenanceWindow;
private @Nullable Integer startHourUtc;
public Builder() {}
public Builder(CachePatchSchedule defaults) {
Objects.requireNonNull(defaults);
this.dayOfWeek = defaults.dayOfWeek;
this.maintenanceWindow = defaults.maintenanceWindow;
this.startHourUtc = defaults.startHourUtc;
}
@CustomType.Setter
public Builder dayOfWeek(String dayOfWeek) {
if (dayOfWeek == null) {
throw new MissingRequiredPropertyException("CachePatchSchedule", "dayOfWeek");
}
this.dayOfWeek = dayOfWeek;
return this;
}
@CustomType.Setter
public Builder maintenanceWindow(@Nullable String maintenanceWindow) {
this.maintenanceWindow = maintenanceWindow;
return this;
}
@CustomType.Setter
public Builder startHourUtc(@Nullable Integer startHourUtc) {
this.startHourUtc = startHourUtc;
return this;
}
public CachePatchSchedule build() {
final var _resultValue = new CachePatchSchedule();
_resultValue.dayOfWeek = dayOfWeek;
_resultValue.maintenanceWindow = maintenanceWindow;
_resultValue.startHourUtc = startHourUtc;
return _resultValue;
}
}
}