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

com.pulumi.azurenative.datamigration.outputs.ODataErrorResponse Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.datamigration.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 ODataErrorResponse {
    /**
     * @return The machine-readable description of the error, such as 'InvalidRequest' or 'InternalServerError'
     * 
     */
    private @Nullable String code;
    /**
     * @return Inner errors that caused this error
     * 
     */
    private @Nullable List details;
    /**
     * @return The human-readable description of the error
     * 
     */
    private @Nullable String message;

    private ODataErrorResponse() {}
    /**
     * @return The machine-readable description of the error, such as 'InvalidRequest' or 'InternalServerError'
     * 
     */
    public Optional code() {
        return Optional.ofNullable(this.code);
    }
    /**
     * @return Inner errors that caused this error
     * 
     */
    public List details() {
        return this.details == null ? List.of() : this.details;
    }
    /**
     * @return The human-readable description of the error
     * 
     */
    public Optional message() {
        return Optional.ofNullable(this.message);
    }

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

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

        @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(ODataErrorResponse... details) {
            return details(List.of(details));
        }
        @CustomType.Setter
        public Builder message(@Nullable String message) {

            this.message = message;
            return this;
        }
        public ODataErrorResponse build() {
            final var _resultValue = new ODataErrorResponse();
            _resultValue.code = code;
            _resultValue.details = details;
            _resultValue.message = message;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy