Package com.atlan.model.core
Class AssetDeletionResponse
java.lang.Object
com.atlan.model.core.AtlanObject
com.atlan.net.ApiResource
com.atlan.model.core.AssetMutationResponse
com.atlan.model.core.AssetDeletionResponse
- All Implemented Interfaces:
AtlanAsyncMutator
,AtlanResponseInterface
,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlan.model.core.AssetMutationResponse
AssetMutationResponse.MutationType
Nested classes/interfaces inherited from class com.atlan.net.ApiResource
ApiResource.RequestMethod
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.net.ApiResource
CHARSET
Fields inherited from class com.atlan.model.core.AtlanObject
rawJsonObject
Fields inherited from interface com.atlan.model.core.AtlanAsyncMutator
MAX_ASYNC_RETRIES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionblock()
Block until the asset that was deleted is confirmed to be deleted, since deletion occurs asynchronously.static void
blockForBackgroundTasks
(AtlanClient client, List<String> guids, int maxRetries) Block until any pending or in-progress background tasks for the given guids are completed.protected boolean
boolean
Connectivity to the Atlan tenant where the asset deletion was run.int
hashCode()
void
setClient
(AtlanClient client) Connectivity to the Atlan tenant where the asset deletion was run.toString()
Methods inherited from class com.atlan.model.core.AssetMutationResponse
getAssignedGuid, getCreatedAssets, getCreatedAssets, getDeletedAssets, getDeletedAssets, getGuidAssignments, getMutatedAssets, getMutation, getPartiallyUpdatedAssets, getPartiallyUpdatedAssets, getPartialUpdatedAssets, getResult, getUpdatedAssets, getUpdatedAssets
Methods inherited from class com.atlan.net.ApiResource
checkNullTypedParams, createQueryString, createQueryString, getLastResponse, getRawJsonObject, request, request, request, request, request, request, request, requestPlainText, requestPlainText, setLastResponse, urlEncode, urlEncodeId
Methods inherited from class com.atlan.model.core.AtlanObject
setRawJsonObject, toJson
-
Constructor Details
-
AssetDeletionResponse
public AssetDeletionResponse()
-
-
Method Details
-
block
Block until the asset that was deleted is confirmed to be deleted, since deletion occurs asynchronously.- Specified by:
block
in interfaceAtlanAsyncMutator
- Returns:
- the original mutation response, only after the changes are confirmed
- Throws:
ApiException
- if the retry loop is interrupted or the maximum number of retries is hit
-
blockForBackgroundTasks
public static void blockForBackgroundTasks(AtlanClient client, List<String> guids, int maxRetries) throws InterruptedException, ApiException Block until any pending or in-progress background tasks for the given guids are completed.- Parameters:
client
- connectivity to the Atlan tenant on which to run the task checksguids
- list of guids to check for background tasksmaxRetries
- maximum number of retries to wait for the background tasks to complete- Throws:
InterruptedException
- if the retry loop is interruptedApiException
- if the maximum number of retries is hit without the background tasks being completed
-
getClient
Connectivity to the Atlan tenant where the asset deletion was run.- Overrides:
getClient
in classAssetMutationResponse
-
equals
- Overrides:
equals
in classAssetMutationResponse
-
canEqual
- Overrides:
canEqual
in classAssetMutationResponse
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAssetMutationResponse
-
toString
Description copied from class:AtlanObject
- Overrides:
toString
in classAssetMutationResponse
-
setClient
Connectivity to the Atlan tenant where the asset deletion was run.- Overrides:
setClient
in classAssetMutationResponse
-