@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Action extends Object implements Serializable, Cloneable
Information about an action.
 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.
 
| Constructor and Description | 
|---|
| Action() | 
| Modifier and Type | Method and Description | 
|---|---|
| Action | clone() | 
| boolean | equals(Object obj) | 
| AuthenticateCognitoActionConfig | getAuthenticateCognitoConfig()
 [HTTPS listeners] Information for using Amazon Cognito to authenticate users. | 
| AuthenticateOidcActionConfig | getAuthenticateOidcConfig()
 [HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC). | 
| FixedResponseActionConfig | getFixedResponseConfig()
 [Application Load Balancer] Information for creating an action that returns a custom HTTP response. | 
| ForwardActionConfig | getForwardConfig()
 Information for creating an action that distributes requests among one or more target groups. | 
| Integer | getOrder()
 The order for the action. | 
| RedirectActionConfig | getRedirectConfig()
 [Application Load Balancer] Information for creating a redirect action. | 
| String | getTargetGroupArn()
 The Amazon Resource Name (ARN) of the target group. | 
| String | getType()
 The type of action. | 
| int | hashCode() | 
| void | setAuthenticateCognitoConfig(AuthenticateCognitoActionConfig authenticateCognitoConfig)
 [HTTPS listeners] Information for using Amazon Cognito to authenticate users. | 
| void | setAuthenticateOidcConfig(AuthenticateOidcActionConfig authenticateOidcConfig)
 [HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC). | 
| void | setFixedResponseConfig(FixedResponseActionConfig fixedResponseConfig)
 [Application Load Balancer] Information for creating an action that returns a custom HTTP response. | 
| void | setForwardConfig(ForwardActionConfig forwardConfig)
 Information for creating an action that distributes requests among one or more target groups. | 
| void | setOrder(Integer order)
 The order for the action. | 
| void | setRedirectConfig(RedirectActionConfig redirectConfig)
 [Application Load Balancer] Information for creating a redirect action. | 
| void | setTargetGroupArn(String targetGroupArn)
 The Amazon Resource Name (ARN) of the target group. | 
| void | setType(ActionTypeEnum type)
 The type of action. | 
| void | setType(String type)
 The type of action. | 
| String | toString()Returns a string representation of this object. | 
| Action | withAuthenticateCognitoConfig(AuthenticateCognitoActionConfig authenticateCognitoConfig)
 [HTTPS listeners] Information for using Amazon Cognito to authenticate users. | 
| Action | withAuthenticateOidcConfig(AuthenticateOidcActionConfig authenticateOidcConfig)
 [HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC). | 
| Action | withFixedResponseConfig(FixedResponseActionConfig fixedResponseConfig)
 [Application Load Balancer] Information for creating an action that returns a custom HTTP response. | 
| Action | withForwardConfig(ForwardActionConfig forwardConfig)
 Information for creating an action that distributes requests among one or more target groups. | 
| Action | withOrder(Integer order)
 The order for the action. | 
| Action | withRedirectConfig(RedirectActionConfig redirectConfig)
 [Application Load Balancer] Information for creating a redirect action. | 
| Action | withTargetGroupArn(String targetGroupArn)
 The Amazon Resource Name (ARN) of the target group. | 
| Action | withType(ActionTypeEnum type)
 The type of action. | 
| Action | withType(String type)
 The type of action. | 
public void setType(String type)
The type of action.
type - The type of action.ActionTypeEnumpublic String getType()
The type of action.
ActionTypeEnumpublic Action withType(String type)
The type of action.
type - The type of action.ActionTypeEnumpublic void setType(ActionTypeEnum type)
The type of action.
type - The type of action.ActionTypeEnumpublic Action withType(ActionTypeEnum type)
The type of action.
type - The type of action.ActionTypeEnumpublic void setTargetGroupArn(String targetGroupArn)
 The Amazon Resource Name (ARN) of the target group. Specify only when Type is forward
 and you want to route to a single target group. To route to one or more target groups, use
 ForwardConfig instead.
 
targetGroupArn - The Amazon Resource Name (ARN) of the target group. Specify only when Type is
        forward and you want to route to a single target group. To route to one or more target
        groups, use ForwardConfig instead.public String getTargetGroupArn()
 The Amazon Resource Name (ARN) of the target group. Specify only when Type is forward
 and you want to route to a single target group. To route to one or more target groups, use
 ForwardConfig instead.
 
Type is
         forward and you want to route to a single target group. To route to one or more target
         groups, use ForwardConfig instead.public Action withTargetGroupArn(String targetGroupArn)
 The Amazon Resource Name (ARN) of the target group. Specify only when Type is forward
 and you want to route to a single target group. To route to one or more target groups, use
 ForwardConfig instead.
 
targetGroupArn - The Amazon Resource Name (ARN) of the target group. Specify only when Type is
        forward and you want to route to a single target group. To route to one or more target
        groups, use ForwardConfig instead.public void setAuthenticateOidcConfig(AuthenticateOidcActionConfig authenticateOidcConfig)
 [HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC). Specify
 only when Type is authenticate-oidc.
 
authenticateOidcConfig - [HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC).
        Specify only when Type is authenticate-oidc.public AuthenticateOidcActionConfig getAuthenticateOidcConfig()
 [HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC). Specify
 only when Type is authenticate-oidc.
 
Type is authenticate-oidc.public Action withAuthenticateOidcConfig(AuthenticateOidcActionConfig authenticateOidcConfig)
 [HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC). Specify
 only when Type is authenticate-oidc.
 
authenticateOidcConfig - [HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC).
        Specify only when Type is authenticate-oidc.public void setAuthenticateCognitoConfig(AuthenticateCognitoActionConfig authenticateCognitoConfig)
 [HTTPS listeners] Information for using Amazon Cognito to authenticate users. Specify only when Type
 is authenticate-cognito.
 
authenticateCognitoConfig - [HTTPS listeners] Information for using Amazon Cognito to authenticate users. Specify only when
        Type is authenticate-cognito.public AuthenticateCognitoActionConfig getAuthenticateCognitoConfig()
 [HTTPS listeners] Information for using Amazon Cognito to authenticate users. Specify only when Type
 is authenticate-cognito.
 
Type is authenticate-cognito.public Action withAuthenticateCognitoConfig(AuthenticateCognitoActionConfig authenticateCognitoConfig)
 [HTTPS listeners] Information for using Amazon Cognito to authenticate users. Specify only when Type
 is authenticate-cognito.
 
authenticateCognitoConfig - [HTTPS listeners] Information for using Amazon Cognito to authenticate users. Specify only when
        Type is authenticate-cognito.public void setOrder(Integer order)
The order for the action. This value is required for rules with multiple actions. The action with the lowest value for order is performed first.
order - The order for the action. This value is required for rules with multiple actions. The action with the
        lowest value for order is performed first.public Integer getOrder()
The order for the action. This value is required for rules with multiple actions. The action with the lowest value for order is performed first.
public Action withOrder(Integer order)
The order for the action. This value is required for rules with multiple actions. The action with the lowest value for order is performed first.
order - The order for the action. This value is required for rules with multiple actions. The action with the
        lowest value for order is performed first.public void setRedirectConfig(RedirectActionConfig redirectConfig)
 [Application Load Balancer] Information for creating a redirect action. Specify only when Type is
 redirect.
 
redirectConfig - [Application Load Balancer] Information for creating a redirect action. Specify only when
        Type is redirect.public RedirectActionConfig getRedirectConfig()
 [Application Load Balancer] Information for creating a redirect action. Specify only when Type is
 redirect.
 
Type is redirect.public Action withRedirectConfig(RedirectActionConfig redirectConfig)
 [Application Load Balancer] Information for creating a redirect action. Specify only when Type is
 redirect.
 
redirectConfig - [Application Load Balancer] Information for creating a redirect action. Specify only when
        Type is redirect.public void setFixedResponseConfig(FixedResponseActionConfig fixedResponseConfig)
 [Application Load Balancer] Information for creating an action that returns a custom HTTP response. Specify only
 when Type is fixed-response.
 
fixedResponseConfig - [Application Load Balancer] Information for creating an action that returns a custom HTTP response.
        Specify only when Type is fixed-response.public FixedResponseActionConfig getFixedResponseConfig()
 [Application Load Balancer] Information for creating an action that returns a custom HTTP response. Specify only
 when Type is fixed-response.
 
Type is fixed-response.public Action withFixedResponseConfig(FixedResponseActionConfig fixedResponseConfig)
 [Application Load Balancer] Information for creating an action that returns a custom HTTP response. Specify only
 when Type is fixed-response.
 
fixedResponseConfig - [Application Load Balancer] Information for creating an action that returns a custom HTTP response.
        Specify only when Type is fixed-response.public void setForwardConfig(ForwardActionConfig forwardConfig)
 Information for creating an action that distributes requests among one or more target groups. For Network Load
 Balancers, you can specify a single target group. Specify only when Type is forward. If
 you specify both ForwardConfig and TargetGroupArn, you can specify only one target
 group using ForwardConfig and it must be the same target group specified in
 TargetGroupArn.
 
forwardConfig - Information for creating an action that distributes requests among one or more target groups. For Network
        Load Balancers, you can specify a single target group. Specify only when Type is
        forward. If you specify both ForwardConfig and TargetGroupArn, you
        can specify only one target group using ForwardConfig and it must be the same target group
        specified in TargetGroupArn.public ForwardActionConfig getForwardConfig()
 Information for creating an action that distributes requests among one or more target groups. For Network Load
 Balancers, you can specify a single target group. Specify only when Type is forward. If
 you specify both ForwardConfig and TargetGroupArn, you can specify only one target
 group using ForwardConfig and it must be the same target group specified in
 TargetGroupArn.
 
Type is
         forward. If you specify both ForwardConfig and TargetGroupArn, you
         can specify only one target group using ForwardConfig and it must be the same target group
         specified in TargetGroupArn.public Action withForwardConfig(ForwardActionConfig forwardConfig)
 Information for creating an action that distributes requests among one or more target groups. For Network Load
 Balancers, you can specify a single target group. Specify only when Type is forward. If
 you specify both ForwardConfig and TargetGroupArn, you can specify only one target
 group using ForwardConfig and it must be the same target group specified in
 TargetGroupArn.
 
forwardConfig - Information for creating an action that distributes requests among one or more target groups. For Network
        Load Balancers, you can specify a single target group. Specify only when Type is
        forward. If you specify both ForwardConfig and TargetGroupArn, you
        can specify only one target group using ForwardConfig and it must be the same target group
        specified in TargetGroupArn.public String toString()
toString in class ObjectObject.toString()