sdk/java/src/main/java/com/pulumi/ovh/CloudProjectDatabase/outputs/GetDatabaseEndpoint.java
<reponame>lbrlabs/pulumi-ovh<gh_stars>0// *** 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.ovh.CloudProjectDatabase.outputs;

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

@CustomType
public final class GetDatabaseEndpoint {
    /**
     * @return Type of component the URI relates to.
     * 
     */
    private String component;
    /**
     * @return Domain of the cluster.
     * 
     */
    private String domain;
    /**
     * @return Path of the endpoint.
     * 
     */
    private String path;
    /**
     * @return Connection port for the endpoint.
     * 
     */
    private Integer port;
    /**
     * @return Scheme used to generate the URI.
     * 
     */
    private String scheme;
    /**
     * @return Defines whether the endpoint uses SSL.
     * 
     */
    private Boolean ssl;
    /**
     * @return SSL mode used to connect to the service if the SSL is enabled.
     * 
     */
    private String sslMode;
    /**
     * @return URI of the endpoint.
     * 
     */
    private String uri;

    private GetDatabaseEndpoint() {}
    /**
     * @return Type of component the URI relates to.
     * 
     */
    public String component() {
        return this.component;
    }
    /**
     * @return Domain of the cluster.
     * 
     */
    public String domain() {
        return this.domain;
    }
    /**
     * @return Path of the endpoint.
     * 
     */
    public String path() {
        return this.path;
    }
    /**
     * @return Connection port for the endpoint.
     * 
     */
    public Integer port() {
        return this.port;
    }
    /**
     * @return Scheme used to generate the URI.
     * 
     */
    public String scheme() {
        return this.scheme;
    }
    /**
     * @return Defines whether the endpoint uses SSL.
     * 
     */
    public Boolean ssl() {
        return this.ssl;
    }
    /**
     * @return SSL mode used to connect to the service if the SSL is enabled.
     * 
     */
    public String sslMode() {
        return this.sslMode;
    }
    /**
     * @return URI of the endpoint.
     * 
     */
    public String uri() {
        return this.uri;
    }

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

    public static Builder builder(GetDatabaseEndpoint defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String component;
        private String domain;
        private String path;
        private Integer port;
        private String scheme;
        private Boolean ssl;
        private String sslMode;
        private String uri;
        public Builder() {}
        public Builder(GetDatabaseEndpoint defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.component = defaults.component;
    	      this.domain = defaults.domain;
    	      this.path = defaults.path;
    	      this.port = defaults.port;
    	      this.scheme = defaults.scheme;
    	      this.ssl = defaults.ssl;
    	      this.sslMode = defaults.sslMode;
    	      this.uri = defaults.uri;
        }

        @CustomType.Setter
        public Builder component(String component) {
            this.component = Objects.requireNonNull(component);
            return this;
        }
        @CustomType.Setter
        public Builder domain(String domain) {
            this.domain = Objects.requireNonNull(domain);
            return this;
        }
        @CustomType.Setter
        public Builder path(String path) {
            this.path = Objects.requireNonNull(path);
            return this;
        }
        @CustomType.Setter
        public Builder port(Integer port) {
            this.port = Objects.requireNonNull(port);
            return this;
        }
        @CustomType.Setter
        public Builder scheme(String scheme) {
            this.scheme = Objects.requireNonNull(scheme);
            return this;
        }
        @CustomType.Setter
        public Builder ssl(Boolean ssl) {
            this.ssl = Objects.requireNonNull(ssl);
            return this;
        }
        @CustomType.Setter
        public Builder sslMode(String sslMode) {
            this.sslMode = Objects.requireNonNull(sslMode);
            return this;
        }
        @CustomType.Setter
        public Builder uri(String uri) {
            this.uri = Objects.requireNonNull(uri);
            return this;
        }
        public GetDatabaseEndpoint build() {
            final var o = new GetDatabaseEndpoint();
            o.component = component;
            o.domain = domain;
            o.path = path;
            o.port = port;
            o.scheme = scheme;
            o.ssl = ssl;
            o.sslMode = sslMode;
            o.uri = uri;
            return o;
        }
    }
}
