Class AssetMutationResponse

All Implemented Interfaces:
AtlanResponseInterface, Serializable
Direct Known Subclasses:
AssetDeletionResponse, AsyncCreationResponse

public class AssetMutationResponse extends ApiResource
See Also:
  • Field Details

    • client

      protected transient AtlanClient client
      Connectivity to the Atlan tenant where the save operation was run.
  • Constructor Details

    • AssetMutationResponse

      public AssetMutationResponse()
  • Method Details

    • getCreatedAssets

      public List<Asset> getCreatedAssets()
      Retrieve the list of assets that were created.
      Returns:
      list of created assets, or an empty list if none were created
    • getCreatedAssets

      public <T extends Asset> List<T> getCreatedAssets(Class<T> type)
      Retrieve the sublist of assets that were created, of the provided type.
      Type Parameters:
      T - the type of created assets to filter
      Parameters:
      type - of assets to filter the created list by
      Returns:
      list of created assets, only of the requested type, or an empty list of none of that type were created
    • getUpdatedAssets

      public List<Asset> getUpdatedAssets()
      Retrieve the list of assets that were updated.
      Returns:
      list of updated assets, or an empty list of none were updated
    • getUpdatedAssets

      public <T extends Asset> List<T> getUpdatedAssets(Class<T> type)
      Retrieve the sublist of assets that were updated, of the provided type.
      Type Parameters:
      T - the type of updated assets to filter
      Parameters:
      type - of assets to filter the updated list by
      Returns:
      list of updated assets, only of the requested type, or an empty list of none of that type were updated
    • getPartiallyUpdatedAssets

      public List<Asset> getPartiallyUpdatedAssets()
      Retrieve the list of assets that were partially updated. Note: this should only ever be populated by calls to the certain endpoints
      Returns:
      list of partially updated assets, or an empty list of none were partially updated
    • getPartiallyUpdatedAssets

      public <T extends Asset> List<T> getPartiallyUpdatedAssets(Class<T> type)
      Retrieve the sublist of assets that were partially updated, of the provided type. Note: this should only ever be populated by calls to the certain endpoints
      Type Parameters:
      T - the type of partially updated assets to filter
      Parameters:
      type - of assets to filter the partially updated list by
      Returns:
      list of partially updated assets, only of the requested type, or an empty list of none of that type were partially updated
    • getDeletedAssets

      public List<Asset> getDeletedAssets()
      Retrieve the list of assets that were deleted.
      Returns:
      list of deleted assets, or an empty list of none were deleted
    • getDeletedAssets

      public <T extends Asset> List<T> getDeletedAssets(Class<T> type)
      Retrieve the sublist of assets that were deleted, of the provided type.
      Type Parameters:
      T - the type of deleted assets to filter
      Parameters:
      type - of assets to filter the deleted list by
      Returns:
      list of deleted assets, only of the requested type, or an empty list of none of that type were deleted
    • getAssignedGuid

      public String getAssignedGuid(Asset input)
      Retrieve the real GUID that was assigned to the asset provided in the request.
      Parameters:
      input - asset that was sent in the request that produced this mutation response
      Returns:
      the GUID ultimately assigned to that asset, or null if the provided asset is not part of this response
    • getMutation

      public AssetMutationResponse.MutationType getMutation(Asset input)
      Determine the type of mutation that was applied to the asset provided in the request.
      Parameters:
      input - asset that was sent in the request that produced this mutation response
    • getResult

      public <T extends Asset> T getResult(T input)
      Retrieve the specific mutation result for the asset provided in the request.
      Type Parameters:
      T - the type of the asset
      Parameters:
      input - asset that was sent in the request that produced this mutation response
      Returns:
      the resulting asset from the request, or null if none was found (or if the asset was entirely unchanged)
    • getClient

      public AtlanClient getClient()
      Connectivity to the Atlan tenant where the save operation was run.
    • getMutatedAssets

      public MutatedAssets getMutatedAssets()
      Assets that were changed.
    • getGuidAssignments

      public Map<String,String> getGuidAssignments()
      Map of assigned unique identifiers for the created assets.
    • getPartialUpdatedAssets

      public List<Asset> getPartialUpdatedAssets()
      List of assets that were partially updated. This will only be populated by certain API calls, and actually duplicates the details you'll find in MutatedAssets.PARTIAL_UPDATE for those same API calls.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class AtlanObject
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class AtlanObject
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AtlanObject
    • toString

      public String toString()
      Description copied from class: AtlanObject
      Overrides:
      toString in class ApiResource
    • setClient

      public void setClient(AtlanClient client)
      Connectivity to the Atlan tenant where the save operation was run.