@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HttpGatewayRouteAction extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents the action to take if a match is determined.
| Constructor and Description |
|---|
HttpGatewayRouteAction() |
| Modifier and Type | Method and Description |
|---|---|
HttpGatewayRouteAction |
clone() |
boolean |
equals(Object obj) |
HttpGatewayRouteRewrite |
getRewrite()
The gateway route action to rewrite.
|
GatewayRouteTarget |
getTarget()
An object that represents the target that traffic is routed to when a request matches the gateway route.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setRewrite(HttpGatewayRouteRewrite rewrite)
The gateway route action to rewrite.
|
void |
setTarget(GatewayRouteTarget target)
An object that represents the target that traffic is routed to when a request matches the gateway route.
|
String |
toString()
Returns a string representation of this object.
|
HttpGatewayRouteAction |
withRewrite(HttpGatewayRouteRewrite rewrite)
The gateway route action to rewrite.
|
HttpGatewayRouteAction |
withTarget(GatewayRouteTarget target)
An object that represents the target that traffic is routed to when a request matches the gateway route.
|
public void setRewrite(HttpGatewayRouteRewrite rewrite)
The gateway route action to rewrite.
rewrite - The gateway route action to rewrite.public HttpGatewayRouteRewrite getRewrite()
The gateway route action to rewrite.
public HttpGatewayRouteAction withRewrite(HttpGatewayRouteRewrite rewrite)
The gateway route action to rewrite.
rewrite - The gateway route action to rewrite.public void setTarget(GatewayRouteTarget target)
An object that represents the target that traffic is routed to when a request matches the gateway route.
target - An object that represents the target that traffic is routed to when a request matches the gateway route.public GatewayRouteTarget getTarget()
An object that represents the target that traffic is routed to when a request matches the gateway route.
public HttpGatewayRouteAction withTarget(GatewayRouteTarget target)
An object that represents the target that traffic is routed to when a request matches the gateway route.
target - An object that represents the target that traffic is routed to when a request matches the gateway route.public String toString()
toString in class ObjectObject.toString()public HttpGatewayRouteAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.