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

com.pulumi.azurenative.netapp.SnapshotPolicyArgs 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.netapp;

import com.pulumi.azurenative.netapp.inputs.DailyScheduleArgs;
import com.pulumi.azurenative.netapp.inputs.HourlyScheduleArgs;
import com.pulumi.azurenative.netapp.inputs.MonthlyScheduleArgs;
import com.pulumi.azurenative.netapp.inputs.WeeklyScheduleArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SnapshotPolicyArgs Empty = new SnapshotPolicyArgs();

    /**
     * The name of the NetApp account
     * 
     */
    @Import(name="accountName", required=true)
    private Output accountName;

    /**
     * @return The name of the NetApp account
     * 
     */
    public Output accountName() {
        return this.accountName;
    }

    /**
     * Schedule for daily snapshots
     * 
     */
    @Import(name="dailySchedule")
    private @Nullable Output dailySchedule;

    /**
     * @return Schedule for daily snapshots
     * 
     */
    public Optional> dailySchedule() {
        return Optional.ofNullable(this.dailySchedule);
    }

    /**
     * The property to decide policy is enabled or not
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return The property to decide policy is enabled or not
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * Schedule for hourly snapshots
     * 
     */
    @Import(name="hourlySchedule")
    private @Nullable Output hourlySchedule;

    /**
     * @return Schedule for hourly snapshots
     * 
     */
    public Optional> hourlySchedule() {
        return Optional.ofNullable(this.hourlySchedule);
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Schedule for monthly snapshots
     * 
     */
    @Import(name="monthlySchedule")
    private @Nullable Output monthlySchedule;

    /**
     * @return Schedule for monthly snapshots
     * 
     */
    public Optional> monthlySchedule() {
        return Optional.ofNullable(this.monthlySchedule);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The name of the snapshot policy
     * 
     */
    @Import(name="snapshotPolicyName")
    private @Nullable Output snapshotPolicyName;

    /**
     * @return The name of the snapshot policy
     * 
     */
    public Optional> snapshotPolicyName() {
        return Optional.ofNullable(this.snapshotPolicyName);
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Schedule for weekly snapshots
     * 
     */
    @Import(name="weeklySchedule")
    private @Nullable Output weeklySchedule;

    /**
     * @return Schedule for weekly snapshots
     * 
     */
    public Optional> weeklySchedule() {
        return Optional.ofNullable(this.weeklySchedule);
    }

    private SnapshotPolicyArgs() {}

    private SnapshotPolicyArgs(SnapshotPolicyArgs $) {
        this.accountName = $.accountName;
        this.dailySchedule = $.dailySchedule;
        this.enabled = $.enabled;
        this.hourlySchedule = $.hourlySchedule;
        this.location = $.location;
        this.monthlySchedule = $.monthlySchedule;
        this.resourceGroupName = $.resourceGroupName;
        this.snapshotPolicyName = $.snapshotPolicyName;
        this.tags = $.tags;
        this.weeklySchedule = $.weeklySchedule;
    }

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

    public static final class Builder {
        private SnapshotPolicyArgs $;

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

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

        /**
         * @param accountName The name of the NetApp account
         * 
         * @return builder
         * 
         */
        public Builder accountName(Output accountName) {
            $.accountName = accountName;
            return this;
        }

        /**
         * @param accountName The name of the NetApp account
         * 
         * @return builder
         * 
         */
        public Builder accountName(String accountName) {
            return accountName(Output.of(accountName));
        }

        /**
         * @param dailySchedule Schedule for daily snapshots
         * 
         * @return builder
         * 
         */
        public Builder dailySchedule(@Nullable Output dailySchedule) {
            $.dailySchedule = dailySchedule;
            return this;
        }

        /**
         * @param dailySchedule Schedule for daily snapshots
         * 
         * @return builder
         * 
         */
        public Builder dailySchedule(DailyScheduleArgs dailySchedule) {
            return dailySchedule(Output.of(dailySchedule));
        }

        /**
         * @param enabled The property to decide policy is enabled or not
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled The property to decide policy is enabled or not
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param hourlySchedule Schedule for hourly snapshots
         * 
         * @return builder
         * 
         */
        public Builder hourlySchedule(@Nullable Output hourlySchedule) {
            $.hourlySchedule = hourlySchedule;
            return this;
        }

        /**
         * @param hourlySchedule Schedule for hourly snapshots
         * 
         * @return builder
         * 
         */
        public Builder hourlySchedule(HourlyScheduleArgs hourlySchedule) {
            return hourlySchedule(Output.of(hourlySchedule));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param monthlySchedule Schedule for monthly snapshots
         * 
         * @return builder
         * 
         */
        public Builder monthlySchedule(@Nullable Output monthlySchedule) {
            $.monthlySchedule = monthlySchedule;
            return this;
        }

        /**
         * @param monthlySchedule Schedule for monthly snapshots
         * 
         * @return builder
         * 
         */
        public Builder monthlySchedule(MonthlyScheduleArgs monthlySchedule) {
            return monthlySchedule(Output.of(monthlySchedule));
        }

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

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

        /**
         * @param snapshotPolicyName The name of the snapshot policy
         * 
         * @return builder
         * 
         */
        public Builder snapshotPolicyName(@Nullable Output snapshotPolicyName) {
            $.snapshotPolicyName = snapshotPolicyName;
            return this;
        }

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

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param weeklySchedule Schedule for weekly snapshots
         * 
         * @return builder
         * 
         */
        public Builder weeklySchedule(@Nullable Output weeklySchedule) {
            $.weeklySchedule = weeklySchedule;
            return this;
        }

        /**
         * @param weeklySchedule Schedule for weekly snapshots
         * 
         * @return builder
         * 
         */
        public Builder weeklySchedule(WeeklyScheduleArgs weeklySchedule) {
            return weeklySchedule(Output.of(weeklySchedule));
        }

        public SnapshotPolicyArgs build() {
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("SnapshotPolicyArgs", "accountName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("SnapshotPolicyArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy