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

com.pulumi.azure.appservice.inputs.LinuxWebAppBackupArgs Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.appservice.inputs;

import com.pulumi.azure.appservice.inputs.LinuxWebAppBackupScheduleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class LinuxWebAppBackupArgs extends com.pulumi.resources.ResourceArgs {

    public static final LinuxWebAppBackupArgs Empty = new LinuxWebAppBackupArgs();

    /**
     * Should this backup job be enabled? Defaults to `true`.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Should this backup job be enabled? Defaults to `true`.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * The name which should be used for this Backup.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name which should be used for this Backup.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * A `schedule` block as defined below.
     * 
     */
    @Import(name="schedule", required=true)
    private Output schedule;

    /**
     * @return A `schedule` block as defined below.
     * 
     */
    public Output schedule() {
        return this.schedule;
    }

    /**
     * The SAS URL to the container.
     * 
     */
    @Import(name="storageAccountUrl", required=true)
    private Output storageAccountUrl;

    /**
     * @return The SAS URL to the container.
     * 
     */
    public Output storageAccountUrl() {
        return this.storageAccountUrl;
    }

    private LinuxWebAppBackupArgs() {}

    private LinuxWebAppBackupArgs(LinuxWebAppBackupArgs $) {
        this.enabled = $.enabled;
        this.name = $.name;
        this.schedule = $.schedule;
        this.storageAccountUrl = $.storageAccountUrl;
    }

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

    public static final class Builder {
        private LinuxWebAppBackupArgs $;

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

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

        /**
         * @param enabled Should this backup job be enabled? Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Should this backup job be enabled? Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param name The name which should be used for this Backup.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this Backup.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param schedule A `schedule` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder schedule(Output schedule) {
            $.schedule = schedule;
            return this;
        }

        /**
         * @param schedule A `schedule` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder schedule(LinuxWebAppBackupScheduleArgs schedule) {
            return schedule(Output.of(schedule));
        }

        /**
         * @param storageAccountUrl The SAS URL to the container.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountUrl(Output storageAccountUrl) {
            $.storageAccountUrl = storageAccountUrl;
            return this;
        }

        /**
         * @param storageAccountUrl The SAS URL to the container.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountUrl(String storageAccountUrl) {
            return storageAccountUrl(Output.of(storageAccountUrl));
        }

        public LinuxWebAppBackupArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("LinuxWebAppBackupArgs", "name");
            }
            if ($.schedule == null) {
                throw new MissingRequiredPropertyException("LinuxWebAppBackupArgs", "schedule");
            }
            if ($.storageAccountUrl == null) {
                throw new MissingRequiredPropertyException("LinuxWebAppBackupArgs", "storageAccountUrl");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy