public static final class ScpNeoDestination.Builder extends Object
ScpNeoDestination
instance.Modifier and Type | Method and Description |
---|---|
ScpNeoDestination |
build()
Finally creates the
ScpNeoDestination with the properties previously set. |
protected DefaultDestination |
buildDefaultDestination()
Finally creates a
DefaultDestination with the properties retrieved via #the
property(String, Object) method. |
protected ScpNeoDestination.Builder |
getThis() |
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.
|
String |
toString() |
BuilderT |
type(DestinationType type)
Sets the type for the destination.
|
@Nonnull protected ScpNeoDestination.Builder getThis()
@Nonnull public ScpNeoDestination build()
ScpNeoDestination
with the properties previously set.ScpNeoDestination
.@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 © 2020 SAP SE. All rights reserved.