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 interfaceAction.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticateCognitoActionConfigauthenticateCognitoConfig()[HTTPS listeners] Information for using Amazon Cognito to authenticate users.AuthenticateOidcActionConfigauthenticateOidcConfig()[HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC).static Action.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)FixedResponseActionConfigfixedResponseConfig()[Application Load Balancer] Information for creating an action that returns a custom HTTP response.ForwardActionConfigforwardConfig()Information for creating an action that distributes requests among one or more target groups.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Integerorder()The order for the action.RedirectActionConfigredirectConfig()[Application Load Balancer] Information for creating a redirect action.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Action.Builder>serializableBuilderClass()StringtargetGroupArn()The Amazon Resource Name (ARN) of the target group.Action.BuildertoBuilder()StringtoString()Returns a string representation of this object.ActionTypeEnumtype()The type of action.StringtypeAsString()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,
typewill 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,
typewill 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
Typeisforwardand you want to route to a single target group. To route to one or more target groups, useForwardConfiginstead.- Returns:
- The Amazon Resource Name (ARN) of the target group. Specify only when
Typeisforwardand you want to route to a single target group. To route to one or more target groups, useForwardConfiginstead.
-
authenticateOidcConfig
public final AuthenticateOidcActionConfig authenticateOidcConfig()
[HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC). Specify only when
Typeisauthenticate-oidc.- Returns:
- [HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC).
Specify only when
Typeisauthenticate-oidc.
-
authenticateCognitoConfig
public final AuthenticateCognitoActionConfig authenticateCognitoConfig()
[HTTPS listeners] Information for using Amazon Cognito to authenticate users. Specify only when
Typeisauthenticate-cognito.- Returns:
- [HTTPS listeners] Information for using Amazon Cognito to authenticate users. Specify only when
Typeisauthenticate-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
Typeisredirect.- Returns:
- [Application Load Balancer] Information for creating a redirect action. Specify only when
Typeisredirect.
-
fixedResponseConfig
public final FixedResponseActionConfig fixedResponseConfig()
[Application Load Balancer] Information for creating an action that returns a custom HTTP response. Specify only when
Typeisfixed-response.- Returns:
- [Application Load Balancer] Information for creating an action that returns a custom HTTP response.
Specify only when
Typeisfixed-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
Typeisforward. If you specify bothForwardConfigandTargetGroupArn, you can specify only one target group usingForwardConfigand 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
Typeisforward. If you specify bothForwardConfigandTargetGroupArn, you can specify only one target group usingForwardConfigand it must be the same target group specified inTargetGroupArn.
-
toBuilder
public Action.Builder toBuilder()
- Specified by:
toBuilderin 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:
equalsBySdkFieldsin 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:
sdkFieldNameToFieldin interfaceSdkPojo
-
-