
com.pulumi.azurenative.devtestlab.outputs.InboundNatRuleResponse 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.azurenative.devtestlab.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 InboundNatRuleResponse {
/**
* @return The port to which the external traffic will be redirected.
*
*/
private @Nullable Integer backendPort;
/**
* @return The external endpoint port of the inbound connection. Possible values range between 1 and 65535, inclusive. If unspecified, a value will be allocated automatically.
*
*/
private @Nullable Integer frontendPort;
/**
* @return The transport protocol for the endpoint.
*
*/
private @Nullable String transportProtocol;
private InboundNatRuleResponse() {}
/**
* @return The port to which the external traffic will be redirected.
*
*/
public Optional backendPort() {
return Optional.ofNullable(this.backendPort);
}
/**
* @return The external endpoint port of the inbound connection. Possible values range between 1 and 65535, inclusive. If unspecified, a value will be allocated automatically.
*
*/
public Optional frontendPort() {
return Optional.ofNullable(this.frontendPort);
}
/**
* @return The transport protocol for the endpoint.
*
*/
public Optional transportProtocol() {
return Optional.ofNullable(this.transportProtocol);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(InboundNatRuleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer backendPort;
private @Nullable Integer frontendPort;
private @Nullable String transportProtocol;
public Builder() {}
public Builder(InboundNatRuleResponse defaults) {
Objects.requireNonNull(defaults);
this.backendPort = defaults.backendPort;
this.frontendPort = defaults.frontendPort;
this.transportProtocol = defaults.transportProtocol;
}
@CustomType.Setter
public Builder backendPort(@Nullable Integer backendPort) {
this.backendPort = backendPort;
return this;
}
@CustomType.Setter
public Builder frontendPort(@Nullable Integer frontendPort) {
this.frontendPort = frontendPort;
return this;
}
@CustomType.Setter
public Builder transportProtocol(@Nullable String transportProtocol) {
this.transportProtocol = transportProtocol;
return this;
}
public InboundNatRuleResponse build() {
final var _resultValue = new InboundNatRuleResponse();
_resultValue.backendPort = backendPort;
_resultValue.frontendPort = frontendPort;
_resultValue.transportProtocol = transportProtocol;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy