Class DefaultDestination.Builder
java.lang.Object
com.sap.cloud.sdk.cloudplatform.connectivity.DefaultDestination.Builder
- Enclosing class:
- DefaultDestination
Builder class to allow for easy creation of an immutable
DefaultDestination
instance.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finally creates theDefaultDestination
with the properties retrieved via theproperty(String, Object)
method.Sets the name of theDefaultDestination
.Adds the given key-value pair to the destination to be created.toString()
Sets the URI of the to-be-builtDefaultDestination
.Sets the URI of the to-be-builtDefaultDestination
.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
property
Adds the given key-value pair to the destination to be created. This will overwrite any property already assigned to the key.- Parameters:
key
- The key to assign a property for.value
- The property value to be assigned.- Returns:
- This builder.
-
name
Sets the name of theDefaultDestination
.- Parameters:
name
- The destination name- Returns:
- This builder.
- Since:
- 5.0.0
-
uri
Sets the URI of the to-be-builtDefaultDestination
.- Parameters:
uri
- The URI to set.- Returns:
- This builder.
- Since:
- 5.0.0
-
uri
Sets the URI of the to-be-builtDefaultDestination
.- Parameters:
uri
- The URI to set.- Returns:
- This builder.
- Since:
- 5.0.0
-
build
Finally creates theDefaultDestination
with the properties retrieved via theproperty(String, Object)
method.- Returns:
- A fully instantiated
DefaultDestination
.
-
toString
-