public static final class BaseApplicationListenerRuleProps.Builder
extends java.lang.Object
BaseApplicationListenerRuleProps
Constructor and Description |
---|
Builder() |
public BaseApplicationListenerRuleProps.Builder priority(java.lang.Number priority)
BaseApplicationListenerRuleProps.getPriority()
priority
- Priority of the rule. This parameter is required.
The rule with the lowest priority will be used for every request.
Priorities must be unique.
this
public BaseApplicationListenerRuleProps.Builder action(ListenerAction action)
BaseApplicationListenerRuleProps.getAction()
action
- Action to perform when requests are received.
Only one of action
, fixedResponse
, redirectResponse
or targetGroups
can be specified.this
public BaseApplicationListenerRuleProps.Builder conditions(java.util.List<? extends ListenerCondition> conditions)
BaseApplicationListenerRuleProps.getConditions()
conditions
- Rule applies if matches the conditions.this
@Deprecated public BaseApplicationListenerRuleProps.Builder fixedResponse(FixedResponse fixedResponse)
BaseApplicationListenerRuleProps.getFixedResponse()
fixedResponse
- Fixed response to return.
Only one of action
, fixedResponse
, redirectResponse
or targetGroups
can be specified.this
@Deprecated public BaseApplicationListenerRuleProps.Builder hostHeader(java.lang.String hostHeader)
BaseApplicationListenerRuleProps.getHostHeader()
hostHeader
- Rule applies if the requested host matches the indicated host.
May contain up to three '*' wildcards.this
@Deprecated public BaseApplicationListenerRuleProps.Builder pathPattern(java.lang.String pathPattern)
BaseApplicationListenerRuleProps.getPathPattern()
pathPattern
- Rule applies if the requested path matches the given path pattern.this
@Deprecated public BaseApplicationListenerRuleProps.Builder pathPatterns(java.util.List<java.lang.String> pathPatterns)
BaseApplicationListenerRuleProps.getPathPatterns()
pathPatterns
- Rule applies if the requested path matches any of the given patterns.
Paths may contain up to three '*' wildcards.this
@Deprecated public BaseApplicationListenerRuleProps.Builder redirectResponse(RedirectResponse redirectResponse)
BaseApplicationListenerRuleProps.getRedirectResponse()
redirectResponse
- Redirect response to return.
Only one of action
, fixedResponse
, redirectResponse
or targetGroups
can be specified.this
public BaseApplicationListenerRuleProps.Builder targetGroups(java.util.List<? extends IApplicationTargetGroup> targetGroups)
BaseApplicationListenerRuleProps.getTargetGroups()
targetGroups
- Target groups to forward requests to.
Only one of action
, fixedResponse
, redirectResponse
or targetGroups
can be specified.
Implies a forward
action.
this
public BaseApplicationListenerRuleProps build()
BaseApplicationListenerRuleProps
java.lang.NullPointerException
- if any required attribute was not provided