@Generated(value="software.amazon.awssdk:codegen") public final class RouteSummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RouteSummary.Builder,RouteSummary>
The summary information for the routes as a response to ListRoutes.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RouteSummary.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
applicationId()
The unique identifier of the application.
|
String |
arn()
The Amazon Resource Name (ARN) of the route.
|
static RouteSummary.Builder |
builder() |
String |
createdByAccountId()
The Amazon Web Services account ID of the route creator.
|
Instant |
createdTime()
A timestamp that indicates when the route is created.
|
String |
environmentId()
The unique identifier of the environment.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
ErrorResponse |
error()
Any error associated with the route resource.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasMethods()
For responses, this returns true if the service returned a value for the Methods property.
|
boolean |
hasPathResourceToId()
For responses, this returns true if the service returned a value for the PathResourceToId property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
Boolean |
includeChildPaths()
Indicates whether to match all subpaths of the given source path.
|
Instant |
lastUpdatedTime()
A timestamp that indicates when the route was last updated.
|
List<HttpMethod> |
methods()
A list of HTTP methods to match.
|
List<String> |
methodsAsStrings()
A list of HTTP methods to match.
|
String |
ownerAccountId()
The Amazon Web Services account ID of the route owner.
|
Map<String,String> |
pathResourceToId()
A mapping of Amazon API Gateway path resources to resource IDs.
|
String |
routeId()
The unique identifier of the route.
|
RouteType |
routeType()
The route type of the route.
|
String |
routeTypeAsString()
The route type of the route.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RouteSummary.Builder> |
serializableBuilderClass() |
String |
serviceId()
The unique identifier of the service.
|
String |
sourcePath()
The path to use to match traffic.
|
RouteState |
state()
The current state of the route.
|
String |
stateAsString()
The current state of the route.
|
Map<String,String> |
tags()
The tags assigned to the route.
|
RouteSummary.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String applicationId()
The unique identifier of the application.
public final String arn()
The Amazon Resource Name (ARN) of the route.
public final String createdByAccountId()
The Amazon Web Services account ID of the route creator.
public final Instant createdTime()
A timestamp that indicates when the route is created.
public final String environmentId()
The unique identifier of the environment.
public final ErrorResponse error()
Any error associated with the route resource.
public final 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.
false,
requests must match the source path exactly before they are forwarded to this route's service.public final Instant lastUpdatedTime()
A timestamp that indicates when the route was last updated.
public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasMethods() method.
public final boolean hasMethods()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<String> methodsAsStrings()
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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasMethods() method.
public final String ownerAccountId()
The Amazon Web Services account ID of the route owner.
public final boolean hasPathResourceToId()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final Map<String,String> pathResourceToId()
A mapping of Amazon API Gateway path resources to resource IDs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasPathResourceToId() method.
public final String routeId()
The unique identifier of the route.
public final RouteType routeType()
The route type of the route.
If the service returns an enum value that is not available in the current SDK version, routeType will
return RouteType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
routeTypeAsString().
RouteTypepublic final String routeTypeAsString()
The route type of the route.
If the service returns an enum value that is not available in the current SDK version, routeType will
return RouteType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
routeTypeAsString().
RouteTypepublic final String serviceId()
The unique identifier of the service.
public final String sourcePath()
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 final RouteState state()
The current state of the route.
If the service returns an enum value that is not available in the current SDK version, state will return
RouteState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
RouteStatepublic final String stateAsString()
The current state of the route.
If the service returns an enum value that is not available in the current SDK version, state will return
RouteState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
RouteStatepublic final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final Map<String,String> tags()
The tags assigned to the route.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
public RouteSummary.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RouteSummary.Builder,RouteSummary>public static RouteSummary.Builder builder()
public static Class<? extends RouteSummary.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.