
com.pulumi.scm.outputs.GetIpsecTunnelListDataAutoKeyProxyIdProtocolTcp 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.scm.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.util.Objects;
@CustomType
public final class GetIpsecTunnelListDataAutoKeyProxyIdProtocolTcp {
/**
* @return The LocalPort param. Value must be between 0 and 65535. Default: `0`.
*
*/
private Integer localPort;
/**
* @return The RemotePort param. Value must be between 0 and 65535. Default: `0`.
*
*/
private Integer remotePort;
private GetIpsecTunnelListDataAutoKeyProxyIdProtocolTcp() {}
/**
* @return The LocalPort param. Value must be between 0 and 65535. Default: `0`.
*
*/
public Integer localPort() {
return this.localPort;
}
/**
* @return The RemotePort param. Value must be between 0 and 65535. Default: `0`.
*
*/
public Integer remotePort() {
return this.remotePort;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetIpsecTunnelListDataAutoKeyProxyIdProtocolTcp defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer localPort;
private Integer remotePort;
public Builder() {}
public Builder(GetIpsecTunnelListDataAutoKeyProxyIdProtocolTcp defaults) {
Objects.requireNonNull(defaults);
this.localPort = defaults.localPort;
this.remotePort = defaults.remotePort;
}
@CustomType.Setter
public Builder localPort(Integer localPort) {
if (localPort == null) {
throw new MissingRequiredPropertyException("GetIpsecTunnelListDataAutoKeyProxyIdProtocolTcp", "localPort");
}
this.localPort = localPort;
return this;
}
@CustomType.Setter
public Builder remotePort(Integer remotePort) {
if (remotePort == null) {
throw new MissingRequiredPropertyException("GetIpsecTunnelListDataAutoKeyProxyIdProtocolTcp", "remotePort");
}
this.remotePort = remotePort;
return this;
}
public GetIpsecTunnelListDataAutoKeyProxyIdProtocolTcp build() {
final var _resultValue = new GetIpsecTunnelListDataAutoKeyProxyIdProtocolTcp();
_resultValue.localPort = localPort;
_resultValue.remotePort = remotePort;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy