public static final class AddApplicationTargetGroupsProps.Builder
extends java.lang.Object
AddApplicationTargetGroupsProps
Constructor and Description |
---|
Builder() |
public AddApplicationTargetGroupsProps.Builder targetGroups(java.util.List<? extends IApplicationTargetGroup> targetGroups)
AddApplicationTargetGroupsProps.getTargetGroups()
targetGroups
- Target groups to forward requests to. This parameter is required.this
public AddApplicationTargetGroupsProps.Builder conditions(java.util.List<? extends ListenerCondition> conditions)
AddRuleProps.getConditions()
conditions
- Rule applies if matches the conditions.this
@Deprecated public AddApplicationTargetGroupsProps.Builder hostHeader(java.lang.String hostHeader)
AddRuleProps.getHostHeader()
hostHeader
- Rule applies if the requested host matches the indicated host.
May contain up to three '*' wildcards.
Requires that priority is set.
this
@Deprecated public AddApplicationTargetGroupsProps.Builder pathPattern(java.lang.String pathPattern)
AddRuleProps.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
@Deprecated public AddApplicationTargetGroupsProps.Builder pathPatterns(java.util.List<java.lang.String> pathPatterns)
AddRuleProps.getPathPatterns()
pathPatterns
- Rule applies if the requested path matches any of the given patterns.
May contain up to three '*' wildcards.
Requires that priority is set.
this
public AddApplicationTargetGroupsProps.Builder priority(java.lang.Number priority)
AddRuleProps.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 AddApplicationTargetGroupsProps build()
AddApplicationTargetGroupsProps
java.lang.NullPointerException
- if any required attribute was not provided