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

com.pulumi.azurenative.workloads.outputs.ErrorDefinitionResponse 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.workloads.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class ErrorDefinitionResponse {
    /**
     * @return Service specific error code which serves as the substatus for the HTTP error code.
     * 
     */
    private String code;
    /**
     * @return Internal error details.
     * 
     */
    private List details;
    /**
     * @return Description of the error.
     * 
     */
    private String message;
    /**
     * @return Description of the recommendation.
     * 
     */
    private String recommendation;

    private ErrorDefinitionResponse() {}
    /**
     * @return Service specific error code which serves as the substatus for the HTTP error code.
     * 
     */
    public String code() {
        return this.code;
    }
    /**
     * @return Internal error details.
     * 
     */
    public List details() {
        return this.details;
    }
    /**
     * @return Description of the error.
     * 
     */
    public String message() {
        return this.message;
    }
    /**
     * @return Description of the recommendation.
     * 
     */
    public String recommendation() {
        return this.recommendation;
    }

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

    public static Builder builder(ErrorDefinitionResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String code;
        private List details;
        private String message;
        private String recommendation;
        public Builder() {}
        public Builder(ErrorDefinitionResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.code = defaults.code;
    	      this.details = defaults.details;
    	      this.message = defaults.message;
    	      this.recommendation = defaults.recommendation;
        }

        @CustomType.Setter
        public Builder code(String code) {
            if (code == null) {
              throw new MissingRequiredPropertyException("ErrorDefinitionResponse", "code");
            }
            this.code = code;
            return this;
        }
        @CustomType.Setter
        public Builder details(List details) {
            if (details == null) {
              throw new MissingRequiredPropertyException("ErrorDefinitionResponse", "details");
            }
            this.details = details;
            return this;
        }
        public Builder details(ErrorDefinitionResponse... details) {
            return details(List.of(details));
        }
        @CustomType.Setter
        public Builder message(String message) {
            if (message == null) {
              throw new MissingRequiredPropertyException("ErrorDefinitionResponse", "message");
            }
            this.message = message;
            return this;
        }
        @CustomType.Setter
        public Builder recommendation(String recommendation) {
            if (recommendation == null) {
              throw new MissingRequiredPropertyException("ErrorDefinitionResponse", "recommendation");
            }
            this.recommendation = recommendation;
            return this;
        }
        public ErrorDefinitionResponse build() {
            final var _resultValue = new ErrorDefinitionResponse();
            _resultValue.code = code;
            _resultValue.details = details;
            _resultValue.message = message;
            _resultValue.recommendation = recommendation;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy