public static final class ImmutableRawCloudServiceInstance.Builder extends Object
ImmutableRawCloudServiceInstance.
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.
public final ImmutableRawCloudServiceInstance.Builder from(RawCloudServiceInstance instance)
RawCloudServiceInstance 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 ImmutableRawCloudServiceInstance.Builder resource(org.cloudfoundry.client.v2.Resource<org.cloudfoundry.client.v2.serviceinstances.UnionServiceInstanceEntity> resource)
resource attribute.resource - The value for resourcethis builder for use in a chained invocationpublic final ImmutableRawCloudServiceInstance.Builder service(Derivable<CloudService> service)
service attribute.service - The value for servicethis builder for use in a chained invocationpublic final ImmutableRawCloudServiceInstance.Builder addServiceBinding(Derivable<CloudServiceBinding> element)
serviceBindings list.element - A serviceBindings elementthis builder for use in a chained invocation@SafeVarargs public final ImmutableRawCloudServiceInstance.Builder addServiceBindings(Derivable<CloudServiceBinding>... elements)
serviceBindings list.elements - An array of serviceBindings elementsthis builder for use in a chained invocationpublic final ImmutableRawCloudServiceInstance.Builder serviceBindings(Iterable<? extends Derivable<CloudServiceBinding>> elements)
serviceBindings list.elements - An iterable of serviceBindings elementsthis builder for use in a chained invocationpublic final ImmutableRawCloudServiceInstance.Builder addAllServiceBindings(Iterable<? extends Derivable<CloudServiceBinding>> elements)
serviceBindings list.elements - An iterable of serviceBindings elementsthis builder for use in a chained invocationpublic ImmutableRawCloudServiceInstance build()
ImmutableRawCloudServiceInstance.IllegalStateException - if any required attributes are missingCopyright © 2020 SAP SE. All rights reserved.