Class Action
- java.lang.Object
-
- software.amazon.awssdk.services.elasticloadbalancingv2.model.Action
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Action.Builder,Action>
@Generated("software.amazon.awssdk:codegen") public final class Action extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Action.Builder,Action>
Information about an action.
Each rule must include exactly one of the following types of actions:
forward
,fixed-response
, orredirect
, and it must be the last action to be performed.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Action.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticateCognitoActionConfig
authenticateCognitoConfig()
[HTTPS listeners] Information for using Amazon Cognito to authenticate users.AuthenticateOidcActionConfig
authenticateOidcConfig()
[HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC).static Action.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
FixedResponseActionConfig
fixedResponseConfig()
[Application Load Balancer] Information for creating an action that returns a custom HTTP response.ForwardActionConfig
forwardConfig()
Information for creating an action that distributes requests among one or more target groups.<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Integer
order()
The order for the action.RedirectActionConfig
redirectConfig()
[Application Load Balancer] Information for creating a redirect action.Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends Action.Builder>
serializableBuilderClass()
String
targetGroupArn()
The Amazon Resource Name (ARN) of the target group.Action.Builder
toBuilder()
String
toString()
Returns a string representation of this object.ActionTypeEnum
type()
The type of action.String
typeAsString()
The type of action.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
type
public final ActionTypeEnum type()
The type of action.
If the service returns an enum value that is not available in the current SDK version,
type
will returnActionTypeEnum.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- The type of action.
- See Also:
ActionTypeEnum
-
typeAsString
public final String typeAsString()
The type of action.
If the service returns an enum value that is not available in the current SDK version,
type
will returnActionTypeEnum.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- The type of action.
- See Also:
ActionTypeEnum
-
targetGroupArn
public final String targetGroupArn()
The Amazon Resource Name (ARN) of the target group. Specify only when
Type
isforward
and you want to route to a single target group. To route to one or more target groups, useForwardConfig
instead.- Returns:
- The Amazon Resource Name (ARN) of the target group. Specify only when
Type
isforward
and you want to route to a single target group. To route to one or more target groups, useForwardConfig
instead.
-
authenticateOidcConfig
public final AuthenticateOidcActionConfig authenticateOidcConfig()
[HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC). Specify only when
Type
isauthenticate-oidc
.- Returns:
- [HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC).
Specify only when
Type
isauthenticate-oidc
.
-
authenticateCognitoConfig
public final AuthenticateCognitoActionConfig authenticateCognitoConfig()
[HTTPS listeners] Information for using Amazon Cognito to authenticate users. Specify only when
Type
isauthenticate-cognito
.- Returns:
- [HTTPS listeners] Information for using Amazon Cognito to authenticate users. Specify only when
Type
isauthenticate-cognito
.
-
order
public final 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.
- Returns:
- 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.
-
redirectConfig
public final RedirectActionConfig redirectConfig()
[Application Load Balancer] Information for creating a redirect action. Specify only when
Type
isredirect
.- Returns:
- [Application Load Balancer] Information for creating a redirect action. Specify only when
Type
isredirect
.
-
fixedResponseConfig
public final FixedResponseActionConfig fixedResponseConfig()
[Application Load Balancer] Information for creating an action that returns a custom HTTP response. Specify only when
Type
isfixed-response
.- Returns:
- [Application Load Balancer] Information for creating an action that returns a custom HTTP response.
Specify only when
Type
isfixed-response
.
-
forwardConfig
public final 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
isforward
. If you specify bothForwardConfig
andTargetGroupArn
, you can specify only one target group usingForwardConfig
and it must be the same target group specified inTargetGroupArn
.- Returns:
- 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
isforward
. If you specify bothForwardConfig
andTargetGroupArn
, you can specify only one target group usingForwardConfig
and it must be the same target group specified inTargetGroupArn
.
-
toBuilder
public Action.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<Action.Builder,Action>
-
builder
public static Action.Builder builder()
-
serializableBuilderClass
public static Class<? extends Action.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-