com.pulumi.consul.outputs.ConfigEntryServiceDefaultsExposePath Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of consul Show documentation
Show all versions of consul Show documentation
A Pulumi package for creating and managing consul 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.consul.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ConfigEntryServiceDefaultsExposePath {
private @Nullable Integer listenerPort;
private @Nullable Integer localPathPort;
private @Nullable String path;
private @Nullable String protocol;
private ConfigEntryServiceDefaultsExposePath() {}
public Optional listenerPort() {
return Optional.ofNullable(this.listenerPort);
}
public Optional localPathPort() {
return Optional.ofNullable(this.localPathPort);
}
public Optional path() {
return Optional.ofNullable(this.path);
}
public Optional protocol() {
return Optional.ofNullable(this.protocol);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ConfigEntryServiceDefaultsExposePath defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer listenerPort;
private @Nullable Integer localPathPort;
private @Nullable String path;
private @Nullable String protocol;
public Builder() {}
public Builder(ConfigEntryServiceDefaultsExposePath defaults) {
Objects.requireNonNull(defaults);
this.listenerPort = defaults.listenerPort;
this.localPathPort = defaults.localPathPort;
this.path = defaults.path;
this.protocol = defaults.protocol;
}
@CustomType.Setter
public Builder listenerPort(@Nullable Integer listenerPort) {
this.listenerPort = listenerPort;
return this;
}
@CustomType.Setter
public Builder localPathPort(@Nullable Integer localPathPort) {
this.localPathPort = localPathPort;
return this;
}
@CustomType.Setter
public Builder path(@Nullable String path) {
this.path = path;
return this;
}
@CustomType.Setter
public Builder protocol(@Nullable String protocol) {
this.protocol = protocol;
return this;
}
public ConfigEntryServiceDefaultsExposePath build() {
final var _resultValue = new ConfigEntryServiceDefaultsExposePath();
_resultValue.listenerPort = listenerPort;
_resultValue.localPathPort = localPathPort;
_resultValue.path = path;
_resultValue.protocol = protocol;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy