com.pulumi.sumologic.outputs.LocalFileSourceDefaultDateFormat Maven / Gradle / Ivy
// *** 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.sumologic.outputs;
import com.pulumi.core.annotations.CustomType;
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 LocalFileSourceDefaultDateFormat {
private String format;
private @Nullable String locator;
private LocalFileSourceDefaultDateFormat() {}
public String format() {
return this.format;
}
public Optional locator() {
return Optional.ofNullable(this.locator);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LocalFileSourceDefaultDateFormat defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String format;
private @Nullable String locator;
public Builder() {}
public Builder(LocalFileSourceDefaultDateFormat defaults) {
Objects.requireNonNull(defaults);
this.format = defaults.format;
this.locator = defaults.locator;
}
@CustomType.Setter
public Builder format(String format) {
if (format == null) {
throw new MissingRequiredPropertyException("LocalFileSourceDefaultDateFormat", "format");
}
this.format = format;
return this;
}
@CustomType.Setter
public Builder locator(@Nullable String locator) {
this.locator = locator;
return this;
}
public LocalFileSourceDefaultDateFormat build() {
final var _resultValue = new LocalFileSourceDefaultDateFormat();
_resultValue.format = format;
_resultValue.locator = locator;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy