Enum Class IpAddressType
- All Implemented Interfaces:
Serializable,Comparable<IpAddressType>,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.93.0 (build 1706ca5)",
date="2024-01-03T18:29:26.535Z")
@Stability(Stable)
public enum IpAddressType
extends Enum<IpAddressType>
What kind of addresses to allocate to the load balancer.
Example:
Vpc vpc;
ApplicationLoadBalancer lb = ApplicationLoadBalancer.Builder.create(this, "LB")
.vpc(vpc)
.internetFacing(true)
// Whether HTTP/2 is enabled
.http2Enabled(false)
// The idle timeout value, in seconds
.idleTimeout(Duration.seconds(1000))
// Whether HTTP headers with header fields thatare not valid
// are removed by the load balancer (true), or routed to targets
.dropInvalidHeaderFields(true)
// How the load balancer handles requests that might
// pose a security risk to your application
.desyncMitigationMode(DesyncMitigationMode.DEFENSIVE)
// The type of IP addresses to use.
.ipAddressType(IpAddressType.IPV4)
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllocate both IPv4 and IPv6 addresses.Allocate IPv4 addresses. -
Method Summary
Modifier and TypeMethodDescriptionstatic IpAddressTypeReturns the enum constant of this class with the specified name.static IpAddressType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IPV4
Allocate IPv4 addresses. -
DUAL_STACK
Allocate both IPv4 and IPv6 addresses.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-