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

com.pulumi.azurenative.storage.inputs.StorageTaskAssignmentExecutionContextArgs 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.inputs.ExecutionTargetArgs;
import com.pulumi.azurenative.storage.inputs.ExecutionTriggerArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Execution context of the storage task assignment.
 * 
 */
public final class StorageTaskAssignmentExecutionContextArgs extends com.pulumi.resources.ResourceArgs {

    public static final StorageTaskAssignmentExecutionContextArgs Empty = new StorageTaskAssignmentExecutionContextArgs();

    /**
     * Execution target of the storage task assignment
     * 
     */
    @Import(name="target")
    private @Nullable Output target;

    /**
     * @return Execution target of the storage task assignment
     * 
     */
    public Optional> target() {
        return Optional.ofNullable(this.target);
    }

    /**
     * Execution trigger of the storage task assignment
     * 
     */
    @Import(name="trigger", required=true)
    private Output trigger;

    /**
     * @return Execution trigger of the storage task assignment
     * 
     */
    public Output trigger() {
        return this.trigger;
    }

    private StorageTaskAssignmentExecutionContextArgs() {}

    private StorageTaskAssignmentExecutionContextArgs(StorageTaskAssignmentExecutionContextArgs $) {
        this.target = $.target;
        this.trigger = $.trigger;
    }

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

    public static final class Builder {
        private StorageTaskAssignmentExecutionContextArgs $;

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

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

        /**
         * @param target Execution target of the storage task assignment
         * 
         * @return builder
         * 
         */
        public Builder target(@Nullable Output target) {
            $.target = target;
            return this;
        }

        /**
         * @param target Execution target of the storage task assignment
         * 
         * @return builder
         * 
         */
        public Builder target(ExecutionTargetArgs target) {
            return target(Output.of(target));
        }

        /**
         * @param trigger Execution trigger of the storage task assignment
         * 
         * @return builder
         * 
         */
        public Builder trigger(Output trigger) {
            $.trigger = trigger;
            return this;
        }

        /**
         * @param trigger Execution trigger of the storage task assignment
         * 
         * @return builder
         * 
         */
        public Builder trigger(ExecutionTriggerArgs trigger) {
            return trigger(Output.of(trigger));
        }

        public StorageTaskAssignmentExecutionContextArgs build() {
            if ($.trigger == null) {
                throw new MissingRequiredPropertyException("StorageTaskAssignmentExecutionContextArgs", "trigger");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy