@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateRuleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description | 
|---|
| CreateRuleRequest() | 
| Modifier and Type | Method and Description | 
|---|---|
| CreateRuleRequest | clone()Creates a shallow clone of this object for all fields except the handler context. | 
| boolean | equals(Object obj) | 
| List<Action> | getActions()
 The actions. | 
| List<RuleCondition> | getConditions()
 The conditions. | 
| String | getListenerArn()
 The Amazon Resource Name (ARN) of the listener. | 
| Integer | getPriority()
 The rule priority. | 
| List<Tag> | getTags()
 The tags to assign to the rule. | 
| int | hashCode() | 
| void | setActions(Collection<Action> actions)
 The actions. | 
| void | setConditions(Collection<RuleCondition> conditions)
 The conditions. | 
| void | setListenerArn(String listenerArn)
 The Amazon Resource Name (ARN) of the listener. | 
| void | setPriority(Integer priority)
 The rule priority. | 
| void | setTags(Collection<Tag> tags)
 The tags to assign to the rule. | 
| String | toString()Returns a string representation of this object. | 
| CreateRuleRequest | withActions(Action... actions)
 The actions. | 
| CreateRuleRequest | withActions(Collection<Action> actions)
 The actions. | 
| CreateRuleRequest | withConditions(Collection<RuleCondition> conditions)
 The conditions. | 
| CreateRuleRequest | withConditions(RuleCondition... conditions)
 The conditions. | 
| CreateRuleRequest | withListenerArn(String listenerArn)
 The Amazon Resource Name (ARN) of the listener. | 
| CreateRuleRequest | withPriority(Integer priority)
 The rule priority. | 
| CreateRuleRequest | withTags(Collection<Tag> tags)
 The tags to assign to the rule. | 
| CreateRuleRequest | withTags(Tag... tags)
 The tags to assign to the rule. | 
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setListenerArn(String listenerArn)
The Amazon Resource Name (ARN) of the listener.
listenerArn - The Amazon Resource Name (ARN) of the listener.public String getListenerArn()
The Amazon Resource Name (ARN) of the listener.
public CreateRuleRequest withListenerArn(String listenerArn)
The Amazon Resource Name (ARN) of the listener.
listenerArn - The Amazon Resource Name (ARN) of the listener.public List<RuleCondition> getConditions()
 The conditions. Each rule can optionally include up to one of each of the following conditions:
 http-request-method, host-header, path-pattern, and source-ip
 . Each rule can also optionally include one or more of each of the following conditions: http-header
 and query-string.
 
http-request-method, host-header, path-pattern, and
         source-ip. Each rule can also optionally include one or more of each of the following
         conditions: http-header and query-string.public void setConditions(Collection<RuleCondition> conditions)
 The conditions. Each rule can optionally include up to one of each of the following conditions:
 http-request-method, host-header, path-pattern, and source-ip
 . Each rule can also optionally include one or more of each of the following conditions: http-header
 and query-string.
 
conditions - The conditions. Each rule can optionally include up to one of each of the following conditions:
        http-request-method, host-header, path-pattern, and
        source-ip. Each rule can also optionally include one or more of each of the following
        conditions: http-header and query-string.public CreateRuleRequest withConditions(RuleCondition... conditions)
 The conditions. Each rule can optionally include up to one of each of the following conditions:
 http-request-method, host-header, path-pattern, and source-ip
 . Each rule can also optionally include one or more of each of the following conditions: http-header
 and query-string.
 
 NOTE: This method appends the values to the existing list (if any). Use
 setConditions(java.util.Collection) or withConditions(java.util.Collection) if you want to
 override the existing values.
 
conditions - The conditions. Each rule can optionally include up to one of each of the following conditions:
        http-request-method, host-header, path-pattern, and
        source-ip. Each rule can also optionally include one or more of each of the following
        conditions: http-header and query-string.public CreateRuleRequest withConditions(Collection<RuleCondition> conditions)
 The conditions. Each rule can optionally include up to one of each of the following conditions:
 http-request-method, host-header, path-pattern, and source-ip
 . Each rule can also optionally include one or more of each of the following conditions: http-header
 and query-string.
 
conditions - The conditions. Each rule can optionally include up to one of each of the following conditions:
        http-request-method, host-header, path-pattern, and
        source-ip. Each rule can also optionally include one or more of each of the following
        conditions: http-header and query-string.public void setPriority(Integer priority)
The rule priority. A listener can't have multiple rules with the same priority.
priority - The rule priority. A listener can't have multiple rules with the same priority.public Integer getPriority()
The rule priority. A listener can't have multiple rules with the same priority.
public CreateRuleRequest withPriority(Integer priority)
The rule priority. A listener can't have multiple rules with the same priority.
priority - The rule priority. A listener can't have multiple rules with the same priority.public List<Action> getActions()
 The actions. Each rule must include exactly one of the following types of actions: forward,
 fixed-response, or redirect, and it must be the last action to be performed.
 
 If the action type is forward, you specify one or more target groups. The protocol of the target
 group must be HTTP or HTTPS for an Application Load Balancer. The protocol of the target group must be TCP, TLS,
 UDP, or TCP_UDP for a Network Load Balancer.
 
 [HTTPS listeners] If the action type is authenticate-oidc, you authenticate users through an
 identity provider that is OpenID Connect (OIDC) compliant.
 
 [HTTPS listeners] If the action type is authenticate-cognito, you authenticate users through the
 user pools supported by Amazon Cognito.
 
 [Application Load Balancer] If the action type is redirect, you redirect specified client requests
 from one URL to another.
 
 [Application Load Balancer] If the action type is fixed-response, you drop specified client requests
 and return a custom HTTP response.
 
forward,
         fixed-response, or redirect, and it must be the last action to be
         performed.
         
         If the action type is forward, you specify one or more target groups. The protocol of the
         target group must be HTTP or HTTPS for an Application Load Balancer. The protocol of the target group
         must be TCP, TLS, UDP, or TCP_UDP for a Network Load Balancer.
         
         [HTTPS listeners] If the action type is authenticate-oidc, you authenticate users through an
         identity provider that is OpenID Connect (OIDC) compliant.
         
         [HTTPS listeners] If the action type is authenticate-cognito, you authenticate users through
         the user pools supported by Amazon Cognito.
         
         [Application Load Balancer] If the action type is redirect, you redirect specified client
         requests from one URL to another.
         
         [Application Load Balancer] If the action type is fixed-response, you drop specified client
         requests and return a custom HTTP response.
public void setActions(Collection<Action> actions)
 The actions. Each rule must include exactly one of the following types of actions: forward,
 fixed-response, or redirect, and it must be the last action to be performed.
 
 If the action type is forward, you specify one or more target groups. The protocol of the target
 group must be HTTP or HTTPS for an Application Load Balancer. The protocol of the target group must be TCP, TLS,
 UDP, or TCP_UDP for a Network Load Balancer.
 
 [HTTPS listeners] If the action type is authenticate-oidc, you authenticate users through an
 identity provider that is OpenID Connect (OIDC) compliant.
 
 [HTTPS listeners] If the action type is authenticate-cognito, you authenticate users through the
 user pools supported by Amazon Cognito.
 
 [Application Load Balancer] If the action type is redirect, you redirect specified client requests
 from one URL to another.
 
 [Application Load Balancer] If the action type is fixed-response, you drop specified client requests
 and return a custom HTTP response.
 
actions - The actions. Each rule must include exactly one of the following types of actions: forward,
        fixed-response, or redirect, and it must be the last action to be performed.
        
        If the action type is forward, you specify one or more target groups. The protocol of the
        target group must be HTTP or HTTPS for an Application Load Balancer. The protocol of the target group must
        be TCP, TLS, UDP, or TCP_UDP for a Network Load Balancer.
        
        [HTTPS listeners] If the action type is authenticate-oidc, you authenticate users through an
        identity provider that is OpenID Connect (OIDC) compliant.
        
        [HTTPS listeners] If the action type is authenticate-cognito, you authenticate users through
        the user pools supported by Amazon Cognito.
        
        [Application Load Balancer] If the action type is redirect, you redirect specified client
        requests from one URL to another.
        
        [Application Load Balancer] If the action type is fixed-response, you drop specified client
        requests and return a custom HTTP response.
public CreateRuleRequest withActions(Action... actions)
 The actions. Each rule must include exactly one of the following types of actions: forward,
 fixed-response, or redirect, and it must be the last action to be performed.
 
 If the action type is forward, you specify one or more target groups. The protocol of the target
 group must be HTTP or HTTPS for an Application Load Balancer. The protocol of the target group must be TCP, TLS,
 UDP, or TCP_UDP for a Network Load Balancer.
 
 [HTTPS listeners] If the action type is authenticate-oidc, you authenticate users through an
 identity provider that is OpenID Connect (OIDC) compliant.
 
 [HTTPS listeners] If the action type is authenticate-cognito, you authenticate users through the
 user pools supported by Amazon Cognito.
 
 [Application Load Balancer] If the action type is redirect, you redirect specified client requests
 from one URL to another.
 
 [Application Load Balancer] If the action type is fixed-response, you drop specified client requests
 and return a custom HTTP response.
 
 NOTE: This method appends the values to the existing list (if any). Use
 setActions(java.util.Collection) or withActions(java.util.Collection) if you want to override
 the existing values.
 
actions - The actions. Each rule must include exactly one of the following types of actions: forward,
        fixed-response, or redirect, and it must be the last action to be performed.
        
        If the action type is forward, you specify one or more target groups. The protocol of the
        target group must be HTTP or HTTPS for an Application Load Balancer. The protocol of the target group must
        be TCP, TLS, UDP, or TCP_UDP for a Network Load Balancer.
        
        [HTTPS listeners] If the action type is authenticate-oidc, you authenticate users through an
        identity provider that is OpenID Connect (OIDC) compliant.
        
        [HTTPS listeners] If the action type is authenticate-cognito, you authenticate users through
        the user pools supported by Amazon Cognito.
        
        [Application Load Balancer] If the action type is redirect, you redirect specified client
        requests from one URL to another.
        
        [Application Load Balancer] If the action type is fixed-response, you drop specified client
        requests and return a custom HTTP response.
public CreateRuleRequest withActions(Collection<Action> actions)
 The actions. Each rule must include exactly one of the following types of actions: forward,
 fixed-response, or redirect, and it must be the last action to be performed.
 
 If the action type is forward, you specify one or more target groups. The protocol of the target
 group must be HTTP or HTTPS for an Application Load Balancer. The protocol of the target group must be TCP, TLS,
 UDP, or TCP_UDP for a Network Load Balancer.
 
 [HTTPS listeners] If the action type is authenticate-oidc, you authenticate users through an
 identity provider that is OpenID Connect (OIDC) compliant.
 
 [HTTPS listeners] If the action type is authenticate-cognito, you authenticate users through the
 user pools supported by Amazon Cognito.
 
 [Application Load Balancer] If the action type is redirect, you redirect specified client requests
 from one URL to another.
 
 [Application Load Balancer] If the action type is fixed-response, you drop specified client requests
 and return a custom HTTP response.
 
actions - The actions. Each rule must include exactly one of the following types of actions: forward,
        fixed-response, or redirect, and it must be the last action to be performed.
        
        If the action type is forward, you specify one or more target groups. The protocol of the
        target group must be HTTP or HTTPS for an Application Load Balancer. The protocol of the target group must
        be TCP, TLS, UDP, or TCP_UDP for a Network Load Balancer.
        
        [HTTPS listeners] If the action type is authenticate-oidc, you authenticate users through an
        identity provider that is OpenID Connect (OIDC) compliant.
        
        [HTTPS listeners] If the action type is authenticate-cognito, you authenticate users through
        the user pools supported by Amazon Cognito.
        
        [Application Load Balancer] If the action type is redirect, you redirect specified client
        requests from one URL to another.
        
        [Application Load Balancer] If the action type is fixed-response, you drop specified client
        requests and return a custom HTTP response.
public List<Tag> getTags()
The tags to assign to the rule.
public void setTags(Collection<Tag> tags)
The tags to assign to the rule.
tags - The tags to assign to the rule.public CreateRuleRequest withTags(Tag... tags)
The tags to assign to the rule.
 NOTE: This method appends the values to the existing list (if any). Use
 setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the
 existing values.
 
tags - The tags to assign to the rule.public CreateRuleRequest withTags(Collection<Tag> tags)
The tags to assign to the rule.
tags - The tags to assign to the rule.public String toString()
toString in class ObjectObject.toString()public CreateRuleRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()