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

com.pulumi.azurenative.alertsmanagement.inputs.DailyRecurrenceArgs 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.String;
import java.util.Objects;


/**
 * Daily recurrence object.
 * 
 */
public final class DailyRecurrenceArgs extends com.pulumi.resources.ResourceArgs {

    public static final DailyRecurrenceArgs Empty = new DailyRecurrenceArgs();

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

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

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

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

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

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

    private DailyRecurrenceArgs() {}

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

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

    public static final class Builder {
        private DailyRecurrenceArgs $;

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

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

        /**
         * @param endTime End time for recurrence.
         * 
         * @return builder
         * 
         */
        public Builder endTime(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 'Daily'.
         * 
         * @return builder
         * 
         */
        public Builder recurrenceType(Output recurrenceType) {
            $.recurrenceType = recurrenceType;
            return this;
        }

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

        /**
         * @param startTime Start time for recurrence.
         * 
         * @return builder
         * 
         */
        public Builder startTime(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 DailyRecurrenceArgs build() {
            if ($.endTime == null) {
                throw new MissingRequiredPropertyException("DailyRecurrenceArgs", "endTime");
            }
            $.recurrenceType = Codegen.stringProp("recurrenceType").output().arg($.recurrenceType).require();
            if ($.startTime == null) {
                throw new MissingRequiredPropertyException("DailyRecurrenceArgs", "startTime");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy