com.pulumi.digitalocean.outputs.GetAppSpecFunctionLogDestination 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.GetAppSpecFunctionLogDestinationDatadog;
import com.pulumi.digitalocean.outputs.GetAppSpecFunctionLogDestinationLogtail;
import com.pulumi.digitalocean.outputs.GetAppSpecFunctionLogDestinationOpenSearch;
import com.pulumi.digitalocean.outputs.GetAppSpecFunctionLogDestinationPapertrail;
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 GetAppSpecFunctionLogDestination {
/**
* @return Datadog configuration.
*
*/
private @Nullable GetAppSpecFunctionLogDestinationDatadog datadog;
/**
* @return Logtail configuration.
*
*/
private @Nullable GetAppSpecFunctionLogDestinationLogtail logtail;
/**
* @return The name of the component.
*
*/
private String name;
/**
* @return OpenSearch configuration.
*
*/
private @Nullable GetAppSpecFunctionLogDestinationOpenSearch openSearch;
/**
* @return Papertrail configuration.
*
*/
private @Nullable GetAppSpecFunctionLogDestinationPapertrail papertrail;
private GetAppSpecFunctionLogDestination() {}
/**
* @return Datadog configuration.
*
*/
public Optional datadog() {
return Optional.ofNullable(this.datadog);
}
/**
* @return Logtail configuration.
*
*/
public Optional logtail() {
return Optional.ofNullable(this.logtail);
}
/**
* @return The name of the component.
*
*/
public String name() {
return this.name;
}
/**
* @return OpenSearch configuration.
*
*/
public Optional openSearch() {
return Optional.ofNullable(this.openSearch);
}
/**
* @return Papertrail configuration.
*
*/
public Optional papertrail() {
return Optional.ofNullable(this.papertrail);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetAppSpecFunctionLogDestination defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable GetAppSpecFunctionLogDestinationDatadog datadog;
private @Nullable GetAppSpecFunctionLogDestinationLogtail logtail;
private String name;
private @Nullable GetAppSpecFunctionLogDestinationOpenSearch openSearch;
private @Nullable GetAppSpecFunctionLogDestinationPapertrail papertrail;
public Builder() {}
public Builder(GetAppSpecFunctionLogDestination defaults) {
Objects.requireNonNull(defaults);
this.datadog = defaults.datadog;
this.logtail = defaults.logtail;
this.name = defaults.name;
this.openSearch = defaults.openSearch;
this.papertrail = defaults.papertrail;
}
@CustomType.Setter
public Builder datadog(@Nullable GetAppSpecFunctionLogDestinationDatadog datadog) {
this.datadog = datadog;
return this;
}
@CustomType.Setter
public Builder logtail(@Nullable GetAppSpecFunctionLogDestinationLogtail logtail) {
this.logtail = logtail;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetAppSpecFunctionLogDestination", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder openSearch(@Nullable GetAppSpecFunctionLogDestinationOpenSearch openSearch) {
this.openSearch = openSearch;
return this;
}
@CustomType.Setter
public Builder papertrail(@Nullable GetAppSpecFunctionLogDestinationPapertrail papertrail) {
this.papertrail = papertrail;
return this;
}
public GetAppSpecFunctionLogDestination build() {
final var _resultValue = new GetAppSpecFunctionLogDestination();
_resultValue.datadog = datadog;
_resultValue.logtail = logtail;
_resultValue.name = name;
_resultValue.openSearch = openSearch;
_resultValue.papertrail = papertrail;
return _resultValue;
}
}
}