@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RuleAction extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
RuleAction() |
Modifier and Type | Method and Description |
---|---|
RuleAction |
clone() |
boolean |
equals(Object obj) |
FixedResponseAction |
getFixedResponse()
Describes the rule action that returns a custom HTTP response.
|
ForwardAction |
getForward()
The forward action.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFixedResponse(FixedResponseAction fixedResponse)
Describes the rule action that returns a custom HTTP response.
|
void |
setForward(ForwardAction forward)
The forward action.
|
String |
toString()
Returns a string representation of this object.
|
RuleAction |
withFixedResponse(FixedResponseAction fixedResponse)
Describes the rule action that returns a custom HTTP response.
|
RuleAction |
withForward(ForwardAction forward)
The forward action.
|
public void setFixedResponse(FixedResponseAction fixedResponse)
Describes the rule action that returns a custom HTTP response.
fixedResponse
- Describes the rule action that returns a custom HTTP response.public FixedResponseAction getFixedResponse()
Describes the rule action that returns a custom HTTP response.
public RuleAction withFixedResponse(FixedResponseAction fixedResponse)
Describes the rule action that returns a custom HTTP response.
fixedResponse
- Describes the rule action that returns a custom HTTP response.public void setForward(ForwardAction forward)
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 ForwardAction getForward()
The forward action. Traffic that matches the rule is forwarded to the specified target groups.
public RuleAction withForward(ForwardAction forward)
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 String toString()
toString
in class Object
Object.toString()
public RuleAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.