Class ServiceInstanceCredentialName.ServiceInstanceCredentialNameBuilder
java.lang.Object
org.springframework.credhub.support.ServiceInstanceCredentialName.ServiceInstanceCredentialNameBuilder
- Enclosing class:
- ServiceInstanceCredentialName
public static class ServiceInstanceCredentialName.ServiceInstanceCredentialNameBuilder
extends Object
A builder that provides a fluent API for constructing
ServiceInstanceCredentialName
instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create aServiceInstanceCredentialName
from the provided values.credentialName
(String credentialName) Set the credential name segment of the full credential name.serviceBindingId
(String serviceBindingId) Set the service binding ID segment of the credential name.serviceBrokerName
(String serviceBrokerName) Set the service broker name segment of the credential name.serviceOfferingName
(String serviceOfferingName) Set the service offering name segment of the credential name.
-
Method Details
-
serviceBrokerName
public ServiceInstanceCredentialName.ServiceInstanceCredentialNameBuilder serviceBrokerName(String serviceBrokerName) Set the service broker name segment of the credential name. This is typically a human-readable name and should be unique among all service brokers in Cloud Foundry.- Parameters:
serviceBrokerName
- the service broker name; must not be null- Returns:
- the builder
-
serviceOfferingName
public ServiceInstanceCredentialName.ServiceInstanceCredentialNameBuilder serviceOfferingName(String serviceOfferingName) Set the service offering name segment of the credential name. This is typically a human-readable name and should be unique within the service broker.- Parameters:
serviceOfferingName
- the service offering name; must not be null- Returns:
- the builder
-
serviceBindingId
public ServiceInstanceCredentialName.ServiceInstanceCredentialNameBuilder serviceBindingId(String serviceBindingId) Set the service binding ID segment of the credential name. This value is generated by Cloud Foundry when a service instance is bound to an application and is in the form of a GUID.- Parameters:
serviceBindingId
- the service binding ID; must not be null- Returns:
- the builder
-
credentialName
public ServiceInstanceCredentialName.ServiceInstanceCredentialNameBuilder credentialName(String credentialName) Set the credential name segment of the full credential name.- Parameters:
credentialName
- the credential name; must not be null- Returns:
- the builder
-
build
Create aServiceInstanceCredentialName
from the provided values.- Returns:
- a
ServiceInstanceCredentialName
-