com.pulumi.digitalocean.outputs.AppSpecFunctionLogDestinationOpenSearch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of digitalocean Show documentation
Show all versions of digitalocean Show documentation
A Pulumi package for creating and managing DigitalOcean cloud 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.pulumi.digitalocean.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.digitalocean.outputs.AppSpecFunctionLogDestinationOpenSearchBasicAuth;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AppSpecFunctionLogDestinationOpenSearch {
/**
* @return Basic authentication details.
*
*/
private AppSpecFunctionLogDestinationOpenSearchBasicAuth basicAuth;
/**
* @return The name of the underlying DigitalOcean DBaaS cluster. This is required for production databases. For dev databases, if `cluster_name` is not set, a new cluster will be provisioned.
*
*/
private @Nullable String clusterName;
/**
* @return OpenSearch endpoint.
*
*/
private @Nullable String endpoint;
/**
* @return OpenSearch index name.
*
*/
private @Nullable String indexName;
private AppSpecFunctionLogDestinationOpenSearch() {}
/**
* @return Basic authentication details.
*
*/
public AppSpecFunctionLogDestinationOpenSearchBasicAuth basicAuth() {
return this.basicAuth;
}
/**
* @return The name of the underlying DigitalOcean DBaaS cluster. This is required for production databases. For dev databases, if `cluster_name` is not set, a new cluster will be provisioned.
*
*/
public Optional clusterName() {
return Optional.ofNullable(this.clusterName);
}
/**
* @return OpenSearch endpoint.
*
*/
public Optional endpoint() {
return Optional.ofNullable(this.endpoint);
}
/**
* @return OpenSearch index name.
*
*/
public Optional indexName() {
return Optional.ofNullable(this.indexName);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AppSpecFunctionLogDestinationOpenSearch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private AppSpecFunctionLogDestinationOpenSearchBasicAuth basicAuth;
private @Nullable String clusterName;
private @Nullable String endpoint;
private @Nullable String indexName;
public Builder() {}
public Builder(AppSpecFunctionLogDestinationOpenSearch defaults) {
Objects.requireNonNull(defaults);
this.basicAuth = defaults.basicAuth;
this.clusterName = defaults.clusterName;
this.endpoint = defaults.endpoint;
this.indexName = defaults.indexName;
}
@CustomType.Setter
public Builder basicAuth(AppSpecFunctionLogDestinationOpenSearchBasicAuth basicAuth) {
if (basicAuth == null) {
throw new MissingRequiredPropertyException("AppSpecFunctionLogDestinationOpenSearch", "basicAuth");
}
this.basicAuth = basicAuth;
return this;
}
@CustomType.Setter
public Builder clusterName(@Nullable String clusterName) {
this.clusterName = clusterName;
return this;
}
@CustomType.Setter
public Builder endpoint(@Nullable String endpoint) {
this.endpoint = endpoint;
return this;
}
@CustomType.Setter
public Builder indexName(@Nullable String indexName) {
this.indexName = indexName;
return this;
}
public AppSpecFunctionLogDestinationOpenSearch build() {
final var _resultValue = new AppSpecFunctionLogDestinationOpenSearch();
_resultValue.basicAuth = basicAuth;
_resultValue.clusterName = clusterName;
_resultValue.endpoint = endpoint;
_resultValue.indexName = indexName;
return _resultValue;
}
}
}