@Generated(value="software.amazon.awssdk:codegen") public final class GetRouteResponse extends MigrationHubRefactorSpacesResponse implements ToCopyableBuilder<GetRouteResponse.Builder,GetRouteResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
GetRouteResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
appendSourcePath()
If set to
true, this option appends the source path to the service URL endpoint. |
String |
applicationId()
The ID of the application that the route belongs to.
|
String |
arn()
The Amazon Resource Name (ARN) of the route.
|
static GetRouteResponse.Builder |
builder() |
String |
createdByAccountId()
The Amazon Web Services account ID of the route creator.
|
Instant |
createdTime()
The timestamp of when the route is created.
|
String |
environmentId()
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 type of route.
|
String |
routeTypeAsString()
The type of route.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetRouteResponse.Builder> |
serializableBuilderClass() |
String |
serviceId()
The unique identifier of the service.
|
String |
sourcePath()
This is the path that Refactor Spaces uses 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.
|
GetRouteResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Boolean appendSourcePath()
If set to true, this option appends the source path to the service URL endpoint.
true, this option appends the source path to the service URL endpoint.public final String applicationId()
The ID of the application that the route belongs to.
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()
The timestamp of when the route is created.
public final String environmentId()
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.
DEFAULT: All traffic that does not match another route is forwarded to the default route. Applications must have a default route before any other routes can be created.
URI_PATH: A route that is based on a URI path.
DEFAULT: All traffic that does not match another route is forwarded to the default route. Applications must have a default route before any other routes can be created.
URI_PATH: A route that is based on a URI path.
public final RouteType routeType()
The type of 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 type of 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()
This is the path that Refactor Spaces uses to match traffic. Paths must start with / and are
relative to the base of the application. To use path parameters in the source path, add a variable in curly
braces. For example, the resource path {user} represents a path parameter called 'user'.
/ and are
relative to the base of the application. To use path parameters in the source path, add a variable in
curly braces. For example, the resource path {user} represents a path parameter called 'user'.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. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.
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 GetRouteResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GetRouteResponse.Builder,GetRouteResponse>toBuilder in class AwsResponsepublic static GetRouteResponse.Builder builder()
public static Class<? extends GetRouteResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2023. All rights reserved.