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

com.pulumi.azurenative.workloads.inputs.WeeklyRetentionFormatArgs 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.workloads.inputs;

import com.pulumi.azurenative.workloads.enums.DayOfWeek;
import com.pulumi.azurenative.workloads.enums.WeekOfMonth;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Weekly retention format.
 * 
 */
public final class WeeklyRetentionFormatArgs extends com.pulumi.resources.ResourceArgs {

    public static final WeeklyRetentionFormatArgs Empty = new WeeklyRetentionFormatArgs();

    /**
     * List of days of the week.
     * 
     */
    @Import(name="daysOfTheWeek")
    private @Nullable Output> daysOfTheWeek;

    /**
     * @return List of days of the week.
     * 
     */
    public Optional>> daysOfTheWeek() {
        return Optional.ofNullable(this.daysOfTheWeek);
    }

    /**
     * List of weeks of month.
     * 
     */
    @Import(name="weeksOfTheMonth")
    private @Nullable Output> weeksOfTheMonth;

    /**
     * @return List of weeks of month.
     * 
     */
    public Optional>> weeksOfTheMonth() {
        return Optional.ofNullable(this.weeksOfTheMonth);
    }

    private WeeklyRetentionFormatArgs() {}

    private WeeklyRetentionFormatArgs(WeeklyRetentionFormatArgs $) {
        this.daysOfTheWeek = $.daysOfTheWeek;
        this.weeksOfTheMonth = $.weeksOfTheMonth;
    }

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

    public static final class Builder {
        private WeeklyRetentionFormatArgs $;

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

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

        /**
         * @param daysOfTheWeek List of days of the week.
         * 
         * @return builder
         * 
         */
        public Builder daysOfTheWeek(@Nullable Output> daysOfTheWeek) {
            $.daysOfTheWeek = daysOfTheWeek;
            return this;
        }

        /**
         * @param daysOfTheWeek List of days of the week.
         * 
         * @return builder
         * 
         */
        public Builder daysOfTheWeek(List daysOfTheWeek) {
            return daysOfTheWeek(Output.of(daysOfTheWeek));
        }

        /**
         * @param daysOfTheWeek List of days of the week.
         * 
         * @return builder
         * 
         */
        public Builder daysOfTheWeek(DayOfWeek... daysOfTheWeek) {
            return daysOfTheWeek(List.of(daysOfTheWeek));
        }

        /**
         * @param weeksOfTheMonth List of weeks of month.
         * 
         * @return builder
         * 
         */
        public Builder weeksOfTheMonth(@Nullable Output> weeksOfTheMonth) {
            $.weeksOfTheMonth = weeksOfTheMonth;
            return this;
        }

        /**
         * @param weeksOfTheMonth List of weeks of month.
         * 
         * @return builder
         * 
         */
        public Builder weeksOfTheMonth(List weeksOfTheMonth) {
            return weeksOfTheMonth(Output.of(weeksOfTheMonth));
        }

        /**
         * @param weeksOfTheMonth List of weeks of month.
         * 
         * @return builder
         * 
         */
        public Builder weeksOfTheMonth(WeekOfMonth... weeksOfTheMonth) {
            return weeksOfTheMonth(List.of(weeksOfTheMonth));
        }

        public WeeklyRetentionFormatArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy