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

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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Weekly Schedule properties, make a snapshot every week at a specific day or days
 * 
 */
public final class WeeklyScheduleArgs extends com.pulumi.resources.ResourceArgs {

    public static final WeeklyScheduleArgs Empty = new WeeklyScheduleArgs();

    /**
     * Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english
     * 
     */
    @Import(name="day")
    private @Nullable Output day;

    /**
     * @return Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english
     * 
     */
    public Optional> day() {
        return Optional.ofNullable(this.day);
    }

    /**
     * Indicates which hour in UTC timezone a snapshot should be taken
     * 
     */
    @Import(name="hour")
    private @Nullable Output hour;

    /**
     * @return Indicates which hour in UTC timezone a snapshot should be taken
     * 
     */
    public Optional> hour() {
        return Optional.ofNullable(this.hour);
    }

    /**
     * Indicates which minute snapshot should be taken
     * 
     */
    @Import(name="minute")
    private @Nullable Output minute;

    /**
     * @return Indicates which minute snapshot should be taken
     * 
     */
    public Optional> minute() {
        return Optional.ofNullable(this.minute);
    }

    /**
     * Weekly snapshot count to keep
     * 
     */
    @Import(name="snapshotsToKeep")
    private @Nullable Output snapshotsToKeep;

    /**
     * @return Weekly snapshot count to keep
     * 
     */
    public Optional> snapshotsToKeep() {
        return Optional.ofNullable(this.snapshotsToKeep);
    }

    /**
     * Resource size in bytes, current storage usage for the volume in bytes
     * 
     */
    @Import(name="usedBytes")
    private @Nullable Output usedBytes;

    /**
     * @return Resource size in bytes, current storage usage for the volume in bytes
     * 
     */
    public Optional> usedBytes() {
        return Optional.ofNullable(this.usedBytes);
    }

    private WeeklyScheduleArgs() {}

    private WeeklyScheduleArgs(WeeklyScheduleArgs $) {
        this.day = $.day;
        this.hour = $.hour;
        this.minute = $.minute;
        this.snapshotsToKeep = $.snapshotsToKeep;
        this.usedBytes = $.usedBytes;
    }

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

    public static final class Builder {
        private WeeklyScheduleArgs $;

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

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

        /**
         * @param day Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english
         * 
         * @return builder
         * 
         */
        public Builder day(@Nullable Output day) {
            $.day = day;
            return this;
        }

        /**
         * @param day Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english
         * 
         * @return builder
         * 
         */
        public Builder day(String day) {
            return day(Output.of(day));
        }

        /**
         * @param hour Indicates which hour in UTC timezone a snapshot should be taken
         * 
         * @return builder
         * 
         */
        public Builder hour(@Nullable Output hour) {
            $.hour = hour;
            return this;
        }

        /**
         * @param hour Indicates which hour in UTC timezone a snapshot should be taken
         * 
         * @return builder
         * 
         */
        public Builder hour(Integer hour) {
            return hour(Output.of(hour));
        }

        /**
         * @param minute Indicates which minute snapshot should be taken
         * 
         * @return builder
         * 
         */
        public Builder minute(@Nullable Output minute) {
            $.minute = minute;
            return this;
        }

        /**
         * @param minute Indicates which minute snapshot should be taken
         * 
         * @return builder
         * 
         */
        public Builder minute(Integer minute) {
            return minute(Output.of(minute));
        }

        /**
         * @param snapshotsToKeep Weekly snapshot count to keep
         * 
         * @return builder
         * 
         */
        public Builder snapshotsToKeep(@Nullable Output snapshotsToKeep) {
            $.snapshotsToKeep = snapshotsToKeep;
            return this;
        }

        /**
         * @param snapshotsToKeep Weekly snapshot count to keep
         * 
         * @return builder
         * 
         */
        public Builder snapshotsToKeep(Integer snapshotsToKeep) {
            return snapshotsToKeep(Output.of(snapshotsToKeep));
        }

        /**
         * @param usedBytes Resource size in bytes, current storage usage for the volume in bytes
         * 
         * @return builder
         * 
         */
        public Builder usedBytes(@Nullable Output usedBytes) {
            $.usedBytes = usedBytes;
            return this;
        }

        /**
         * @param usedBytes Resource size in bytes, current storage usage for the volume in bytes
         * 
         * @return builder
         * 
         */
        public Builder usedBytes(Double usedBytes) {
            return usedBytes(Output.of(usedBytes));
        }

        public WeeklyScheduleArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy