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

com.pulumi.azurenative.documentdb.inputs.CassandraErrorArgs 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.documentdb.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;


public final class CassandraErrorArgs extends com.pulumi.resources.ResourceArgs {

    public static final CassandraErrorArgs Empty = new CassandraErrorArgs();

    /**
     * Additional information about the error.
     * 
     */
    @Import(name="additionalErrorInfo")
    private @Nullable Output additionalErrorInfo;

    /**
     * @return Additional information about the error.
     * 
     */
    public Optional> additionalErrorInfo() {
        return Optional.ofNullable(this.additionalErrorInfo);
    }

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

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

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

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

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

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

    private CassandraErrorArgs() {}

    private CassandraErrorArgs(CassandraErrorArgs $) {
        this.additionalErrorInfo = $.additionalErrorInfo;
        this.code = $.code;
        this.message = $.message;
        this.target = $.target;
    }

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

    public static final class Builder {
        private CassandraErrorArgs $;

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

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

        /**
         * @param additionalErrorInfo Additional information about the error.
         * 
         * @return builder
         * 
         */
        public Builder additionalErrorInfo(@Nullable Output additionalErrorInfo) {
            $.additionalErrorInfo = additionalErrorInfo;
            return this;
        }

        /**
         * @param additionalErrorInfo Additional information about the error.
         * 
         * @return builder
         * 
         */
        public Builder additionalErrorInfo(String additionalErrorInfo) {
            return additionalErrorInfo(Output.of(additionalErrorInfo));
        }

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

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

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

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

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

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

        public CassandraErrorArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy