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

com.pulumi.github.outputs.GetRestApiResult Maven / Gradle / Ivy

The 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.github.outputs;

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

@CustomType
public final class GetRestApiResult {
    /**
     * @return A JSON string containing response body.
     * 
     */
    private String body;
    /**
     * @return A response status code.
     * 
     */
    private Integer code;
    private String endpoint;
    /**
     * @return A JSON string containing response headers.
     * 
     */
    private String headers;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return A response status string.
     * 
     */
    private String status;

    private GetRestApiResult() {}
    /**
     * @return A JSON string containing response body.
     * 
     */
    public String body() {
        return this.body;
    }
    /**
     * @return A response status code.
     * 
     */
    public Integer code() {
        return this.code;
    }
    public String endpoint() {
        return this.endpoint;
    }
    /**
     * @return A JSON string containing response headers.
     * 
     */
    public String headers() {
        return this.headers;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return A response status string.
     * 
     */
    public String status() {
        return this.status;
    }

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

    public static Builder builder(GetRestApiResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String body;
        private Integer code;
        private String endpoint;
        private String headers;
        private String id;
        private String status;
        public Builder() {}
        public Builder(GetRestApiResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.body = defaults.body;
    	      this.code = defaults.code;
    	      this.endpoint = defaults.endpoint;
    	      this.headers = defaults.headers;
    	      this.id = defaults.id;
    	      this.status = defaults.status;
        }

        @CustomType.Setter
        public Builder body(String body) {
            if (body == null) {
              throw new MissingRequiredPropertyException("GetRestApiResult", "body");
            }
            this.body = body;
            return this;
        }
        @CustomType.Setter
        public Builder code(Integer code) {
            if (code == null) {
              throw new MissingRequiredPropertyException("GetRestApiResult", "code");
            }
            this.code = code;
            return this;
        }
        @CustomType.Setter
        public Builder endpoint(String endpoint) {
            if (endpoint == null) {
              throw new MissingRequiredPropertyException("GetRestApiResult", "endpoint");
            }
            this.endpoint = endpoint;
            return this;
        }
        @CustomType.Setter
        public Builder headers(String headers) {
            if (headers == null) {
              throw new MissingRequiredPropertyException("GetRestApiResult", "headers");
            }
            this.headers = headers;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetRestApiResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder status(String status) {
            if (status == null) {
              throw new MissingRequiredPropertyException("GetRestApiResult", "status");
            }
            this.status = status;
            return this;
        }
        public GetRestApiResult build() {
            final var _resultValue = new GetRestApiResult();
            _resultValue.body = body;
            _resultValue.code = code;
            _resultValue.endpoint = endpoint;
            _resultValue.headers = headers;
            _resultValue.id = id;
            _resultValue.status = status;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy