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

com.pulumi.azurenative.web.inputs.ListWebAppBackupStatusSecretsSlotArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
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.web.inputs;

import com.pulumi.azurenative.web.inputs.BackupScheduleArgs;
import com.pulumi.azurenative.web.inputs.DatabaseBackupSettingArgs;
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.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ListWebAppBackupStatusSecretsSlotArgs extends com.pulumi.resources.InvokeArgs {

    public static final ListWebAppBackupStatusSecretsSlotArgs Empty = new ListWebAppBackupStatusSecretsSlotArgs();

    /**
     * ID of backup.
     * 
     */
    @Import(name="backupId", required=true)
    private Output backupId;

    /**
     * @return ID of backup.
     * 
     */
    public Output backupId() {
        return this.backupId;
    }

    /**
     * Name of the backup.
     * 
     */
    @Import(name="backupName")
    private @Nullable Output backupName;

    /**
     * @return Name of the backup.
     * 
     */
    public Optional> backupName() {
        return Optional.ofNullable(this.backupName);
    }

    /**
     * Schedule for the backup if it is executed periodically.
     * 
     */
    @Import(name="backupSchedule")
    private @Nullable Output backupSchedule;

    /**
     * @return Schedule for the backup if it is executed periodically.
     * 
     */
    public Optional> backupSchedule() {
        return Optional.ofNullable(this.backupSchedule);
    }

    /**
     * Databases included in the backup.
     * 
     */
    @Import(name="databases")
    private @Nullable Output> databases;

    /**
     * @return Databases included in the backup.
     * 
     */
    public Optional>> databases() {
        return Optional.ofNullable(this.databases);
    }

    /**
     * True if the backup schedule is enabled (must be included in that case), false if the backup schedule should be disabled.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return True if the backup schedule is enabled (must be included in that case), false if the backup schedule should be disabled.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * Kind of resource.
     * 
     */
    @Import(name="kind")
    private @Nullable Output kind;

    /**
     * @return Kind of resource.
     * 
     */
    public Optional> kind() {
        return Optional.ofNullable(this.kind);
    }

    /**
     * Name of web app.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Name of web app.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Name of the resource group to which the resource belongs.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of the resource group to which the resource belongs.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Name of web app slot. If not specified then will default to production slot.
     * 
     */
    @Import(name="slot", required=true)
    private Output slot;

    /**
     * @return Name of web app slot. If not specified then will default to production slot.
     * 
     */
    public Output slot() {
        return this.slot;
    }

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

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

    private ListWebAppBackupStatusSecretsSlotArgs() {}

    private ListWebAppBackupStatusSecretsSlotArgs(ListWebAppBackupStatusSecretsSlotArgs $) {
        this.backupId = $.backupId;
        this.backupName = $.backupName;
        this.backupSchedule = $.backupSchedule;
        this.databases = $.databases;
        this.enabled = $.enabled;
        this.kind = $.kind;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.slot = $.slot;
        this.storageAccountUrl = $.storageAccountUrl;
    }

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

    public static final class Builder {
        private ListWebAppBackupStatusSecretsSlotArgs $;

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

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

        /**
         * @param backupId ID of backup.
         * 
         * @return builder
         * 
         */
        public Builder backupId(Output backupId) {
            $.backupId = backupId;
            return this;
        }

        /**
         * @param backupId ID of backup.
         * 
         * @return builder
         * 
         */
        public Builder backupId(String backupId) {
            return backupId(Output.of(backupId));
        }

        /**
         * @param backupName Name of the backup.
         * 
         * @return builder
         * 
         */
        public Builder backupName(@Nullable Output backupName) {
            $.backupName = backupName;
            return this;
        }

        /**
         * @param backupName Name of the backup.
         * 
         * @return builder
         * 
         */
        public Builder backupName(String backupName) {
            return backupName(Output.of(backupName));
        }

        /**
         * @param backupSchedule Schedule for the backup if it is executed periodically.
         * 
         * @return builder
         * 
         */
        public Builder backupSchedule(@Nullable Output backupSchedule) {
            $.backupSchedule = backupSchedule;
            return this;
        }

        /**
         * @param backupSchedule Schedule for the backup if it is executed periodically.
         * 
         * @return builder
         * 
         */
        public Builder backupSchedule(BackupScheduleArgs backupSchedule) {
            return backupSchedule(Output.of(backupSchedule));
        }

        /**
         * @param databases Databases included in the backup.
         * 
         * @return builder
         * 
         */
        public Builder databases(@Nullable Output> databases) {
            $.databases = databases;
            return this;
        }

        /**
         * @param databases Databases included in the backup.
         * 
         * @return builder
         * 
         */
        public Builder databases(List databases) {
            return databases(Output.of(databases));
        }

        /**
         * @param databases Databases included in the backup.
         * 
         * @return builder
         * 
         */
        public Builder databases(DatabaseBackupSettingArgs... databases) {
            return databases(List.of(databases));
        }

        /**
         * @param enabled True if the backup schedule is enabled (must be included in that case), false if the backup schedule should be disabled.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled True if the backup schedule is enabled (must be included in that case), false if the backup schedule should be disabled.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param kind Kind of resource.
         * 
         * @return builder
         * 
         */
        public Builder kind(@Nullable Output kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind Kind of resource.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Output.of(kind));
        }

        /**
         * @param name Name of web app.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of web app.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param resourceGroupName Name of the resource group to which the resource belongs.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of the resource group to which the resource belongs.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param slot Name of web app slot. If not specified then will default to production slot.
         * 
         * @return builder
         * 
         */
        public Builder slot(Output slot) {
            $.slot = slot;
            return this;
        }

        /**
         * @param slot Name of web app slot. If not specified then will default to production slot.
         * 
         * @return builder
         * 
         */
        public Builder slot(String slot) {
            return slot(Output.of(slot));
        }

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

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

        public ListWebAppBackupStatusSecretsSlotArgs build() {
            if ($.backupId == null) {
                throw new MissingRequiredPropertyException("ListWebAppBackupStatusSecretsSlotArgs", "backupId");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("ListWebAppBackupStatusSecretsSlotArgs", "name");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ListWebAppBackupStatusSecretsSlotArgs", "resourceGroupName");
            }
            if ($.slot == null) {
                throw new MissingRequiredPropertyException("ListWebAppBackupStatusSecretsSlotArgs", "slot");
            }
            if ($.storageAccountUrl == null) {
                throw new MissingRequiredPropertyException("ListWebAppBackupStatusSecretsSlotArgs", "storageAccountUrl");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy