Class ServiceInstanceMetadata.ServiceInstanceMetadataBuilder
java.lang.Object
org.springframework.cloud.servicebroker.model.instance.ServiceInstanceMetadata.ServiceInstanceMetadataBuilder
- Enclosing class:
- ServiceInstanceMetadata
Provides a fluent API for constructing a
ServiceInstanceMetadata
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Construct aServiceInstanceMetadata
from the provided values.Add a key/value pair to the metadata labels.Add a set of labels from the provided Map to the metadata labels.
-
Method Details
-
labels
Add a set of labels from the provided Map to the metadata labels.- Parameters:
labels
- the labels to add- Returns:
- the builder
- See Also:
-
label
Add a key/value pair to the metadata labels.- Parameters:
key
- the label key to addvalue
- the label value to add- Returns:
- the builder
- See Also:
-
build
Construct aServiceInstanceMetadata
from the provided values.- Returns:
- the newly constructed ServiceInstanceMetadata
-