public static final class ImmutableRawCloudServiceBinding.Builder extends Object
ImmutableRawCloudServiceBinding.
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 |
|---|---|
ImmutableRawCloudServiceBinding |
build()
Builds a new
ImmutableRawCloudServiceBinding. |
ImmutableRawCloudServiceBinding.Builder |
from(RawCloudServiceBinding instance)
Fill a builder with attribute values from the provided
RawCloudServiceBinding instance. |
ImmutableRawCloudServiceBinding.Builder |
parameters(Map<String,? extends Object> entries)
Sets or replaces all mappings from the specified map as entries for the
parameters map. |
ImmutableRawCloudServiceBinding.Builder |
putAllParameters(Map<String,? extends Object> entries)
Put all mappings from the specified map as entries to
parameters map. |
ImmutableRawCloudServiceBinding.Builder |
putParameter(Map.Entry<String,? extends Object> entry)
Put one entry to the
parameters map. |
ImmutableRawCloudServiceBinding.Builder |
putParameter(String key,
Object value)
Put one entry to the
parameters map. |
ImmutableRawCloudServiceBinding.Builder |
resource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.servicebindings.ServiceBindingEntity> resource)
Initializes the value for the
resource attribute. |
public final ImmutableRawCloudServiceBinding.Builder from(RawCloudServiceBinding instance)
RawCloudServiceBinding 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 ImmutableRawCloudServiceBinding.Builder resource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.servicebindings.ServiceBindingEntity> resource)
resource attribute.resource - The value for resourcethis builder for use in a chained invocationpublic final ImmutableRawCloudServiceBinding.Builder putParameter(String key, Object value)
parameters map.key - The key in the parameters mapvalue - The associated value in the parameters mapthis builder for use in a chained invocationpublic final ImmutableRawCloudServiceBinding.Builder putParameter(Map.Entry<String,? extends Object> entry)
parameters map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final ImmutableRawCloudServiceBinding.Builder parameters(Map<String,? extends Object> entries)
parameters map. Nulls are not permitted as keys or values, but parameter itself can be nullentries - The entries that will be added to the parameters mapthis builder for use in a chained invocationpublic final ImmutableRawCloudServiceBinding.Builder putAllParameters(Map<String,? extends Object> entries)
parameters map. Nulls are not permittedentries - The entries that will be added to the parameters mapthis builder for use in a chained invocationpublic ImmutableRawCloudServiceBinding build()
ImmutableRawCloudServiceBinding.IllegalStateException - if any required attributes are missingCopyright © 2020 SAP SE. All rights reserved.