public static final class ScpCfHttpDestination.Builder extends Object
ScpCfHttpDestination
instance.Modifier and Type | Method and Description |
---|---|
ScpCfHttpDestination.Builder |
authenticationType(AuthenticationType value)
Sets the authentication type of the destination.
|
ScpCfHttpDestination.Builder |
basicCredentials(BasicCredentials value)
Sets the credentials for accessing the destination when basic authentication is used.
|
ScpCfHttpDestination |
build()
Finally creates the
ScpCfHttpDestination based on the builder methods called and properties
previously set. |
protected DefaultDestination |
buildDefaultDestination()
Finally creates a
DefaultDestination with the properties retrieved via #the
property(String, Object) method. |
ScpCfHttpDestination.Builder |
cloudConnectorLocationId(String locationId)
Sets the connectivity location id of the destination.
|
protected ScpCfHttpDestination.Builder |
getThis() |
ScpCfHttpDestination.Builder |
keyStore(KeyStore value)
Sets the
KeyStore used by the destination to the given value. |
ScpCfHttpDestination.Builder |
keyStorePassword(String value)
Sets the password of the key store.
|
BuilderT |
name(String name)
Sets a name for the destination.
|
BuilderT |
property(String key,
Object value)
Adds the given key-value pair to the destination to be created.
|
ScpCfHttpDestination.Builder |
proxyConfiguration(ProxyConfiguration value)
Sets the proxy used by the destination to the given value.
|
ScpCfHttpDestination.Builder |
proxyType(ProxyType value)
Sets the proxy type (Internet or On-Premise).
|
ScpCfHttpDestination.Builder |
tlsVersion(String value)
Sets the TLS version used by the destination to the given value.
|
String |
toString() |
ScpCfHttpDestination.Builder |
trustAllCertificates()
Lets the destination trust all server certificates.
|
ScpCfHttpDestination.Builder |
trustStore(KeyStore value)
Sets the trust store used by the destination to the given value.
|
ScpCfHttpDestination.Builder |
trustStorePassword(String value)
Sets the password of the trust store.
|
BuilderT |
type(DestinationType type)
Sets the type for the destination.
|
ScpCfHttpDestination.Builder |
uri(URI uri)
Sets the uri of the destination.
|
@Nonnull public ScpCfHttpDestination.Builder uri(@Nonnull URI uri)
uri
- A URI for this destination.@Nonnull public ScpCfHttpDestination.Builder authenticationType(@Nonnull AuthenticationType value)
value
- Enum value from AuthenticationType
representing the authentication type.@Nonnull public ScpCfHttpDestination.Builder basicCredentials(@Nonnull BasicCredentials value)
value
- Username and password represented as a BasicCredentials
object.@Nonnull public ScpCfHttpDestination.Builder tlsVersion(@Nonnull String value)
value
- The TLS version that should be used.@Nonnull public ScpCfHttpDestination.Builder proxyType(@Nonnull ProxyType value)
value
- Type of proxy this destination is configured for.@Nonnull public ScpCfHttpDestination.Builder proxyConfiguration(@Nonnull ProxyConfiguration value)
value
- The proxy that should be used.@Nonnull public ScpCfHttpDestination.Builder keyStore(@Nonnull KeyStore value)
KeyStore
used by the destination to the given value.value
- The TLS version that should be used.@Nonnull public ScpCfHttpDestination.Builder keyStorePassword(@Nonnull String value)
value
- The key store password that should be used.@Nonnull public ScpCfHttpDestination.Builder trustAllCertificates()
@Nonnull public ScpCfHttpDestination.Builder trustStore(@Nonnull KeyStore value)
value
- The trust store that should be used.@Nonnull public ScpCfHttpDestination.Builder trustStorePassword(@Nonnull String value)
value
- The trust store password that should be used.@Nonnull public ScpCfHttpDestination.Builder cloudConnectorLocationId(@Nonnull String locationId)
locationId
- The location identifier for connecting to SAP Cloud Connector.@Nonnull protected ScpCfHttpDestination.Builder getThis()
@Nonnull public ScpCfHttpDestination build()
ScpCfHttpDestination
based on the builder methods called and properties
previously set.ScpCfHttpDestination
.@Nonnull public BuilderT name(@Nonnull String name)
name
- A name for the destination.@Nonnull public BuilderT type(@Nonnull DestinationType type)
type
- A recognized type for the destination.@Nonnull public BuilderT property(@Nonnull String key, @Nonnull Object value)
key
- The key to assign a property for.value
- The property value to be assigned.@Nonnull protected final DefaultDestination buildDefaultDestination()
DefaultDestination
with the properties retrieved via #the
property(String, Object)
method.DefaultDestination
.Copyright © 2019 SAP SE. All rights reserved.