@Generated(value="software.amazon.awssdk:codegen") public final class RuleAction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RuleAction.Builder,RuleAction>
Describes the action for a rule. Each rule must include exactly one of the following types of actions:
forward or fixed-response, and it must be the last action to be performed.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RuleAction.Builder |
static class |
RuleAction.Type |
| Modifier and Type | Method and Description |
|---|---|
static RuleAction.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
FixedResponseAction |
fixedResponse()
Describes the rule action that returns a custom HTTP response.
|
ForwardAction |
forward()
The forward action.
|
static RuleAction |
fromFixedResponse(Consumer<FixedResponseAction.Builder> fixedResponse)
Create an instance of this class with
fixedResponse() initialized to the given value. |
static RuleAction |
fromFixedResponse(FixedResponseAction fixedResponse)
Create an instance of this class with
fixedResponse() initialized to the given value. |
static RuleAction |
fromForward(Consumer<ForwardAction.Builder> forward)
Create an instance of this class with
forward() initialized to the given value. |
static RuleAction |
fromForward(ForwardAction forward)
Create an instance of this class with
forward() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends RuleAction.Builder> |
serializableBuilderClass() |
RuleAction.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
RuleAction.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final FixedResponseAction fixedResponse()
Describes the rule action that returns a custom HTTP response.
public final ForwardAction forward()
The forward action. Traffic that matches the rule is forwarded to the specified target groups.
public RuleAction.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RuleAction.Builder,RuleAction>public static RuleAction.Builder builder()
public static Class<? extends RuleAction.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static RuleAction fromFixedResponse(FixedResponseAction fixedResponse)
fixedResponse() initialized to the given value.
Describes the rule action that returns a custom HTTP response.
fixedResponse - Describes the rule action that returns a custom HTTP response.public static RuleAction fromFixedResponse(Consumer<FixedResponseAction.Builder> fixedResponse)
fixedResponse() initialized to the given value.
Describes the rule action that returns a custom HTTP response.
fixedResponse - Describes the rule action that returns a custom HTTP response.public static RuleAction fromForward(ForwardAction forward)
forward() initialized to the given value.
The forward action. Traffic that matches the rule is forwarded to the specified target groups.
forward - The forward action. Traffic that matches the rule is forwarded to the specified target groups.public static RuleAction fromForward(Consumer<ForwardAction.Builder> forward)
forward() initialized to the given value.
The forward action. Traffic that matches the rule is forwarded to the specified target groups.
forward - The forward action. Traffic that matches the rule is forwarded to the specified target groups.public RuleAction.Type type()
RuleAction.Type.UNKNOWN_TO_SDK_VERSION if the
service returned a member that is only known to a newer SDK version.
When this class is created directly in your code, this will be RuleAction.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.