com.pulumi.digitalocean.inputs.AppSpecJobLogDestinationPapertrailArgs 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.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class AppSpecJobLogDestinationPapertrailArgs extends com.pulumi.resources.ResourceArgs {
public static final AppSpecJobLogDestinationPapertrailArgs Empty = new AppSpecJobLogDestinationPapertrailArgs();
/**
* Papertrail syslog endpoint.
*
*/
@Import(name="endpoint", required=true)
private Output endpoint;
/**
* @return Papertrail syslog endpoint.
*
*/
public Output endpoint() {
return this.endpoint;
}
private AppSpecJobLogDestinationPapertrailArgs() {}
private AppSpecJobLogDestinationPapertrailArgs(AppSpecJobLogDestinationPapertrailArgs $) {
this.endpoint = $.endpoint;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AppSpecJobLogDestinationPapertrailArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private AppSpecJobLogDestinationPapertrailArgs $;
public Builder() {
$ = new AppSpecJobLogDestinationPapertrailArgs();
}
public Builder(AppSpecJobLogDestinationPapertrailArgs defaults) {
$ = new AppSpecJobLogDestinationPapertrailArgs(Objects.requireNonNull(defaults));
}
/**
* @param endpoint Papertrail syslog endpoint.
*
* @return builder
*
*/
public Builder endpoint(Output endpoint) {
$.endpoint = endpoint;
return this;
}
/**
* @param endpoint Papertrail syslog endpoint.
*
* @return builder
*
*/
public Builder endpoint(String endpoint) {
return endpoint(Output.of(endpoint));
}
public AppSpecJobLogDestinationPapertrailArgs build() {
if ($.endpoint == null) {
throw new MissingRequiredPropertyException("AppSpecJobLogDestinationPapertrailArgs", "endpoint");
}
return $;
}
}
}