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.
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 networkingClient(NetworkingClient networkingClient)
networkingClient
attribute.networkingClient
- The value for networkingClient (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 © 2020. All rights reserved.