public static final class ServiceBindingEntity.Builder extends Object
ServiceBindingEntity.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ServiceBindingEntity.Builder |
addAllVolumeMounts(Iterable<? extends VolumeMounts> elements)
Adds elements to
volumeMounts list. |
ServiceBindingEntity.Builder |
applicationId(String applicationId)
Initializes the value for the
applicationId attribute. |
ServiceBindingEntity.Builder |
applicationUrl(String applicationUrl)
Initializes the value for the
applicationUrl attribute. |
ServiceBindingEntity.Builder |
bindingOption(Map.Entry<String,? extends Object> entry)
Put one entry to the
bindingOptions map. |
ServiceBindingEntity.Builder |
bindingOption(String key,
Object value)
Put one entry to the
bindingOptions map. |
ServiceBindingEntity.Builder |
bindingOptions(Map<String,? extends Object> bindingOptions)
Sets or replaces all mappings from the specified map as entries for the
bindingOptions map. |
ServiceBindingEntity |
build()
Builds a new
ServiceBindingEntity. |
ServiceBindingEntity.Builder |
credential(Map.Entry<String,? extends Object> entry)
Put one entry to the
credentials map. |
ServiceBindingEntity.Builder |
credential(String key,
Object value)
Put one entry to the
credentials map. |
ServiceBindingEntity.Builder |
credentials(Map<String,? extends Object> credentials)
Sets or replaces all mappings from the specified map as entries for the
credentials map. |
ServiceBindingEntity.Builder |
from(ServiceBindingEntity instance)
Fill a builder with attribute values from the provided
ServiceBindingEntity instance. |
ServiceBindingEntity.Builder |
gatewayData(GatewayData gatewayData)
Deprecated.
|
ServiceBindingEntity.Builder |
gatewayName(String gatewayName)
Initializes the value for the
gatewayName attribute. |
ServiceBindingEntity.Builder |
putAllBindingOptions(Map<String,? extends Object> bindingOptions)
Put all mappings from the specified map as entries to
bindingOptions map. |
ServiceBindingEntity.Builder |
putAllCredentials(Map<String,? extends Object> credentials)
Put all mappings from the specified map as entries to
credentials map. |
ServiceBindingEntity.Builder |
serviceInstanceId(String serviceInstanceId)
Initializes the value for the
serviceInstanceId attribute. |
ServiceBindingEntity.Builder |
serviceInstanceUrl(String serviceInstanceUrl)
Initializes the value for the
serviceInstanceUrl attribute. |
ServiceBindingEntity.Builder |
syslogDrainUrl(String syslogDrainUrl)
Initializes the value for the
syslogDrainUrl attribute. |
ServiceBindingEntity.Builder |
volumeMount(VolumeMounts... elements)
Adds elements to
volumeMounts list. |
ServiceBindingEntity.Builder |
volumeMount(VolumeMounts element)
Adds one element to
volumeMounts list. |
ServiceBindingEntity.Builder |
volumeMounts(Iterable<? extends VolumeMounts> elements)
Sets or replaces all elements for
volumeMounts list. |
public final ServiceBindingEntity.Builder from(ServiceBindingEntity instance)
ServiceBindingEntity instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ServiceBindingEntity.Builder applicationId(String applicationId)
applicationId attribute.applicationId - The value for applicationId (can be null)this builder for use in a chained invocationpublic final ServiceBindingEntity.Builder applicationUrl(String applicationUrl)
applicationUrl attribute.applicationUrl - The value for applicationUrl (can be null)this builder for use in a chained invocationpublic final ServiceBindingEntity.Builder bindingOption(String key, Object value)
bindingOptions map.key - The key in the bindingOptions mapvalue - The associated value in the bindingOptions mapthis builder for use in a chained invocationpublic final ServiceBindingEntity.Builder bindingOption(Map.Entry<String,? extends Object> entry)
bindingOptions map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final ServiceBindingEntity.Builder bindingOptions(Map<String,? extends Object> bindingOptions)
bindingOptions map. Nulls are not permitted as keys or values, but parameter itself can be nullbindingOptions - The entries that will be added to the bindingOptions mapthis builder for use in a chained invocationpublic final ServiceBindingEntity.Builder putAllBindingOptions(Map<String,? extends Object> bindingOptions)
bindingOptions map. Nulls are not permittedbindingOptions - The entries that will be added to the bindingOptions mapthis builder for use in a chained invocationpublic final ServiceBindingEntity.Builder credential(String key, Object value)
credentials map.key - The key in the credentials mapvalue - The associated value in the credentials mapthis builder for use in a chained invocationpublic final ServiceBindingEntity.Builder credential(Map.Entry<String,? extends Object> entry)
credentials map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final ServiceBindingEntity.Builder credentials(Map<String,? extends Object> credentials)
credentials map. Nulls are not permitted as keys or values, but parameter itself can be nullcredentials - The entries that will be added to the credentials mapthis builder for use in a chained invocationpublic final ServiceBindingEntity.Builder putAllCredentials(Map<String,? extends Object> credentials)
credentials map. Nulls are not permittedcredentials - The entries that will be added to the credentials mapthis builder for use in a chained invocation@Deprecated public final ServiceBindingEntity.Builder gatewayData(GatewayData gatewayData)
gatewayData attribute.gatewayData - The value for gatewayData (can be null)this builder for use in a chained invocationpublic final ServiceBindingEntity.Builder gatewayName(String gatewayName)
gatewayName attribute.gatewayName - The value for gatewayName (can be null)this builder for use in a chained invocationpublic final ServiceBindingEntity.Builder serviceInstanceId(String serviceInstanceId)
serviceInstanceId attribute.serviceInstanceId - The value for serviceInstanceId (can be null)this builder for use in a chained invocationpublic final ServiceBindingEntity.Builder serviceInstanceUrl(String serviceInstanceUrl)
serviceInstanceUrl attribute.serviceInstanceUrl - The value for serviceInstanceUrl (can be null)this builder for use in a chained invocationpublic final ServiceBindingEntity.Builder syslogDrainUrl(String syslogDrainUrl)
syslogDrainUrl attribute.syslogDrainUrl - The value for syslogDrainUrl (can be null)this builder for use in a chained invocationpublic final ServiceBindingEntity.Builder volumeMount(VolumeMounts element)
volumeMounts list.element - A volumeMounts elementthis builder for use in a chained invocationpublic final ServiceBindingEntity.Builder volumeMount(VolumeMounts... elements)
volumeMounts list.elements - An array of volumeMounts elementsthis builder for use in a chained invocationpublic final ServiceBindingEntity.Builder volumeMounts(Iterable<? extends VolumeMounts> elements)
volumeMounts list.elements - An iterable of volumeMounts elementsthis builder for use in a chained invocationpublic final ServiceBindingEntity.Builder addAllVolumeMounts(Iterable<? extends VolumeMounts> elements)
volumeMounts list.elements - An iterable of volumeMounts elementsthis builder for use in a chained invocationpublic ServiceBindingEntity build()
ServiceBindingEntity.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.