@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RouteSpec extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents a route specification. Specify one route type.
Constructor and Description |
---|
RouteSpec() |
Modifier and Type | Method and Description |
---|---|
RouteSpec |
clone() |
boolean |
equals(Object obj) |
GrpcRoute |
getGrpcRoute()
An object that represents the specification of a gRPC route.
|
HttpRoute |
getHttp2Route()
An object that represents the specification of an HTTP/2 route.
|
HttpRoute |
getHttpRoute()
An object that represents the specification of an HTTP route.
|
Integer |
getPriority()
The priority for the route.
|
TcpRoute |
getTcpRoute()
An object that represents the specification of a TCP route.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setGrpcRoute(GrpcRoute grpcRoute)
An object that represents the specification of a gRPC route.
|
void |
setHttp2Route(HttpRoute http2Route)
An object that represents the specification of an HTTP/2 route.
|
void |
setHttpRoute(HttpRoute httpRoute)
An object that represents the specification of an HTTP route.
|
void |
setPriority(Integer priority)
The priority for the route.
|
void |
setTcpRoute(TcpRoute tcpRoute)
An object that represents the specification of a TCP route.
|
String |
toString()
Returns a string representation of this object.
|
RouteSpec |
withGrpcRoute(GrpcRoute grpcRoute)
An object that represents the specification of a gRPC route.
|
RouteSpec |
withHttp2Route(HttpRoute http2Route)
An object that represents the specification of an HTTP/2 route.
|
RouteSpec |
withHttpRoute(HttpRoute httpRoute)
An object that represents the specification of an HTTP route.
|
RouteSpec |
withPriority(Integer priority)
The priority for the route.
|
RouteSpec |
withTcpRoute(TcpRoute tcpRoute)
An object that represents the specification of a TCP route.
|
public void setGrpcRoute(GrpcRoute grpcRoute)
An object that represents the specification of a gRPC route.
grpcRoute
- An object that represents the specification of a gRPC route.public GrpcRoute getGrpcRoute()
An object that represents the specification of a gRPC route.
public RouteSpec withGrpcRoute(GrpcRoute grpcRoute)
An object that represents the specification of a gRPC route.
grpcRoute
- An object that represents the specification of a gRPC route.public void setHttp2Route(HttpRoute http2Route)
An object that represents the specification of an HTTP/2 route.
http2Route
- An object that represents the specification of an HTTP/2 route.public HttpRoute getHttp2Route()
An object that represents the specification of an HTTP/2 route.
public RouteSpec withHttp2Route(HttpRoute http2Route)
An object that represents the specification of an HTTP/2 route.
http2Route
- An object that represents the specification of an HTTP/2 route.public void setHttpRoute(HttpRoute httpRoute)
An object that represents the specification of an HTTP route.
httpRoute
- An object that represents the specification of an HTTP route.public HttpRoute getHttpRoute()
An object that represents the specification of an HTTP route.
public RouteSpec withHttpRoute(HttpRoute httpRoute)
An object that represents the specification of an HTTP route.
httpRoute
- An object that represents the specification of an HTTP route.public void setPriority(Integer priority)
The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority.
priority
- The priority for the route. Routes are matched based on the specified value, where 0 is the highest
priority.public Integer getPriority()
The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority.
public RouteSpec withPriority(Integer priority)
The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority.
priority
- The priority for the route. Routes are matched based on the specified value, where 0 is the highest
priority.public void setTcpRoute(TcpRoute tcpRoute)
An object that represents the specification of a TCP route.
tcpRoute
- An object that represents the specification of a TCP route.public TcpRoute getTcpRoute()
An object that represents the specification of a TCP route.
public RouteSpec withTcpRoute(TcpRoute tcpRoute)
An object that represents the specification of a TCP route.
tcpRoute
- An object that represents the specification of a TCP route.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.