com.pulumi.linode.outputs.InstanceBackupsSchedule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of linode Show documentation
Show all versions of linode Show documentation
A Pulumi package for creating and managing linode cloud 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.linode.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class InstanceBackupsSchedule {
/**
* @return The day of the week that your Linode's weekly Backup is taken. If not set manually, a day will be chosen for you. Backups are taken every day, but backups taken on this day are preferred when selecting backups to retain for a longer period. If not set manually, then when backups are initially enabled, this may come back as "Scheduling" until the day is automatically selected.
*
*/
private @Nullable String day;
/**
* @return The window ('W0'-'W22') in which your backups will be taken, in UTC. A backups window is a two-hour span of time in which the backup may occur. For example, 'W10' indicates that your backups should be taken between 10:00 and 12:00. If you do not choose a backup window, one will be selected for you automatically. If not set manually, when backups are initially enabled this may come back as Scheduling until the window is automatically selected.
*
*/
private @Nullable String window;
private InstanceBackupsSchedule() {}
/**
* @return The day of the week that your Linode's weekly Backup is taken. If not set manually, a day will be chosen for you. Backups are taken every day, but backups taken on this day are preferred when selecting backups to retain for a longer period. If not set manually, then when backups are initially enabled, this may come back as "Scheduling" until the day is automatically selected.
*
*/
public Optional day() {
return Optional.ofNullable(this.day);
}
/**
* @return The window ('W0'-'W22') in which your backups will be taken, in UTC. A backups window is a two-hour span of time in which the backup may occur. For example, 'W10' indicates that your backups should be taken between 10:00 and 12:00. If you do not choose a backup window, one will be selected for you automatically. If not set manually, when backups are initially enabled this may come back as Scheduling until the window is automatically selected.
*
*/
public Optional window() {
return Optional.ofNullable(this.window);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(InstanceBackupsSchedule defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String day;
private @Nullable String window;
public Builder() {}
public Builder(InstanceBackupsSchedule defaults) {
Objects.requireNonNull(defaults);
this.day = defaults.day;
this.window = defaults.window;
}
@CustomType.Setter
public Builder day(@Nullable String day) {
this.day = day;
return this;
}
@CustomType.Setter
public Builder window(@Nullable String window) {
this.window = window;
return this;
}
public InstanceBackupsSchedule build() {
final var _resultValue = new InstanceBackupsSchedule();
_resultValue.day = day;
_resultValue.window = window;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy