public static final class DefaultCloudFoundryOperations.Builder extends Object
DefaultCloudFoundryOperations.
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 |
|---|---|
DefaultCloudFoundryOperations |
build()
Builds a new
DefaultCloudFoundryOperations. |
DefaultCloudFoundryOperations.Builder |
cacheDuration(Duration cacheDuration)
Initializes the optional value
cacheDuration to cacheDuration. |
DefaultCloudFoundryOperations.Builder |
cacheDuration(Optional<? extends Duration> cacheDuration)
Initializes the optional value
cacheDuration to cacheDuration. |
DefaultCloudFoundryOperations.Builder |
cloudFoundryClient(CloudFoundryClient cloudFoundryClient)
Initializes the value for the
cloudFoundryClient attribute. |
DefaultCloudFoundryOperations.Builder |
dopplerClient(DopplerClient dopplerClient)
Initializes the value for the
dopplerClient attribute. |
DefaultCloudFoundryOperations.Builder |
from(DefaultCloudFoundryOperations instance)
Fill a builder with attribute values from the provided
DefaultCloudFoundryOperations instance. |
DefaultCloudFoundryOperations.Builder |
organization(String organization)
Initializes the value for the
organization attribute. |
DefaultCloudFoundryOperations.Builder |
routingClient(RoutingClient routingClient)
Initializes the value for the
routingClient attribute. |
DefaultCloudFoundryOperations.Builder |
space(String space)
Initializes the value for the
space attribute. |
DefaultCloudFoundryOperations.Builder |
uaaClient(UaaClient uaaClient)
Initializes the value for the
uaaClient attribute. |
public final DefaultCloudFoundryOperations.Builder from(DefaultCloudFoundryOperations instance)
DefaultCloudFoundryOperations instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final DefaultCloudFoundryOperations.Builder cacheDuration(Duration cacheDuration)
cacheDuration to cacheDuration.cacheDuration - The value for cacheDurationthis builder for chained invocationpublic final DefaultCloudFoundryOperations.Builder cacheDuration(Optional<? extends Duration> cacheDuration)
cacheDuration to cacheDuration.cacheDuration - The value for cacheDurationthis builder for use in a chained invocationpublic final DefaultCloudFoundryOperations.Builder cloudFoundryClient(CloudFoundryClient cloudFoundryClient)
cloudFoundryClient attribute.cloudFoundryClient - The value for cloudFoundryClient (can be null)this builder for use in a chained invocationpublic final DefaultCloudFoundryOperations.Builder dopplerClient(DopplerClient dopplerClient)
dopplerClient attribute.dopplerClient - The value for dopplerClient (can be null)this builder for use in a chained invocationpublic final DefaultCloudFoundryOperations.Builder organization(String organization)
organization attribute.organization - The value for organization (can be null)this builder for use in a chained invocationpublic final DefaultCloudFoundryOperations.Builder routingClient(RoutingClient routingClient)
routingClient attribute.routingClient - The value for routingClient (can be null)this builder for use in a chained invocationpublic final DefaultCloudFoundryOperations.Builder space(String space)
space attribute.space - The value for space (can be null)this builder for use in a chained invocationpublic final DefaultCloudFoundryOperations.Builder uaaClient(UaaClient uaaClient)
uaaClient attribute.uaaClient - The value for uaaClient (can be null)this builder for use in a chained invocationpublic DefaultCloudFoundryOperations build()
DefaultCloudFoundryOperations.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.