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

com.pulumi.googlenative.runtimeconfig.v1beta1.outputs.StatusResponse Maven / Gradle / Ivy

// *** 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.googlenative.runtimeconfig.v1beta1.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;

@CustomType
public final class StatusResponse {
    /**
     * @return The status code, which should be an enum value of google.rpc.Code.
     * 
     */
    private Integer code;
    /**
     * @return A list of messages that carry the error details. There is a common set of message types for APIs to use.
     * 
     */
    private List> details;
    /**
     * @return A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
     * 
     */
    private String message;

    private StatusResponse() {}
    /**
     * @return The status code, which should be an enum value of google.rpc.Code.
     * 
     */
    public Integer code() {
        return this.code;
    }
    /**
     * @return A list of messages that carry the error details. There is a common set of message types for APIs to use.
     * 
     */
    public List> details() {
        return this.details;
    }
    /**
     * @return A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
     * 
     */
    public String message() {
        return this.message;
    }

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

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

        @CustomType.Setter
        public Builder code(Integer code) {
            this.code = Objects.requireNonNull(code);
            return this;
        }
        @CustomType.Setter
        public Builder details(List> details) {
            this.details = Objects.requireNonNull(details);
            return this;
        }
        @CustomType.Setter
        public Builder message(String message) {
            this.message = Objects.requireNonNull(message);
            return this;
        }
        public StatusResponse build() {
            final var o = new StatusResponse();
            o.code = code;
            o.details = details;
            o.message = message;
            return o;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy