Interface RouteSummary.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RouteSummary.Builder,
,RouteSummary> SdkBuilder<RouteSummary.Builder,
,RouteSummary> SdkPojo
- Enclosing class:
RouteSummary
-
Method Summary
Modifier and TypeMethodDescriptionappendSourcePath
(Boolean appendSourcePath) If set totrue
, this option appends the source path to the service URL endpoint.applicationId
(String applicationId) The unique identifier of the application.The Amazon Resource Name (ARN) of the route.createdByAccountId
(String createdByAccountId) The Amazon Web Services account ID of the route creator.createdTime
(Instant createdTime) A timestamp that indicates when the route is created.environmentId
(String environmentId) The unique identifier of the environment.default RouteSummary.Builder
error
(Consumer<ErrorResponse.Builder> error) Any error associated with the route resource.error
(ErrorResponse error) Any error associated with the route resource.includeChildPaths
(Boolean includeChildPaths) Indicates whether to match all subpaths of the given source path.lastUpdatedTime
(Instant lastUpdatedTime) A timestamp that indicates when the route was last updated.methods
(Collection<HttpMethod> methods) A list of HTTP methods to match.methods
(HttpMethod... methods) A list of HTTP methods to match.methodsWithStrings
(String... methods) A list of HTTP methods to match.methodsWithStrings
(Collection<String> methods) A list of HTTP methods to match.ownerAccountId
(String ownerAccountId) The Amazon Web Services account ID of the route owner.pathResourceToId
(Map<String, String> pathResourceToId) A mapping of Amazon API Gateway path resources to resource IDs.The unique identifier of the route.The route type of the route.The route type of the route.The unique identifier of the service.sourcePath
(String sourcePath) This is the path that Refactor Spaces uses to match traffic.The current state of the route.state
(RouteState state) The current state of the route.The tags assigned to the route.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
appendSourcePath
If set to
true
, this option appends the source path to the service URL endpoint.- Parameters:
appendSourcePath
- If set totrue
, this option appends the source path to the service URL endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
applicationId
The unique identifier of the application.
- Parameters:
applicationId
- The unique identifier of the application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The Amazon Resource Name (ARN) of the route.
- Parameters:
arn
- The Amazon Resource Name (ARN) of the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdByAccountId
The Amazon Web Services account ID of the route creator.
- Parameters:
createdByAccountId
- The Amazon Web Services account ID of the route creator.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdTime
A timestamp that indicates when the route is created.
- Parameters:
createdTime
- A timestamp that indicates when the route is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environmentId
The unique identifier of the environment.
- Parameters:
environmentId
- The unique identifier of the environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
Any error associated with the route resource.
- Parameters:
error
- Any error associated with the route resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
Any error associated with the route resource.
This is a convenience method that creates an instance of theErrorResponse.Builder
avoiding the need to create one manually viaErrorResponse.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerror(ErrorResponse)
.- Parameters:
error
- a consumer that will call methods onErrorResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- Parameters:
includeChildPaths
- Indicates whether to match all subpaths of the given source path. If this value isfalse
, requests must match the source path exactly before they are forwarded to this route's service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedTime
A timestamp that indicates when the route was last updated.
- Parameters:
lastUpdatedTime
- A timestamp that indicates when the route was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
methodsWithStrings
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
methodsWithStrings
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerAccountId
The Amazon Web Services account ID of the route owner.
- Parameters:
ownerAccountId
- The Amazon Web Services account ID of the route owner.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pathResourceToId
A mapping of Amazon API Gateway path resources to resource IDs.
- Parameters:
pathResourceToId
- A mapping of Amazon API Gateway path resources to resource IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routeId
The unique identifier of the route.
- Parameters:
routeId
- The unique identifier of the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routeType
The route type of the route.
- Parameters:
routeType
- The route type of the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
routeType
The route type of the route.
- Parameters:
routeType
- The route type of the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
serviceId
The unique identifier of the service.
- Parameters:
serviceId
- The unique identifier of the service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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'.- Parameters:
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'.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The current state of the route.
- Parameters:
state
- The current state of the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The current state of the route.
- Parameters:
state
- The current state of the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags assigned to the route.
- Parameters:
tags
- The tags assigned to the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-