com.ovhcloud.pulumi.ovh.CloudProjectDatabase.outputs.GetDatabaseEndpoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-ovh Show documentation
Show all versions of pulumi-ovh Show documentation
A Pulumi package for creating and managing OVH resources.
// *** 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.ovhcloud.pulumi.ovh.CloudProjectDatabase.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
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) {
if (component == null) {
throw new MissingRequiredPropertyException("GetDatabaseEndpoint", "component");
}
this.component = component;
return this;
}
@CustomType.Setter
public Builder domain(String domain) {
if (domain == null) {
throw new MissingRequiredPropertyException("GetDatabaseEndpoint", "domain");
}
this.domain = domain;
return this;
}
@CustomType.Setter
public Builder path(String path) {
if (path == null) {
throw new MissingRequiredPropertyException("GetDatabaseEndpoint", "path");
}
this.path = path;
return this;
}
@CustomType.Setter
public Builder port(Integer port) {
if (port == null) {
throw new MissingRequiredPropertyException("GetDatabaseEndpoint", "port");
}
this.port = port;
return this;
}
@CustomType.Setter
public Builder scheme(String scheme) {
if (scheme == null) {
throw new MissingRequiredPropertyException("GetDatabaseEndpoint", "scheme");
}
this.scheme = scheme;
return this;
}
@CustomType.Setter
public Builder ssl(Boolean ssl) {
if (ssl == null) {
throw new MissingRequiredPropertyException("GetDatabaseEndpoint", "ssl");
}
this.ssl = ssl;
return this;
}
@CustomType.Setter
public Builder sslMode(String sslMode) {
if (sslMode == null) {
throw new MissingRequiredPropertyException("GetDatabaseEndpoint", "sslMode");
}
this.sslMode = sslMode;
return this;
}
@CustomType.Setter
public Builder uri(String uri) {
if (uri == null) {
throw new MissingRequiredPropertyException("GetDatabaseEndpoint", "uri");
}
this.uri = uri;
return this;
}
public GetDatabaseEndpoint build() {
final var _resultValue = new GetDatabaseEndpoint();
_resultValue.component = component;
_resultValue.domain = domain;
_resultValue.path = path;
_resultValue.port = port;
_resultValue.scheme = scheme;
_resultValue.ssl = ssl;
_resultValue.sslMode = sslMode;
_resultValue.uri = uri;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy