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