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