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

com.pulumi.azurenative.app.outputs.ErrorEntityResponse Maven / Gradle / Ivy

There is a newer version: 2.82.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.app.outputs;

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

@CustomType
public final class ErrorEntityResponse {
    /**
     * @return Basic error code.
     * 
     */
    private @Nullable String code;
    /**
     * @return Error Details.
     * 
     */
    private @Nullable List details;
    /**
     * @return Type of error.
     * 
     */
    private @Nullable String extendedCode;
    /**
     * @return Inner errors.
     * 
     */
    private @Nullable List innerErrors;
    /**
     * @return Any details of the error.
     * 
     */
    private @Nullable String message;
    /**
     * @return Message template.
     * 
     */
    private @Nullable String messageTemplate;
    /**
     * @return Parameters for the template.
     * 
     */
    private @Nullable List parameters;
    /**
     * @return The error target.
     * 
     */
    private @Nullable String target;

    private ErrorEntityResponse() {}
    /**
     * @return Basic error code.
     * 
     */
    public Optional code() {
        return Optional.ofNullable(this.code);
    }
    /**
     * @return Error Details.
     * 
     */
    public List details() {
        return this.details == null ? List.of() : this.details;
    }
    /**
     * @return Type of error.
     * 
     */
    public Optional extendedCode() {
        return Optional.ofNullable(this.extendedCode);
    }
    /**
     * @return Inner errors.
     * 
     */
    public List innerErrors() {
        return this.innerErrors == null ? List.of() : this.innerErrors;
    }
    /**
     * @return Any details of the error.
     * 
     */
    public Optional message() {
        return Optional.ofNullable(this.message);
    }
    /**
     * @return Message template.
     * 
     */
    public Optional messageTemplate() {
        return Optional.ofNullable(this.messageTemplate);
    }
    /**
     * @return Parameters for the template.
     * 
     */
    public List parameters() {
        return this.parameters == null ? List.of() : this.parameters;
    }
    /**
     * @return The error target.
     * 
     */
    public Optional target() {
        return Optional.ofNullable(this.target);
    }

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

    public static Builder builder(ErrorEntityResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String code;
        private @Nullable List details;
        private @Nullable String extendedCode;
        private @Nullable List innerErrors;
        private @Nullable String message;
        private @Nullable String messageTemplate;
        private @Nullable List parameters;
        private @Nullable String target;
        public Builder() {}
        public Builder(ErrorEntityResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.code = defaults.code;
    	      this.details = defaults.details;
    	      this.extendedCode = defaults.extendedCode;
    	      this.innerErrors = defaults.innerErrors;
    	      this.message = defaults.message;
    	      this.messageTemplate = defaults.messageTemplate;
    	      this.parameters = defaults.parameters;
    	      this.target = defaults.target;
        }

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

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

            this.details = details;
            return this;
        }
        public Builder details(ErrorEntityResponse... details) {
            return details(List.of(details));
        }
        @CustomType.Setter
        public Builder extendedCode(@Nullable String extendedCode) {

            this.extendedCode = extendedCode;
            return this;
        }
        @CustomType.Setter
        public Builder innerErrors(@Nullable List innerErrors) {

            this.innerErrors = innerErrors;
            return this;
        }
        public Builder innerErrors(ErrorEntityResponse... innerErrors) {
            return innerErrors(List.of(innerErrors));
        }
        @CustomType.Setter
        public Builder message(@Nullable String message) {

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

            this.messageTemplate = messageTemplate;
            return this;
        }
        @CustomType.Setter
        public Builder parameters(@Nullable List parameters) {

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

            this.target = target;
            return this;
        }
        public ErrorEntityResponse build() {
            final var _resultValue = new ErrorEntityResponse();
            _resultValue.code = code;
            _resultValue.details = details;
            _resultValue.extendedCode = extendedCode;
            _resultValue.innerErrors = innerErrors;
            _resultValue.message = message;
            _resultValue.messageTemplate = messageTemplate;
            _resultValue.parameters = parameters;
            _resultValue.target = target;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy