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

com.pulumi.azurenative.awsconnector.inputs.ErrorDetailArgs 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.awsconnector.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of ErrorDetail
 * 
 */
public final class ErrorDetailArgs extends com.pulumi.resources.ResourceArgs {

    public static final ErrorDetailArgs Empty = new ErrorDetailArgs();

    /**
     * <p>The name or code associated with the error.</p>
     * 
     */
    @Import(name="errorCode")
    private @Nullable Output errorCode;

    /**
     * @return <p>The name or code associated with the error.</p>
     * 
     */
    public Optional> errorCode() {
        return Optional.ofNullable(this.errorCode);
    }

    /**
     * <p>A list of key value pairs that provides contextual information about why an error occured.</p>
     * 
     */
    @Import(name="errorData")
    private @Nullable Output> errorData;

    /**
     * @return <p>A list of key value pairs that provides contextual information about why an error occured.</p>
     * 
     */
    public Optional>> errorData() {
        return Optional.ofNullable(this.errorData);
    }

    /**
     * <p>A message that describes the error.</p>
     * 
     */
    @Import(name="errorMessage")
    private @Nullable Output errorMessage;

    /**
     * @return <p>A message that describes the error.</p>
     * 
     */
    public Optional> errorMessage() {
        return Optional.ofNullable(this.errorMessage);
    }

    private ErrorDetailArgs() {}

    private ErrorDetailArgs(ErrorDetailArgs $) {
        this.errorCode = $.errorCode;
        this.errorData = $.errorData;
        this.errorMessage = $.errorMessage;
    }

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

    public static final class Builder {
        private ErrorDetailArgs $;

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

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

        /**
         * @param errorCode <p>The name or code associated with the error.</p>
         * 
         * @return builder
         * 
         */
        public Builder errorCode(@Nullable Output errorCode) {
            $.errorCode = errorCode;
            return this;
        }

        /**
         * @param errorCode <p>The name or code associated with the error.</p>
         * 
         * @return builder
         * 
         */
        public Builder errorCode(String errorCode) {
            return errorCode(Output.of(errorCode));
        }

        /**
         * @param errorData <p>A list of key value pairs that provides contextual information about why an error occured.</p>
         * 
         * @return builder
         * 
         */
        public Builder errorData(@Nullable Output> errorData) {
            $.errorData = errorData;
            return this;
        }

        /**
         * @param errorData <p>A list of key value pairs that provides contextual information about why an error occured.</p>
         * 
         * @return builder
         * 
         */
        public Builder errorData(List errorData) {
            return errorData(Output.of(errorData));
        }

        /**
         * @param errorData <p>A list of key value pairs that provides contextual information about why an error occured.</p>
         * 
         * @return builder
         * 
         */
        public Builder errorData(Object... errorData) {
            return errorData(List.of(errorData));
        }

        /**
         * @param errorMessage <p>A message that describes the error.</p>
         * 
         * @return builder
         * 
         */
        public Builder errorMessage(@Nullable Output errorMessage) {
            $.errorMessage = errorMessage;
            return this;
        }

        /**
         * @param errorMessage <p>A message that describes the error.</p>
         * 
         * @return builder
         * 
         */
        public Builder errorMessage(String errorMessage) {
            return errorMessage(Output.of(errorMessage));
        }

        public ErrorDetailArgs build() {
            return $;
        }
    }

}