Enum IpAddressType
- All Implemented Interfaces:
Serializable
,Comparable<IpAddressType>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.106.0 (build e852934)",
date="2025-01-25T00:20:55.681Z")
@Stability(Stable)
public enum IpAddressType
extends Enum<IpAddressType>
What kind of addresses to allocate to the load balancer.
Example:
Vpc vpc; NetworkLoadBalancer lb = NetworkLoadBalancer.Builder.create(this, "LB") .vpc(vpc) .ipAddressType(IpAddressType.DUAL_STACK) .enablePrefixForIpv6SourceNat(true) .build(); NetworkListener listener = lb.addListener("Listener", BaseNetworkListenerProps.builder() .port(1229) .protocol(Protocol.UDP) .build());
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAllocate both IPv4 and IPv6 addresses.IPv6 only public addresses, with private IPv4 and IPv6 addresses.Allocate IPv4 addresses. -
Method Summary
Modifier and TypeMethodDescriptionstatic IpAddressType
Returns the enum constant of this type with the specified name.static IpAddressType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
IPV4
Allocate IPv4 addresses. -
DUAL_STACK
Allocate both IPv4 and IPv6 addresses. -
DUAL_STACK_WITHOUT_PUBLIC_IPV4
IPv6 only public addresses, with private IPv4 and IPv6 addresses.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-