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.MutationTypeNested classes/interfaces inherited from class com.atlan.net.ApiResource
ApiResource.RequestMethodNested 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
CHARSETFields inherited from class com.atlan.model.core.AtlanObject
rawJsonObjectFields inherited from interface com.atlan.model.core.AtlanAsyncMutator
MAX_ASYNC_RETRIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblock()Block until the asset that was deleted is confirmed to be deleted, since deletion occurs asynchronously.static voidblockForBackgroundTasks(AtlanClient client, List<String> guids, int maxRetries) Block until any pending or in-progress background tasks for the given guids are completed.protected booleanbooleanConnectivity to the Atlan tenant where the asset deletion was run.inthashCode()voidsetClient(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, getUpdatedAssetsMethods inherited from class com.atlan.net.ApiResource
checkNullTypedParams, createQueryString, createQueryString, getLastResponse, getRawJsonObject, injectTraceId, request, request, request, request, request, request, request, requestPlainText, requestPlainText, setLastResponse, urlEncode, urlEncodeIdMethods 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:
blockin 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:
getClientin classAssetMutationResponse
-
equals
- Overrides:
equalsin classAssetMutationResponse
-
canEqual
- Overrides:
canEqualin classAssetMutationResponse
-
hashCode
public int hashCode()- Overrides:
hashCodein classAssetMutationResponse
-
toString
Description copied from class:AtlanObject- Overrides:
toStringin classAssetMutationResponse
-
setClient
Connectivity to the Atlan tenant where the asset deletion was run.- Overrides:
setClientin classAssetMutationResponse
-