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

com.pulumi.azurenative.alertsmanagement.inputs.MonthlyRecurrenceArgs 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.alertsmanagement.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Monthly recurrence object.
 * 
 */
public final class MonthlyRecurrenceArgs extends com.pulumi.resources.ResourceArgs {

    public static final MonthlyRecurrenceArgs Empty = new MonthlyRecurrenceArgs();

    /**
     * Specifies the values for monthly recurrence pattern.
     * 
     */
    @Import(name="daysOfMonth", required=true)
    private Output> daysOfMonth;

    /**
     * @return Specifies the values for monthly recurrence pattern.
     * 
     */
    public Output> daysOfMonth() {
        return this.daysOfMonth;
    }

    /**
     * End time for recurrence.
     * 
     */
    @Import(name="endTime")
    private @Nullable Output endTime;

    /**
     * @return End time for recurrence.
     * 
     */
    public Optional> endTime() {
        return Optional.ofNullable(this.endTime);
    }

    /**
     * Specifies when the recurrence should be applied.
     * Expected value is 'Monthly'.
     * 
     */
    @Import(name="recurrenceType", required=true)
    private Output recurrenceType;

    /**
     * @return Specifies when the recurrence should be applied.
     * Expected value is 'Monthly'.
     * 
     */
    public Output recurrenceType() {
        return this.recurrenceType;
    }

    /**
     * Start time for recurrence.
     * 
     */
    @Import(name="startTime")
    private @Nullable Output startTime;

    /**
     * @return Start time for recurrence.
     * 
     */
    public Optional> startTime() {
        return Optional.ofNullable(this.startTime);
    }

    private MonthlyRecurrenceArgs() {}

    private MonthlyRecurrenceArgs(MonthlyRecurrenceArgs $) {
        this.daysOfMonth = $.daysOfMonth;
        this.endTime = $.endTime;
        this.recurrenceType = $.recurrenceType;
        this.startTime = $.startTime;
    }

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

    public static final class Builder {
        private MonthlyRecurrenceArgs $;

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

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

        /**
         * @param daysOfMonth Specifies the values for monthly recurrence pattern.
         * 
         * @return builder
         * 
         */
        public Builder daysOfMonth(Output> daysOfMonth) {
            $.daysOfMonth = daysOfMonth;
            return this;
        }

        /**
         * @param daysOfMonth Specifies the values for monthly recurrence pattern.
         * 
         * @return builder
         * 
         */
        public Builder daysOfMonth(List daysOfMonth) {
            return daysOfMonth(Output.of(daysOfMonth));
        }

        /**
         * @param daysOfMonth Specifies the values for monthly recurrence pattern.
         * 
         * @return builder
         * 
         */
        public Builder daysOfMonth(Integer... daysOfMonth) {
            return daysOfMonth(List.of(daysOfMonth));
        }

        /**
         * @param endTime End time for recurrence.
         * 
         * @return builder
         * 
         */
        public Builder endTime(@Nullable Output endTime) {
            $.endTime = endTime;
            return this;
        }

        /**
         * @param endTime End time for recurrence.
         * 
         * @return builder
         * 
         */
        public Builder endTime(String endTime) {
            return endTime(Output.of(endTime));
        }

        /**
         * @param recurrenceType Specifies when the recurrence should be applied.
         * Expected value is 'Monthly'.
         * 
         * @return builder
         * 
         */
        public Builder recurrenceType(Output recurrenceType) {
            $.recurrenceType = recurrenceType;
            return this;
        }

        /**
         * @param recurrenceType Specifies when the recurrence should be applied.
         * Expected value is 'Monthly'.
         * 
         * @return builder
         * 
         */
        public Builder recurrenceType(String recurrenceType) {
            return recurrenceType(Output.of(recurrenceType));
        }

        /**
         * @param startTime Start time for recurrence.
         * 
         * @return builder
         * 
         */
        public Builder startTime(@Nullable Output startTime) {
            $.startTime = startTime;
            return this;
        }

        /**
         * @param startTime Start time for recurrence.
         * 
         * @return builder
         * 
         */
        public Builder startTime(String startTime) {
            return startTime(Output.of(startTime));
        }

        public MonthlyRecurrenceArgs build() {
            if ($.daysOfMonth == null) {
                throw new MissingRequiredPropertyException("MonthlyRecurrenceArgs", "daysOfMonth");
            }
            $.recurrenceType = Codegen.stringProp("recurrenceType").output().arg($.recurrenceType).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy