@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UriPathRouteInput extends Object implements Serializable, Cloneable, StructuredPojo
The configuration for the URI path route type.
Constructor and Description |
---|
UriPathRouteInput() |
Modifier and Type | Method and Description |
---|---|
UriPathRouteInput |
clone() |
boolean |
equals(Object obj) |
String |
getActivationState()
Indicates whether traffic is forwarded to this route’s service after the route is created.
|
Boolean |
getIncludeChildPaths()
Indicates whether to match all subpaths of the given source path.
|
List<String> |
getMethods()
A list of HTTP methods to match.
|
String |
getSourcePath()
The path to use to match traffic.
|
int |
hashCode() |
Boolean |
isIncludeChildPaths()
Indicates whether to match all subpaths of the given source path.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setActivationState(String activationState)
Indicates whether traffic is forwarded to this route’s service after the route is created.
|
void |
setIncludeChildPaths(Boolean includeChildPaths)
Indicates whether to match all subpaths of the given source path.
|
void |
setMethods(Collection<String> methods)
A list of HTTP methods to match.
|
void |
setSourcePath(String sourcePath)
The path to use to match traffic.
|
String |
toString()
Returns a string representation of this object.
|
UriPathRouteInput |
withActivationState(RouteActivationState activationState)
Indicates whether traffic is forwarded to this route’s service after the route is created.
|
UriPathRouteInput |
withActivationState(String activationState)
Indicates whether traffic is forwarded to this route’s service after the route is created.
|
UriPathRouteInput |
withIncludeChildPaths(Boolean includeChildPaths)
Indicates whether to match all subpaths of the given source path.
|
UriPathRouteInput |
withMethods(Collection<String> methods)
A list of HTTP methods to match.
|
UriPathRouteInput |
withMethods(HttpMethod... methods)
A list of HTTP methods to match.
|
UriPathRouteInput |
withMethods(String... methods)
A list of HTTP methods to match.
|
UriPathRouteInput |
withSourcePath(String sourcePath)
The path to use to match traffic.
|
public void setActivationState(String activationState)
Indicates whether traffic is forwarded to this route’s service after the route is created.
activationState
- Indicates whether traffic is forwarded to this route’s service after the route is created.RouteActivationState
public String getActivationState()
Indicates whether traffic is forwarded to this route’s service after the route is created.
RouteActivationState
public UriPathRouteInput withActivationState(String activationState)
Indicates whether traffic is forwarded to this route’s service after the route is created.
activationState
- Indicates whether traffic is forwarded to this route’s service after the route is created.RouteActivationState
public UriPathRouteInput withActivationState(RouteActivationState activationState)
Indicates whether traffic is forwarded to this route’s service after the route is created.
activationState
- Indicates whether traffic is forwarded to this route’s service after the route is created.RouteActivationState
public void setIncludeChildPaths(Boolean includeChildPaths)
Indicates whether to match all subpaths of the given source path. If this value is false
, requests
must match the source path exactly before they are forwarded to this route's service.
includeChildPaths
- Indicates whether to match all subpaths of the given source path. If this value is false
,
requests must match the source path exactly before they are forwarded to this route's service.public Boolean getIncludeChildPaths()
Indicates whether to match all subpaths of the given source path. If this value is false
, requests
must match the source path exactly before they are forwarded to this route's service.
false
,
requests must match the source path exactly before they are forwarded to this route's service.public UriPathRouteInput withIncludeChildPaths(Boolean includeChildPaths)
Indicates whether to match all subpaths of the given source path. If this value is false
, requests
must match the source path exactly before they are forwarded to this route's service.
includeChildPaths
- Indicates whether to match all subpaths of the given source path. If this value is false
,
requests must match the source path exactly before they are forwarded to this route's service.public Boolean isIncludeChildPaths()
Indicates whether to match all subpaths of the given source path. If this value is false
, requests
must match the source path exactly before they are forwarded to this route's service.
false
,
requests must match the source path exactly before they are forwarded to this route's service.public List<String> getMethods()
A list of HTTP methods to match. An empty list matches all values. If a method is present, only HTTP requests using that method are forwarded to this route’s service.
HttpMethod
public void setMethods(Collection<String> methods)
A list of HTTP methods to match. An empty list matches all values. If a method is present, only HTTP requests using that method are forwarded to this route’s service.
methods
- A list of HTTP methods to match. An empty list matches all values. If a method is present, only HTTP
requests using that method are forwarded to this route’s service.HttpMethod
public UriPathRouteInput withMethods(String... methods)
A list of HTTP methods to match. An empty list matches all values. If a method is present, only HTTP requests using that method are forwarded to this route’s service.
NOTE: This method appends the values to the existing list (if any). Use
setMethods(java.util.Collection)
or withMethods(java.util.Collection)
if you want to override
the existing values.
methods
- A list of HTTP methods to match. An empty list matches all values. If a method is present, only HTTP
requests using that method are forwarded to this route’s service.HttpMethod
public UriPathRouteInput withMethods(Collection<String> methods)
A list of HTTP methods to match. An empty list matches all values. If a method is present, only HTTP requests using that method are forwarded to this route’s service.
methods
- A list of HTTP methods to match. An empty list matches all values. If a method is present, only HTTP
requests using that method are forwarded to this route’s service.HttpMethod
public UriPathRouteInput withMethods(HttpMethod... methods)
A list of HTTP methods to match. An empty list matches all values. If a method is present, only HTTP requests using that method are forwarded to this route’s service.
methods
- A list of HTTP methods to match. An empty list matches all values. If a method is present, only HTTP
requests using that method are forwarded to this route’s service.HttpMethod
public void setSourcePath(String sourcePath)
The path to use to match traffic. Paths must start with /
and are relative to the base of the
application.
sourcePath
- The path to use to match traffic. Paths must start with /
and are relative to the base of the
application.public String getSourcePath()
The path to use to match traffic. Paths must start with /
and are relative to the base of the
application.
/
and are relative to the base of
the application.public UriPathRouteInput withSourcePath(String sourcePath)
The path to use to match traffic. Paths must start with /
and are relative to the base of the
application.
sourcePath
- The path to use to match traffic. Paths must start with /
and are relative to the base of the
application.public String toString()
toString
in class Object
Object.toString()
public UriPathRouteInput clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.