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

com.pulumi.azurenative.storageactions.inputs.StorageTaskActionArgs 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.storageactions.inputs;

import com.pulumi.azurenative.storageactions.inputs.ElseConditionArgs;
import com.pulumi.azurenative.storageactions.inputs.IfConditionArgs;
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;


/**
 * The storage task action represents conditional statements and operations to be performed on target objects.
 * 
 */
public final class StorageTaskActionArgs extends com.pulumi.resources.ResourceArgs {

    public static final StorageTaskActionArgs Empty = new StorageTaskActionArgs();

    /**
     * The else block of storage task operation
     * 
     */
    @Import(name="else")
    private @Nullable Output else_;

    /**
     * @return The else block of storage task operation
     * 
     */
    public Optional> else_() {
        return Optional.ofNullable(this.else_);
    }

    /**
     * The if block of storage task operation
     * 
     */
    @Import(name="if", required=true)
    private Output if_;

    /**
     * @return The if block of storage task operation
     * 
     */
    public Output if_() {
        return this.if_;
    }

    private StorageTaskActionArgs() {}

    private StorageTaskActionArgs(StorageTaskActionArgs $) {
        this.else_ = $.else_;
        this.if_ = $.if_;
    }

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

    public static final class Builder {
        private StorageTaskActionArgs $;

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

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

        /**
         * @param else_ The else block of storage task operation
         * 
         * @return builder
         * 
         */
        public Builder else_(@Nullable Output else_) {
            $.else_ = else_;
            return this;
        }

        /**
         * @param else_ The else block of storage task operation
         * 
         * @return builder
         * 
         */
        public Builder else_(ElseConditionArgs else_) {
            return else_(Output.of(else_));
        }

        /**
         * @param if_ The if block of storage task operation
         * 
         * @return builder
         * 
         */
        public Builder if_(Output if_) {
            $.if_ = if_;
            return this;
        }

        /**
         * @param if_ The if block of storage task operation
         * 
         * @return builder
         * 
         */
        public Builder if_(IfConditionArgs if_) {
            return if_(Output.of(if_));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy