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

com.pulumi.azurenative.documentdb.outputs.CassandraErrorResponse 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.outputs;

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

@CustomType
public final class CassandraErrorResponse {
    /**
     * @return Additional information about the error.
     * 
     */
    private @Nullable String additionalErrorInfo;
    /**
     * @return The code of error that occurred.
     * 
     */
    private @Nullable String code;
    /**
     * @return The message of the error.
     * 
     */
    private @Nullable String message;
    /**
     * @return The target resource of the error.
     * 
     */
    private @Nullable String target;

    private CassandraErrorResponse() {}
    /**
     * @return Additional information about the error.
     * 
     */
    public Optional additionalErrorInfo() {
        return Optional.ofNullable(this.additionalErrorInfo);
    }
    /**
     * @return The code of error that occurred.
     * 
     */
    public Optional code() {
        return Optional.ofNullable(this.code);
    }
    /**
     * @return The message of the error.
     * 
     */
    public Optional message() {
        return Optional.ofNullable(this.message);
    }
    /**
     * @return The target resource of the error.
     * 
     */
    public Optional target() {
        return Optional.ofNullable(this.target);
    }

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

    public static Builder builder(CassandraErrorResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String additionalErrorInfo;
        private @Nullable String code;
        private @Nullable String message;
        private @Nullable String target;
        public Builder() {}
        public Builder(CassandraErrorResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.additionalErrorInfo = defaults.additionalErrorInfo;
    	      this.code = defaults.code;
    	      this.message = defaults.message;
    	      this.target = defaults.target;
        }

        @CustomType.Setter
        public Builder additionalErrorInfo(@Nullable String additionalErrorInfo) {

            this.additionalErrorInfo = additionalErrorInfo;
            return this;
        }
        @CustomType.Setter
        public Builder code(@Nullable String code) {

            this.code = code;
            return this;
        }
        @CustomType.Setter
        public Builder message(@Nullable String message) {

            this.message = message;
            return this;
        }
        @CustomType.Setter
        public Builder target(@Nullable String target) {

            this.target = target;
            return this;
        }
        public CassandraErrorResponse build() {
            final var _resultValue = new CassandraErrorResponse();
            _resultValue.additionalErrorInfo = additionalErrorInfo;
            _resultValue.code = code;
            _resultValue.message = message;
            _resultValue.target = target;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy