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

com.pulumi.azurenative.storsimple.BackupScheduleArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.storsimple;

import com.pulumi.azurenative.storsimple.enums.BackupType;
import com.pulumi.azurenative.storsimple.enums.Kind;
import com.pulumi.azurenative.storsimple.enums.ScheduleStatus;
import com.pulumi.azurenative.storsimple.inputs.ScheduleRecurrenceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final BackupScheduleArgs Empty = new BackupScheduleArgs();

    /**
     * The backup policy name.
     * 
     */
    @Import(name="backupPolicyName", required=true)
    private Output backupPolicyName;

    /**
     * @return The backup policy name.
     * 
     */
    public Output backupPolicyName() {
        return this.backupPolicyName;
    }

    /**
     * The backup schedule name.
     * 
     */
    @Import(name="backupScheduleName")
    private @Nullable Output backupScheduleName;

    /**
     * @return The backup schedule name.
     * 
     */
    public Optional> backupScheduleName() {
        return Optional.ofNullable(this.backupScheduleName);
    }

    /**
     * The type of backup which needs to be taken.
     * 
     */
    @Import(name="backupType", required=true)
    private Output backupType;

    /**
     * @return The type of backup which needs to be taken.
     * 
     */
    public Output backupType() {
        return this.backupType;
    }

    /**
     * The device name
     * 
     */
    @Import(name="deviceName", required=true)
    private Output deviceName;

    /**
     * @return The device name
     * 
     */
    public Output deviceName() {
        return this.deviceName;
    }

    /**
     * The Kind of the object. Currently only Series8000 is supported
     * 
     */
    @Import(name="kind")
    private @Nullable Output kind;

    /**
     * @return The Kind of the object. Currently only Series8000 is supported
     * 
     */
    public Optional> kind() {
        return Optional.ofNullable(this.kind);
    }

    /**
     * The manager name
     * 
     */
    @Import(name="managerName", required=true)
    private Output managerName;

    /**
     * @return The manager name
     * 
     */
    public Output managerName() {
        return this.managerName;
    }

    /**
     * The resource group name
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The resource group name
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The number of backups to be retained.
     * 
     */
    @Import(name="retentionCount", required=true)
    private Output retentionCount;

    /**
     * @return The number of backups to be retained.
     * 
     */
    public Output retentionCount() {
        return this.retentionCount;
    }

    /**
     * The schedule recurrence.
     * 
     */
    @Import(name="scheduleRecurrence", required=true)
    private Output scheduleRecurrence;

    /**
     * @return The schedule recurrence.
     * 
     */
    public Output scheduleRecurrence() {
        return this.scheduleRecurrence;
    }

    /**
     * The schedule status.
     * 
     */
    @Import(name="scheduleStatus", required=true)
    private Output scheduleStatus;

    /**
     * @return The schedule status.
     * 
     */
    public Output scheduleStatus() {
        return this.scheduleStatus;
    }

    /**
     * The start time of the schedule.
     * 
     */
    @Import(name="startTime", required=true)
    private Output startTime;

    /**
     * @return The start time of the schedule.
     * 
     */
    public Output startTime() {
        return this.startTime;
    }

    private BackupScheduleArgs() {}

    private BackupScheduleArgs(BackupScheduleArgs $) {
        this.backupPolicyName = $.backupPolicyName;
        this.backupScheduleName = $.backupScheduleName;
        this.backupType = $.backupType;
        this.deviceName = $.deviceName;
        this.kind = $.kind;
        this.managerName = $.managerName;
        this.resourceGroupName = $.resourceGroupName;
        this.retentionCount = $.retentionCount;
        this.scheduleRecurrence = $.scheduleRecurrence;
        this.scheduleStatus = $.scheduleStatus;
        this.startTime = $.startTime;
    }

    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 backupPolicyName The backup policy name.
         * 
         * @return builder
         * 
         */
        public Builder backupPolicyName(Output backupPolicyName) {
            $.backupPolicyName = backupPolicyName;
            return this;
        }

        /**
         * @param backupPolicyName The backup policy name.
         * 
         * @return builder
         * 
         */
        public Builder backupPolicyName(String backupPolicyName) {
            return backupPolicyName(Output.of(backupPolicyName));
        }

        /**
         * @param backupScheduleName The backup schedule name.
         * 
         * @return builder
         * 
         */
        public Builder backupScheduleName(@Nullable Output backupScheduleName) {
            $.backupScheduleName = backupScheduleName;
            return this;
        }

        /**
         * @param backupScheduleName The backup schedule name.
         * 
         * @return builder
         * 
         */
        public Builder backupScheduleName(String backupScheduleName) {
            return backupScheduleName(Output.of(backupScheduleName));
        }

        /**
         * @param backupType The type of backup which needs to be taken.
         * 
         * @return builder
         * 
         */
        public Builder backupType(Output backupType) {
            $.backupType = backupType;
            return this;
        }

        /**
         * @param backupType The type of backup which needs to be taken.
         * 
         * @return builder
         * 
         */
        public Builder backupType(BackupType backupType) {
            return backupType(Output.of(backupType));
        }

        /**
         * @param deviceName The device name
         * 
         * @return builder
         * 
         */
        public Builder deviceName(Output deviceName) {
            $.deviceName = deviceName;
            return this;
        }

        /**
         * @param deviceName The device name
         * 
         * @return builder
         * 
         */
        public Builder deviceName(String deviceName) {
            return deviceName(Output.of(deviceName));
        }

        /**
         * @param kind The Kind of the object. Currently only Series8000 is supported
         * 
         * @return builder
         * 
         */
        public Builder kind(@Nullable Output kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind The Kind of the object. Currently only Series8000 is supported
         * 
         * @return builder
         * 
         */
        public Builder kind(Kind kind) {
            return kind(Output.of(kind));
        }

        /**
         * @param managerName The manager name
         * 
         * @return builder
         * 
         */
        public Builder managerName(Output managerName) {
            $.managerName = managerName;
            return this;
        }

        /**
         * @param managerName The manager name
         * 
         * @return builder
         * 
         */
        public Builder managerName(String managerName) {
            return managerName(Output.of(managerName));
        }

        /**
         * @param resourceGroupName The resource group name
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The resource group name
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param retentionCount The number of backups to be retained.
         * 
         * @return builder
         * 
         */
        public Builder retentionCount(Output retentionCount) {
            $.retentionCount = retentionCount;
            return this;
        }

        /**
         * @param retentionCount The number of backups to be retained.
         * 
         * @return builder
         * 
         */
        public Builder retentionCount(Double retentionCount) {
            return retentionCount(Output.of(retentionCount));
        }

        /**
         * @param scheduleRecurrence The schedule recurrence.
         * 
         * @return builder
         * 
         */
        public Builder scheduleRecurrence(Output scheduleRecurrence) {
            $.scheduleRecurrence = scheduleRecurrence;
            return this;
        }

        /**
         * @param scheduleRecurrence The schedule recurrence.
         * 
         * @return builder
         * 
         */
        public Builder scheduleRecurrence(ScheduleRecurrenceArgs scheduleRecurrence) {
            return scheduleRecurrence(Output.of(scheduleRecurrence));
        }

        /**
         * @param scheduleStatus The schedule status.
         * 
         * @return builder
         * 
         */
        public Builder scheduleStatus(Output scheduleStatus) {
            $.scheduleStatus = scheduleStatus;
            return this;
        }

        /**
         * @param scheduleStatus The schedule status.
         * 
         * @return builder
         * 
         */
        public Builder scheduleStatus(ScheduleStatus scheduleStatus) {
            return scheduleStatus(Output.of(scheduleStatus));
        }

        /**
         * @param startTime The start time of the schedule.
         * 
         * @return builder
         * 
         */
        public Builder startTime(Output startTime) {
            $.startTime = startTime;
            return this;
        }

        /**
         * @param startTime The start time of the schedule.
         * 
         * @return builder
         * 
         */
        public Builder startTime(String startTime) {
            return startTime(Output.of(startTime));
        }

        public BackupScheduleArgs build() {
            if ($.backupPolicyName == null) {
                throw new MissingRequiredPropertyException("BackupScheduleArgs", "backupPolicyName");
            }
            if ($.backupType == null) {
                throw new MissingRequiredPropertyException("BackupScheduleArgs", "backupType");
            }
            if ($.deviceName == null) {
                throw new MissingRequiredPropertyException("BackupScheduleArgs", "deviceName");
            }
            if ($.managerName == null) {
                throw new MissingRequiredPropertyException("BackupScheduleArgs", "managerName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("BackupScheduleArgs", "resourceGroupName");
            }
            if ($.retentionCount == null) {
                throw new MissingRequiredPropertyException("BackupScheduleArgs", "retentionCount");
            }
            if ($.scheduleRecurrence == null) {
                throw new MissingRequiredPropertyException("BackupScheduleArgs", "scheduleRecurrence");
            }
            if ($.scheduleStatus == null) {
                throw new MissingRequiredPropertyException("BackupScheduleArgs", "scheduleStatus");
            }
            if ($.startTime == null) {
                throw new MissingRequiredPropertyException("BackupScheduleArgs", "startTime");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy