public static final class SingleEndpointRootProvider.Builder extends Object
SingleEndpointRootProvider.
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 |
|---|---|
SingleEndpointRootProvider.Builder |
apiHost(String apiHost)
Initializes the value for the
apiHost attribute. |
SingleEndpointRootProvider |
build()
Builds a new
SingleEndpointRootProvider. |
SingleEndpointRootProvider.Builder |
from(org.cloudfoundry.reactor._SingleEndpointRootProvider instance)
Copy abstract value type
_SingleEndpointRootProvider instance into builder. |
SingleEndpointRootProvider.Builder |
from(org.cloudfoundry.reactor.AbstractRootProvider instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.reactor.AbstractRootProvider instance. |
SingleEndpointRootProvider.Builder |
from(SingleEndpointRootProvider instance)
Fill a builder with attribute values from the provided
SingleEndpointRootProvider instance. |
SingleEndpointRootProvider.Builder |
port(int port)
Initializes the optional value
port to port. |
SingleEndpointRootProvider.Builder |
port(Optional<Integer> port)
Initializes the optional value
port to port. |
SingleEndpointRootProvider.Builder |
secure(boolean secure)
Initializes the optional value
secure to secure. |
SingleEndpointRootProvider.Builder |
secure(Optional<Boolean> secure)
Initializes the optional value
secure to secure. |
public final SingleEndpointRootProvider.Builder from(org.cloudfoundry.reactor.AbstractRootProvider instance)
org.cloudfoundry.reactor.AbstractRootProvider instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SingleEndpointRootProvider.Builder from(SingleEndpointRootProvider instance)
SingleEndpointRootProvider instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SingleEndpointRootProvider.Builder from(org.cloudfoundry.reactor._SingleEndpointRootProvider instance)
_SingleEndpointRootProvider instance into builder.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SingleEndpointRootProvider.Builder apiHost(String apiHost)
apiHost attribute.apiHost - The value for apiHostthis builder for use in a chained invocationpublic final SingleEndpointRootProvider.Builder port(int port)
port to port.port - The value for portthis builder for chained invocationpublic final SingleEndpointRootProvider.Builder port(Optional<Integer> port)
port to port.port - The value for portthis builder for use in a chained invocationpublic final SingleEndpointRootProvider.Builder secure(boolean secure)
secure to secure.secure - The value for securethis builder for chained invocationpublic final SingleEndpointRootProvider.Builder secure(Optional<Boolean> secure)
secure to secure.secure - The value for securethis builder for use in a chained invocationpublic SingleEndpointRootProvider build()
SingleEndpointRootProvider.IllegalStateException - if any required attributes are missingCopyright © 2019. All rights reserved.