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

com.pulumi.azurenative.storage.inputs.TriggerParametersArgs 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.storage.inputs;

import com.pulumi.azurenative.storage.enums.IntervalUnit;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The trigger parameters update for the storage task assignment execution
 * 
 */
public final class TriggerParametersArgs extends com.pulumi.resources.ResourceArgs {

    public static final TriggerParametersArgs Empty = new TriggerParametersArgs();

    /**
     * When to end task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'
     * 
     */
    @Import(name="endBy")
    private @Nullable Output endBy;

    /**
     * @return When to end task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'
     * 
     */
    public Optional> endBy() {
        return Optional.ofNullable(this.endBy);
    }

    /**
     * Run interval of task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'
     * 
     */
    @Import(name="interval")
    private @Nullable Output interval;

    /**
     * @return Run interval of task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'
     * 
     */
    public Optional> interval() {
        return Optional.ofNullable(this.interval);
    }

    /**
     * Run interval unit of task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'
     * 
     */
    @Import(name="intervalUnit")
    private @Nullable Output intervalUnit;

    /**
     * @return Run interval unit of task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'
     * 
     */
    public Optional> intervalUnit() {
        return Optional.ofNullable(this.intervalUnit);
    }

    /**
     * When to start task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'
     * 
     */
    @Import(name="startFrom")
    private @Nullable Output startFrom;

    /**
     * @return When to start task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'
     * 
     */
    public Optional> startFrom() {
        return Optional.ofNullable(this.startFrom);
    }

    /**
     * When to start task execution. This is an optional field when ExecutionTrigger.properties.type is 'RunOnce'; this property should not be present when ExecutionTrigger.properties.type is 'OnSchedule'
     * 
     */
    @Import(name="startOn")
    private @Nullable Output startOn;

    /**
     * @return When to start task execution. This is an optional field when ExecutionTrigger.properties.type is 'RunOnce'; this property should not be present when ExecutionTrigger.properties.type is 'OnSchedule'
     * 
     */
    public Optional> startOn() {
        return Optional.ofNullable(this.startOn);
    }

    private TriggerParametersArgs() {}

    private TriggerParametersArgs(TriggerParametersArgs $) {
        this.endBy = $.endBy;
        this.interval = $.interval;
        this.intervalUnit = $.intervalUnit;
        this.startFrom = $.startFrom;
        this.startOn = $.startOn;
    }

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

    public static final class Builder {
        private TriggerParametersArgs $;

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

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

        /**
         * @param endBy When to end task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'
         * 
         * @return builder
         * 
         */
        public Builder endBy(@Nullable Output endBy) {
            $.endBy = endBy;
            return this;
        }

        /**
         * @param endBy When to end task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'
         * 
         * @return builder
         * 
         */
        public Builder endBy(String endBy) {
            return endBy(Output.of(endBy));
        }

        /**
         * @param interval Run interval of task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'
         * 
         * @return builder
         * 
         */
        public Builder interval(@Nullable Output interval) {
            $.interval = interval;
            return this;
        }

        /**
         * @param interval Run interval of task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'
         * 
         * @return builder
         * 
         */
        public Builder interval(Integer interval) {
            return interval(Output.of(interval));
        }

        /**
         * @param intervalUnit Run interval unit of task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'
         * 
         * @return builder
         * 
         */
        public Builder intervalUnit(@Nullable Output intervalUnit) {
            $.intervalUnit = intervalUnit;
            return this;
        }

        /**
         * @param intervalUnit Run interval unit of task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'
         * 
         * @return builder
         * 
         */
        public Builder intervalUnit(IntervalUnit intervalUnit) {
            return intervalUnit(Output.of(intervalUnit));
        }

        /**
         * @param startFrom When to start task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'
         * 
         * @return builder
         * 
         */
        public Builder startFrom(@Nullable Output startFrom) {
            $.startFrom = startFrom;
            return this;
        }

        /**
         * @param startFrom When to start task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'
         * 
         * @return builder
         * 
         */
        public Builder startFrom(String startFrom) {
            return startFrom(Output.of(startFrom));
        }

        /**
         * @param startOn When to start task execution. This is an optional field when ExecutionTrigger.properties.type is 'RunOnce'; this property should not be present when ExecutionTrigger.properties.type is 'OnSchedule'
         * 
         * @return builder
         * 
         */
        public Builder startOn(@Nullable Output startOn) {
            $.startOn = startOn;
            return this;
        }

        /**
         * @param startOn When to start task execution. This is an optional field when ExecutionTrigger.properties.type is 'RunOnce'; this property should not be present when ExecutionTrigger.properties.type is 'OnSchedule'
         * 
         * @return builder
         * 
         */
        public Builder startOn(String startOn) {
            return startOn(Output.of(startOn));
        }

        public TriggerParametersArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy