Class GetServiceInstanceRouteBindingResponse.GetServiceInstanceRouteBindingResponseBuilder
java.lang.Object
org.springframework.cloud.servicebroker.model.binding.GetServiceInstanceRouteBindingResponse.GetServiceInstanceRouteBindingResponseBuilder
- Enclosing class:
- GetServiceInstanceRouteBindingResponse
public static final class GetServiceInstanceRouteBindingResponse.GetServiceInstanceRouteBindingResponseBuilder
extends Object
Provides a fluent API for constructing a
GetServiceInstanceRouteBindingResponse
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Construct aGetServiceInstanceRouteBindingResponse
from the provided values.metadata
(BindingMetadata metadata) Set the service instance binding metadataparameters
(String key, Object value) Add a key/value pair to the request parameters as were provided in the request from the platform at service binding creation.parameters
(Map<String, Object> parameters) Add a set of parameters from the provided Map to the request parameters as were provided by the platform at service binding creation.routeServiceUrl
(String routeServiceUrl) Set a URL to which the platform should proxy requests for the bound route.
-
Method Details
-
routeServiceUrl
public GetServiceInstanceRouteBindingResponse.GetServiceInstanceRouteBindingResponseBuilder routeServiceUrl(String routeServiceUrl) Set a URL to which the platform should proxy requests for the bound route. Can be null.This value will set the route_service_url field in the body of the response to the platform
- Parameters:
routeServiceUrl
- the route service URL- Returns:
- the builder
-
parameters
public GetServiceInstanceRouteBindingResponse.GetServiceInstanceRouteBindingResponseBuilder parameters(Map<String, Object> parameters) Add a set of parameters from the provided Map to the request parameters as were provided by the platform at service binding creation.This value will set the parameters field in the body of the response to the platform.
- Parameters:
parameters
- the parameters to add- Returns:
- the builder
- See Also:
-
parameters
public GetServiceInstanceRouteBindingResponse.GetServiceInstanceRouteBindingResponseBuilder parameters(String key, Object value) Add a key/value pair to the request parameters as were provided in the request from the platform at service binding creation.This value will set the parameters field in the body of the response to the platform.
- Parameters:
key
- the parameter key to addvalue
- the parameter value to add- Returns:
- the builder
- See Also:
-
metadata
public GetServiceInstanceRouteBindingResponse.GetServiceInstanceRouteBindingResponseBuilder metadata(BindingMetadata metadata) Set the service instance binding metadataThis value will set the metadata field in the body of the response to the platform.
- Parameters:
metadata
- metadata about this service binding- Returns:
- the builder
-
build
Construct aGetServiceInstanceRouteBindingResponse
from the provided values.- Returns:
- the newly constructed GetServiceInstanceRouteBindingResponse
-