Class GetServiceInstanceAppBindingResponse.GetServiceInstanceAppBindingResponseBuilder
- Enclosing class:
- GetServiceInstanceAppBindingResponse
GetServiceInstanceAppBindingResponse
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Construct aGetServiceInstanceAppBindingResponse
from the provided values.credentials
(String key, Object value) Add a key/value pair to the that the bound application can use to access the service instance.credentials
(Map<String, Object> credentials) Add a set of credentials from the provided Map to the credentials that the bound application can use to access the service instance.Add a set of endpoints from the provided List to the endpoints that can be used by an application to connect to the service instance.Add a set of endpoints from the provided array to the endpoints that can be used by an application to connect to the service instance.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.syslogDrainUrl
(String syslogDrainUrl) Set the URL to which the platform should drain logs for the bound application.volumeMounts
(List<VolumeMount> volumeMounts) Add a set of volume mounts from the provided List to the volume mounts that can be used in an application container file system.volumeMounts
(VolumeMount... volumeMounts) Add a set of volume mounts from the provided array to the volume mounts that can be used in an application container file system.
-
Method Details
-
credentials
public GetServiceInstanceAppBindingResponse.GetServiceInstanceAppBindingResponseBuilder credentials(Map<String, Object> credentials) Add a set of credentials from the provided Map to the credentials that the bound application can use to access the service instance.This value will set the credentials field in the body of the response to the platform
- Parameters:
credentials
- a Map of credentials- Returns:
- the builder
-
credentials
public GetServiceInstanceAppBindingResponse.GetServiceInstanceAppBindingResponseBuilder credentials(String key, Object value) Add a key/value pair to the that the bound application can use to access the service instance.This value will set the credentials field in the body of the response to the platform
- Parameters:
key
- the credential keyvalue
- the credential value- Returns:
- the builder
-
syslogDrainUrl
public GetServiceInstanceAppBindingResponse.GetServiceInstanceAppBindingResponseBuilder syslogDrainUrl(String syslogDrainUrl) Set the URL to which the platform should drain logs for the bound application. Can be null to indicate that the service binding does not support syslog drains.This value will set the syslog_drain_url field in the body of the response to the platform
- Parameters:
syslogDrainUrl
- the syslog URL- Returns:
- the builder
-
volumeMounts
public GetServiceInstanceAppBindingResponse.GetServiceInstanceAppBindingResponseBuilder volumeMounts(List<VolumeMount> volumeMounts) Add a set of volume mounts from the provided List to the volume mounts that can be used in an application container file system.This value will set the volume_mounts field in the body of the response to the platform.
- Parameters:
volumeMounts
- a List of volume mounts- Returns:
- the builder
-
volumeMounts
public GetServiceInstanceAppBindingResponse.GetServiceInstanceAppBindingResponseBuilder volumeMounts(VolumeMount... volumeMounts) Add a set of volume mounts from the provided array to the volume mounts that can be used in an application container file system.This value will set the volume_mounts field in the body of the response to the platform.
- Parameters:
volumeMounts
- one more volume mounts- Returns:
- the builder
-
endpoints
public GetServiceInstanceAppBindingResponse.GetServiceInstanceAppBindingResponseBuilder endpoints(List<Endpoint> endpoints) Add a set of endpoints from the provided List to the endpoints that can be used by an application to connect to the service instance.This value will set the endpoints field in the body of the response to the platform.
- Parameters:
endpoints
- one more endpoints- Returns:
- the builder
-
endpoints
public GetServiceInstanceAppBindingResponse.GetServiceInstanceAppBindingResponseBuilder endpoints(Endpoint... endpoints) Add a set of endpoints from the provided array to the endpoints that can be used by an application to connect to the service instance.This value will set the endpoints field in the body of the response to the platform.
- Parameters:
endpoints
- one more endpoints- Returns:
- the builder
-
parameters
public GetServiceInstanceAppBindingResponse.GetServiceInstanceAppBindingResponseBuilder 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 GetServiceInstanceAppBindingResponse.GetServiceInstanceAppBindingResponseBuilder 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 GetServiceInstanceAppBindingResponse.GetServiceInstanceAppBindingResponseBuilder 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 aGetServiceInstanceAppBindingResponse
from the provided values.- Returns:
- the newly constructed GetServiceInstanceAppBindingResponse
-