public static final class CreateServiceInstanceBindingResponse.CreateServiceInstanceBindingResponseBuilder extends Object
CreateServiceInstanceResponse
.Modifier and Type | Method and Description |
---|---|
CreateServiceInstanceBindingResponse.CreateServiceInstanceBindingResponseBuilder |
async(boolean async)
Set a boolean value indicating whether the requested operation is being performed synchronously or
asynchronously.
|
CreateServiceInstanceBindingResponse.CreateServiceInstanceBindingResponseBuilder |
bindingExisted(boolean bindingExisted)
Set a boolean value indicating whether the service instance binding already exists with the same parameters
as the requested service instance binding.
|
CreateServiceInstanceBindingResponse |
build()
Construct a
CreateServiceInstanceBindingResponse from the provided values. |
CreateServiceInstanceBindingResponse.CreateServiceInstanceBindingResponseBuilder |
metadata(BindingMetadata metadata)
Set the service instance binding metadata
|
CreateServiceInstanceBindingResponse.CreateServiceInstanceBindingResponseBuilder |
operation(String operation)
Set a value to inform the user of the operation being performed in support of an asynchronous response.
|
public CreateServiceInstanceBindingResponse.CreateServiceInstanceBindingResponseBuilder bindingExisted(boolean bindingExisted)
false
indicates that new
resources were created.
This value will be used to determine the HTTP response code to the platform. A true value will
result in a response code 202 ACCEPTED; otherwise the response code will be determined by the
value of async(boolean)
.
bindingExisted
- true to indicate that the binding exists, false otherwisepublic CreateServiceInstanceBindingResponse.CreateServiceInstanceBindingResponseBuilder metadata(BindingMetadata metadata)
This value will set the metadata field in the body of the response to the platform.
metadata
- metadata about this service bindingpublic CreateServiceInstanceBindingResponse.CreateServiceInstanceBindingResponseBuilder async(boolean async)
This value will be used to determine the HTTP response code to the platform. If the service broker indicates that it performed the operation synchronously, a true value will result in a response code 200 OK, and a false value will result in a response code 201 CREATED.
async
- true to indicate that the operation is being performed asynchronously, false to indicate that the operation was completedpublic CreateServiceInstanceBindingResponse.CreateServiceInstanceBindingResponseBuilder operation(String operation)
GetLastServiceBindingOperationRequest
requests.
This value will set the operation field in the body of the response to the platform.
operation
- description of the operation being performedpublic CreateServiceInstanceBindingResponse build()
CreateServiceInstanceBindingResponse
from the provided values.