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

com.pulumi.azurenative.dataprotection.inputs.BackupScheduleArgs Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.azurenative.dataprotection.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Schedule for backup
 * 
 */
public final class BackupScheduleArgs extends com.pulumi.resources.ResourceArgs {

    public static final BackupScheduleArgs Empty = new BackupScheduleArgs();

    /**
     * ISO 8601 repeating time interval format
     * 
     */
    @Import(name="repeatingTimeIntervals", required=true)
    private Output> repeatingTimeIntervals;

    /**
     * @return ISO 8601 repeating time interval format
     * 
     */
    public Output> repeatingTimeIntervals() {
        return this.repeatingTimeIntervals;
    }

    /**
     * Time zone for a schedule. Example: Pacific Standard Time
     * 
     */
    @Import(name="timeZone")
    private @Nullable Output timeZone;

    /**
     * @return Time zone for a schedule. Example: Pacific Standard Time
     * 
     */
    public Optional> timeZone() {
        return Optional.ofNullable(this.timeZone);
    }

    private BackupScheduleArgs() {}

    private BackupScheduleArgs(BackupScheduleArgs $) {
        this.repeatingTimeIntervals = $.repeatingTimeIntervals;
        this.timeZone = $.timeZone;
    }

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

    public static final class Builder {
        private BackupScheduleArgs $;

        public Builder() {
            $ = new BackupScheduleArgs();
        }

        public Builder(BackupScheduleArgs defaults) {
            $ = new BackupScheduleArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param repeatingTimeIntervals ISO 8601 repeating time interval format
         * 
         * @return builder
         * 
         */
        public Builder repeatingTimeIntervals(Output> repeatingTimeIntervals) {
            $.repeatingTimeIntervals = repeatingTimeIntervals;
            return this;
        }

        /**
         * @param repeatingTimeIntervals ISO 8601 repeating time interval format
         * 
         * @return builder
         * 
         */
        public Builder repeatingTimeIntervals(List repeatingTimeIntervals) {
            return repeatingTimeIntervals(Output.of(repeatingTimeIntervals));
        }

        /**
         * @param repeatingTimeIntervals ISO 8601 repeating time interval format
         * 
         * @return builder
         * 
         */
        public Builder repeatingTimeIntervals(String... repeatingTimeIntervals) {
            return repeatingTimeIntervals(List.of(repeatingTimeIntervals));
        }

        /**
         * @param timeZone Time zone for a schedule. Example: Pacific Standard Time
         * 
         * @return builder
         * 
         */
        public Builder timeZone(@Nullable Output timeZone) {
            $.timeZone = timeZone;
            return this;
        }

        /**
         * @param timeZone Time zone for a schedule. Example: Pacific Standard Time
         * 
         * @return builder
         * 
         */
        public Builder timeZone(String timeZone) {
            return timeZone(Output.of(timeZone));
        }

        public BackupScheduleArgs build() {
            if ($.repeatingTimeIntervals == null) {
                throw new MissingRequiredPropertyException("BackupScheduleArgs", "repeatingTimeIntervals");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy