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

com.pulumi.azurenative.appplatform.inputs.ErrorArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.appplatform.inputs;

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


/**
 * The error code compose of code and message.
 * 
 */
public final class ErrorArgs extends com.pulumi.resources.ResourceArgs {

    public static final ErrorArgs Empty = new ErrorArgs();

    /**
     * The code of error.
     * 
     */
    @Import(name="code")
    private @Nullable Output code;

    /**
     * @return The code of error.
     * 
     */
    public Optional> code() {
        return Optional.ofNullable(this.code);
    }

    /**
     * The message of error.
     * 
     */
    @Import(name="message")
    private @Nullable Output message;

    /**
     * @return The message of error.
     * 
     */
    public Optional> message() {
        return Optional.ofNullable(this.message);
    }

    private ErrorArgs() {}

    private ErrorArgs(ErrorArgs $) {
        this.code = $.code;
        this.message = $.message;
    }

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

    public static final class Builder {
        private ErrorArgs $;

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

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

        /**
         * @param code The code of error.
         * 
         * @return builder
         * 
         */
        public Builder code(@Nullable Output code) {
            $.code = code;
            return this;
        }

        /**
         * @param code The code of error.
         * 
         * @return builder
         * 
         */
        public Builder code(String code) {
            return code(Output.of(code));
        }

        /**
         * @param message The message of error.
         * 
         * @return builder
         * 
         */
        public Builder message(@Nullable Output message) {
            $.message = message;
            return this;
        }

        /**
         * @param message The message of error.
         * 
         * @return builder
         * 
         */
        public Builder message(String message) {
            return message(Output.of(message));
        }

        public ErrorArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy