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

com.pulumi.azurenative.storageactions.inputs.ElseConditionArgs Maven / Gradle / Ivy

// *** 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.storageactions.inputs;

import com.pulumi.azurenative.storageactions.inputs.StorageTaskOperationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;


/**
 * The else block of storage task operation
 * 
 */
public final class ElseConditionArgs extends com.pulumi.resources.ResourceArgs {

    public static final ElseConditionArgs Empty = new ElseConditionArgs();

    /**
     * List of operations to execute in the else block
     * 
     */
    @Import(name="operations", required=true)
    private Output> operations;

    /**
     * @return List of operations to execute in the else block
     * 
     */
    public Output> operations() {
        return this.operations;
    }

    private ElseConditionArgs() {}

    private ElseConditionArgs(ElseConditionArgs $) {
        this.operations = $.operations;
    }

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

    public static final class Builder {
        private ElseConditionArgs $;

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

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

        /**
         * @param operations List of operations to execute in the else block
         * 
         * @return builder
         * 
         */
        public Builder operations(Output> operations) {
            $.operations = operations;
            return this;
        }

        /**
         * @param operations List of operations to execute in the else block
         * 
         * @return builder
         * 
         */
        public Builder operations(List operations) {
            return operations(Output.of(operations));
        }

        /**
         * @param operations List of operations to execute in the else block
         * 
         * @return builder
         * 
         */
        public Builder operations(StorageTaskOperationArgs... operations) {
            return operations(List.of(operations));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy