public static final class ApplicationTargetProps.Builder
extends java.lang.Object
ApplicationTargetProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ApplicationTargetProps |
build()
Builds the configured instance.
|
ApplicationTargetProps.Builder |
containerPort(java.lang.Number containerPort)
Sets the value of
ApplicationTargetProps.getContainerPort() |
ApplicationTargetProps.Builder |
hostHeader(java.lang.String hostHeader)
Sets the value of
ApplicationTargetProps.getHostHeader() |
ApplicationTargetProps.Builder |
listener(java.lang.String listener)
Sets the value of
ApplicationTargetProps.getListener() |
ApplicationTargetProps.Builder |
pathPattern(java.lang.String pathPattern)
Sets the value of
ApplicationTargetProps.getPathPattern() |
ApplicationTargetProps.Builder |
priority(java.lang.Number priority)
Sets the value of
ApplicationTargetProps.getPriority() |
ApplicationTargetProps.Builder |
protocol(Protocol protocol)
Sets the value of
ApplicationTargetProps.getProtocol() |
public ApplicationTargetProps.Builder containerPort(java.lang.Number containerPort)
ApplicationTargetProps.getContainerPort()
containerPort
- The port number of the container. This parameter is required.
Only applicable when using application/network load balancers.this
public ApplicationTargetProps.Builder hostHeader(java.lang.String hostHeader)
ApplicationTargetProps.getHostHeader()
hostHeader
- Rule applies if the requested host matches the indicated host.
May contain up to three '*' wildcards.
Requires that priority is set.
this
public ApplicationTargetProps.Builder listener(java.lang.String listener)
ApplicationTargetProps.getListener()
listener
- Name of the listener the target group attached to.this
public ApplicationTargetProps.Builder pathPattern(java.lang.String pathPattern)
ApplicationTargetProps.getPathPattern()
pathPattern
- Rule applies if the requested path matches the given path pattern.
May contain up to three '*' wildcards.
Requires that priority is set.
this
public ApplicationTargetProps.Builder priority(java.lang.Number priority)
ApplicationTargetProps.getPriority()
priority
- Priority of this target group.
The rule with the lowest priority will be used for every request.
If priority is not given, these target groups will be added as
defaults, and must not have conditions.
Priorities must be unique.
this
public ApplicationTargetProps.Builder protocol(Protocol protocol)
ApplicationTargetProps.getProtocol()
protocol
- The protocol used for the port mapping.
Only applicable when using application load balancers.this
public ApplicationTargetProps build()
ApplicationTargetProps
java.lang.NullPointerException
- if any required attribute was not provided