public class ScpCfDestination extends com.sap.cloud.sdk.cloudplatform.connectivity.AbstractScpDestination implements Destination
ScpCfHttpDestination
or a ScpCfRfcDestination
.
Additionally provides a builder to construct instances.
Modifier and Type | Class and Description |
---|---|
static class |
ScpCfDestination.Builder |
Modifier and Type | Method and Description |
---|---|
HttpDestination |
asHttp()
Decorates this object as a
HttpDestination , |
RfcDestination |
asRfc()
Decorates this object as a
RfcDestination , |
static ScpCfDestination.Builder |
builder(String name,
DestinationType type)
Starts a builder to be used to create a
ScpCfDestination with some properties. |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isHttp()
Verifies that this object can be converted to a
HttpDestination . |
boolean |
isRfc()
Verifies that this object can be converted to a
RfcDestination . |
get, getName, getType, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
decorate
get, get, get, get
@Nonnull public HttpDestination asHttp() throws IllegalArgumentException
HttpDestination
,asHttp
in interface Destination
IllegalArgumentException
- if this object cannot be decorated as a HttpDestination
.public boolean isHttp()
HttpDestination
.isHttp
in interface Destination
true
, if a call to Destination.asHttp()
will succeed; false
otherwise.@Nonnull public RfcDestination asRfc() throws IllegalArgumentException
RfcDestination
,asRfc
in interface Destination
IllegalArgumentException
- if this object cannot be decorated as a RfcDestination
.public boolean isRfc()
RfcDestination
.isRfc
in interface Destination
true
, if a call to Destination.asRfc()
()} will succeed; false
otherwise.@Nonnull public static ScpCfDestination.Builder builder(@Nonnull String name, @Nonnull DestinationType type)
ScpCfDestination
with some properties.public boolean equals(Object o)
equals
in class com.sap.cloud.sdk.cloudplatform.connectivity.AbstractScpDestination
protected boolean canEqual(Object other)
canEqual
in class com.sap.cloud.sdk.cloudplatform.connectivity.AbstractScpDestination
public int hashCode()
hashCode
in class com.sap.cloud.sdk.cloudplatform.connectivity.AbstractScpDestination
Copyright © 2019 SAP SE. All rights reserved.