All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.linode.outputs.GetInstancesInstanceBackupSchedule Maven / Gradle / Ivy

There is a newer version: 4.31.0-alpha.1732773076
Show newest version
// *** 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 com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class GetInstancesInstanceBackupSchedule {
    /**
     * @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 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 String window;

    private GetInstancesInstanceBackupSchedule() {}
    /**
     * @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 String day() {
        return 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 String window() {
        return this.window;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(GetInstancesInstanceBackupSchedule defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String day;
        private String window;
        public Builder() {}
        public Builder(GetInstancesInstanceBackupSchedule defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.day = defaults.day;
    	      this.window = defaults.window;
        }

        @CustomType.Setter
        public Builder day(String day) {
            if (day == null) {
              throw new MissingRequiredPropertyException("GetInstancesInstanceBackupSchedule", "day");
            }
            this.day = day;
            return this;
        }
        @CustomType.Setter
        public Builder window(String window) {
            if (window == null) {
              throw new MissingRequiredPropertyException("GetInstancesInstanceBackupSchedule", "window");
            }
            this.window = window;
            return this;
        }
        public GetInstancesInstanceBackupSchedule build() {
            final var _resultValue = new GetInstancesInstanceBackupSchedule();
            _resultValue.day = day;
            _resultValue.window = window;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy