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

com.pulumi.azurenative.storageactions.outputs.StorageTaskActionResponse 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.outputs;

import com.pulumi.azurenative.storageactions.outputs.ElseConditionResponse;
import com.pulumi.azurenative.storageactions.outputs.IfConditionResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class StorageTaskActionResponse {
    /**
     * @return The else block of storage task operation
     * 
     */
    private @Nullable ElseConditionResponse else_;
    /**
     * @return The if block of storage task operation
     * 
     */
    private IfConditionResponse if_;

    private StorageTaskActionResponse() {}
    /**
     * @return The else block of storage task operation
     * 
     */
    public Optional else_() {
        return Optional.ofNullable(this.else_);
    }
    /**
     * @return The if block of storage task operation
     * 
     */
    public IfConditionResponse if_() {
        return this.if_;
    }

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

    public static Builder builder(StorageTaskActionResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable ElseConditionResponse else_;
        private IfConditionResponse if_;
        public Builder() {}
        public Builder(StorageTaskActionResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.else_ = defaults.else_;
    	      this.if_ = defaults.if_;
        }

        @CustomType.Setter("else")
        public Builder else_(@Nullable ElseConditionResponse else_) {

            this.else_ = else_;
            return this;
        }
        @CustomType.Setter("if")
        public Builder if_(IfConditionResponse if_) {
            if (if_ == null) {
              throw new MissingRequiredPropertyException("StorageTaskActionResponse", "if_");
            }
            this.if_ = if_;
            return this;
        }
        public StorageTaskActionResponse build() {
            final var _resultValue = new StorageTaskActionResponse();
            _resultValue.else_ = else_;
            _resultValue.if_ = if_;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy