Package com.atlan.net
Class ApiEventStreamResource
java.lang.Object
com.atlan.model.core.AtlanObject
com.atlan.net.ApiEventStreamResource
- All Implemented Interfaces:
AtlanEventStreamResponseInterface
,Serializable
- Direct Known Subclasses:
QueryResponse
public abstract class ApiEventStreamResource
extends AtlanObject
implements AtlanEventStreamResponseInterface
Base class for all event-stream response objects.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlan.model.core.AtlanObject
AtlanObject.AtlanObjectBuilder<C extends AtlanObject,
B extends AtlanObject.AtlanObjectBuilder<C, B>> -
Field Summary
Fields inherited from class com.atlan.model.core.AtlanObject
rawJsonObject
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ApiEventStreamResource>
Trequest
(AtlanClient client, ApiResource.RequestMethod method, String url, AtlanObject payload, Class<T> clazz, RequestOptions options) Pass-through to the request-handling method after confirming that the provided payload is non-null.static <T extends ApiEventStreamResource>
Trequest
(AtlanClient client, ApiResource.RequestMethod method, String url, String body, Class<T> clazz, RequestOptions options) Pass-through the request to the request-handling method.void
setLastResponse
(AtlanEventStreamResponse response) toString()
Methods inherited from class com.atlan.model.core.AtlanObject
canEqual, equals, getRawJsonObject, hashCode, setRawJsonObject, toJson
-
Constructor Details
-
ApiEventStreamResource
public ApiEventStreamResource()
-
-
Method Details
-
getLastResponse
- Specified by:
getLastResponse
in interfaceAtlanEventStreamResponseInterface
-
setLastResponse
- Specified by:
setLastResponse
in interfaceAtlanEventStreamResponseInterface
-
request
public static <T extends ApiEventStreamResource> T request(AtlanClient client, ApiResource.RequestMethod method, String url, AtlanObject payload, Class<T> clazz, RequestOptions options) throws AtlanException Pass-through to the request-handling method after confirming that the provided payload is non-null.- Type Parameters:
T
- the type of the response- Parameters:
client
- connectivity to Atlanmethod
- for the requesturl
- of the requestpayload
- to send in the requestclazz
- defining the expected response typeoptions
- for sending the request (or null to use global defaults)- Returns:
- the response
- Throws:
AtlanException
- on any API interaction problem
-
request
public static <T extends ApiEventStreamResource> T request(AtlanClient client, ApiResource.RequestMethod method, String url, String body, Class<T> clazz, RequestOptions options) throws AtlanException Pass-through the request to the request-handling method. This method wraps debug-level logging lines around the request to show precisely what was constructed and sent to Atlan. What was returned in the response is explicitly not logged to avoid any sensitive information possibly being logged.- Type Parameters:
T
- the type of the response- Parameters:
client
- connectivity to Atlanmethod
- for the requesturl
- of the requestbody
- to send in the request, if any (to not send any use an empty string)clazz
- defining the expected response typeoptions
- for sending the request (or null to use global defaults)- Returns:
- the response
- Throws:
AtlanException
- on any API interaction problem
-
toString
Description copied from class:AtlanObject
- Overrides:
toString
in classAtlanObject
-