Class StakeholderTitle

All Implemented Interfaces:
IAsset, IReferenceable, IStakeholderTitle, AuditDetail, Serializable, Comparable<Reference>

@Generated("com.atlan.generators.ModelGeneratorV2") public class StakeholderTitle extends Asset implements IStakeholderTitle, IAsset, IReferenceable
Instance of a stakeholder title for Domains in Atlan
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • trimToReference

      public StakeholderTitle trimToReference() throws InvalidRequestException
      Builds the minimal object necessary to create a relationship to a StakeholderTitle, from a potentially more-complete StakeholderTitle object.
      Overrides:
      trimToReference in class Asset
      Returns:
      the minimal object necessary to relate to the StakeholderTitle
      Throws:
      InvalidRequestException - if any of the minimal set of required properties for a StakeholderTitle relationship are not found in the initial object
    • select

      public static FluentSearch.FluentSearchBuilder<?,?> select()
      Start a fluent search that will return all StakeholderTitle assets. Additional conditions can be chained onto the returned search before any asset retrieval is attempted, ensuring all conditions are pushed-down for optimal retrieval. Only active (non-archived) StakeholderTitle assets will be included.
      Returns:
      a fluent search that includes all StakeholderTitle assets
    • select

      public static FluentSearch.FluentSearchBuilder<?,?> select(AtlanClient client)
      Start a fluent search that will return all StakeholderTitle assets. Additional conditions can be chained onto the returned search before any asset retrieval is attempted, ensuring all conditions are pushed-down for optimal retrieval. Only active (non-archived) StakeholderTitle assets will be included.
      Parameters:
      client - connectivity to the Atlan tenant from which to retrieve the assets
      Returns:
      a fluent search that includes all StakeholderTitle assets
    • select

      public static FluentSearch.FluentSearchBuilder<?,?> select(boolean includeArchived)
      Start a fluent search that will return all StakeholderTitle assets. Additional conditions can be chained onto the returned search before any asset retrieval is attempted, ensuring all conditions are pushed-down for optimal retrieval.
      Parameters:
      includeArchived - when true, archived (soft-deleted) StakeholderTitles will be included
      Returns:
      a fluent search that includes all StakeholderTitle assets
    • select

      public static FluentSearch.FluentSearchBuilder<?,?> select(AtlanClient client, boolean includeArchived)
      Start a fluent search that will return all StakeholderTitle assets. Additional conditions can be chained onto the returned search before any asset retrieval is attempted, ensuring all conditions are pushed-down for optimal retrieval.
      Parameters:
      client - connectivity to the Atlan tenant from which to retrieve the assets
      includeArchived - when true, archived (soft-deleted) StakeholderTitles will be included
      Returns:
      a fluent search that includes all StakeholderTitle assets
    • refByGuid

      public static StakeholderTitle refByGuid(String guid)
      Reference to a StakeholderTitle by GUID. Use this to create a relationship to this StakeholderTitle, where the relationship should be replaced.
      Parameters:
      guid - the GUID of the StakeholderTitle to reference
      Returns:
      reference to a StakeholderTitle that can be used for defining a relationship to a StakeholderTitle
    • refByGuid

      public static StakeholderTitle refByGuid(String guid, Reference.SaveSemantic semantic)
      Reference to a StakeholderTitle by GUID. Use this to create a relationship to this StakeholderTitle, where you want to further control how that relationship should be updated (i.e. replaced, appended, or removed).
      Parameters:
      guid - the GUID of the StakeholderTitle to reference
      semantic - how to save this relationship (replace all with this, append it, or remove it)
      Returns:
      reference to a StakeholderTitle that can be used for defining a relationship to a StakeholderTitle
    • refByQualifiedName

      public static StakeholderTitle refByQualifiedName(String qualifiedName)
      Reference to a StakeholderTitle by qualifiedName. Use this to create a relationship to this StakeholderTitle, where the relationship should be replaced.
      Parameters:
      qualifiedName - the qualifiedName of the StakeholderTitle to reference
      Returns:
      reference to a StakeholderTitle that can be used for defining a relationship to a StakeholderTitle
    • refByQualifiedName

      public static StakeholderTitle refByQualifiedName(String qualifiedName, Reference.SaveSemantic semantic)
      Reference to a StakeholderTitle by qualifiedName. Use this to create a relationship to this StakeholderTitle, where you want to further control how that relationship should be updated (i.e. replaced, appended, or removed).
      Parameters:
      qualifiedName - the qualifiedName of the StakeholderTitle to reference
      semantic - how to save this relationship (replace all with this, append it, or remove it)
      Returns:
      reference to a StakeholderTitle that can be used for defining a relationship to a StakeholderTitle
    • get

      public static StakeholderTitle get(String id) throws AtlanException
      Retrieves a StakeholderTitle by one of its identifiers, complete with all of its relationships.
      Parameters:
      id - of the StakeholderTitle to retrieve, either its GUID or its full qualifiedName
      Returns:
      the requested full StakeholderTitle, complete with all of its relationships
      Throws:
      AtlanException - on any error during the API invocation, such as the NotFoundException if the StakeholderTitle does not exist or the provided GUID is not a StakeholderTitle
    • get

      public static StakeholderTitle get(AtlanClient client, String id) throws AtlanException
      Retrieves a StakeholderTitle by one of its identifiers, complete with all of its relationships.
      Parameters:
      client - connectivity to the Atlan tenant from which to retrieve the asset
      id - of the StakeholderTitle to retrieve, either its GUID or its full qualifiedName
      Returns:
      the requested full StakeholderTitle, complete with all of its relationships
      Throws:
      AtlanException - on any error during the API invocation, such as the NotFoundException if the StakeholderTitle does not exist or the provided GUID is not a StakeholderTitle
    • get

      public static StakeholderTitle get(AtlanClient client, String id, boolean includeRelationships) throws AtlanException
      Retrieves a StakeholderTitle by one of its identifiers, optionally complete with all of its relationships.
      Parameters:
      client - connectivity to the Atlan tenant from which to retrieve the asset
      id - of the StakeholderTitle to retrieve, either its GUID or its full qualifiedName
      includeRelationships - if true, all of the asset's relationships will also be retrieved; if false, no relationships will be retrieved
      Returns:
      the requested full StakeholderTitle, optionally complete with all of its relationships
      Throws:
      AtlanException - on any error during the API invocation, such as the NotFoundException if the StakeholderTitle does not exist or the provided GUID is not a StakeholderTitle
    • restore

      public static boolean restore(String qualifiedName) throws AtlanException
      Restore the archived (soft-deleted) StakeholderTitle to active.
      Parameters:
      qualifiedName - for the StakeholderTitle
      Returns:
      true if the StakeholderTitle is now active, and false otherwise
      Throws:
      AtlanException - on any API problems
    • restore

      public static boolean restore(AtlanClient client, String qualifiedName) throws AtlanException
      Restore the archived (soft-deleted) StakeholderTitle to active.
      Parameters:
      client - connectivity to the Atlan tenant on which to restore the asset
      qualifiedName - for the StakeholderTitle
      Returns:
      true if the StakeholderTitle is now active, and false otherwise
      Throws:
      AtlanException - on any API problems
    • updater

      public static StakeholderTitle.StakeholderTitleBuilder<?,?> updater(String qualifiedName, String name)
      Builds the minimal object necessary to update a StakeholderTitle.
      Parameters:
      qualifiedName - of the StakeholderTitle
      name - of the StakeholderTitle
      Returns:
      the minimal request necessary to update the StakeholderTitle, as a builder
    • trimToRequired

      Builds the minimal object necessary to apply an update to a StakeholderTitle, from a potentially more-complete StakeholderTitle object.
      Overrides:
      trimToRequired in class Asset
      Returns:
      the minimal object necessary to update the StakeholderTitle, as a builder
      Throws:
      InvalidRequestException - if any of the minimal set of required properties for StakeholderTitle are not found in the initial object
    • removeDescription

      public static StakeholderTitle removeDescription(String qualifiedName, String name) throws AtlanException
      Remove the system description from a StakeholderTitle.
      Parameters:
      qualifiedName - of the StakeholderTitle
      name - of the StakeholderTitle
      Returns:
      the updated StakeholderTitle, or null if the removal failed
      Throws:
      AtlanException - on any API problems
    • removeDescription

      public static StakeholderTitle removeDescription(AtlanClient client, String qualifiedName, String name) throws AtlanException
      Remove the system description from a StakeholderTitle.
      Parameters:
      client - connectivity to the Atlan tenant on which to remove the asset's description
      qualifiedName - of the StakeholderTitle
      name - of the StakeholderTitle
      Returns:
      the updated StakeholderTitle, or null if the removal failed
      Throws:
      AtlanException - on any API problems
    • removeUserDescription

      public static StakeholderTitle removeUserDescription(String qualifiedName, String name) throws AtlanException
      Remove the user's description from a StakeholderTitle.
      Parameters:
      qualifiedName - of the StakeholderTitle
      name - of the StakeholderTitle
      Returns:
      the updated StakeholderTitle, or null if the removal failed
      Throws:
      AtlanException - on any API problems
    • removeUserDescription

      public static StakeholderTitle removeUserDescription(AtlanClient client, String qualifiedName, String name) throws AtlanException
      Remove the user's description from a StakeholderTitle.
      Parameters:
      client - connectivity to the Atlan tenant on which to remove the asset's description
      qualifiedName - of the StakeholderTitle
      name - of the StakeholderTitle
      Returns:
      the updated StakeholderTitle, or null if the removal failed
      Throws:
      AtlanException - on any API problems
    • removeOwners

      public static StakeholderTitle removeOwners(String qualifiedName, String name) throws AtlanException
      Remove the owners from a StakeholderTitle.
      Parameters:
      qualifiedName - of the StakeholderTitle
      name - of the StakeholderTitle
      Returns:
      the updated StakeholderTitle, or null if the removal failed
      Throws:
      AtlanException - on any API problems
    • removeOwners

      public static StakeholderTitle removeOwners(AtlanClient client, String qualifiedName, String name) throws AtlanException
      Remove the owners from a StakeholderTitle.
      Parameters:
      client - connectivity to the Atlan tenant from which to remove the StakeholderTitle's owners
      qualifiedName - of the StakeholderTitle
      name - of the StakeholderTitle
      Returns:
      the updated StakeholderTitle, or null if the removal failed
      Throws:
      AtlanException - on any API problems
    • updateCertificate

      public static StakeholderTitle updateCertificate(String qualifiedName, CertificateStatus certificate, String message) throws AtlanException
      Update the certificate on a StakeholderTitle.
      Parameters:
      qualifiedName - of the StakeholderTitle
      certificate - to use
      message - (optional) message, or null if no message
      Returns:
      the updated StakeholderTitle, or null if the update failed
      Throws:
      AtlanException - on any API problems
    • updateCertificate

      public static StakeholderTitle updateCertificate(AtlanClient client, String qualifiedName, CertificateStatus certificate, String message) throws AtlanException
      Update the certificate on a StakeholderTitle.
      Parameters:
      client - connectivity to the Atlan tenant on which to update the StakeholderTitle's certificate
      qualifiedName - of the StakeholderTitle
      certificate - to use
      message - (optional) message, or null if no message
      Returns:
      the updated StakeholderTitle, or null if the update failed
      Throws:
      AtlanException - on any API problems
    • removeCertificate

      public static StakeholderTitle removeCertificate(String qualifiedName, String name) throws AtlanException
      Remove the certificate from a StakeholderTitle.
      Parameters:
      qualifiedName - of the StakeholderTitle
      name - of the StakeholderTitle
      Returns:
      the updated StakeholderTitle, or null if the removal failed
      Throws:
      AtlanException - on any API problems
    • removeCertificate

      public static StakeholderTitle removeCertificate(AtlanClient client, String qualifiedName, String name) throws AtlanException
      Remove the certificate from a StakeholderTitle.
      Parameters:
      client - connectivity to the Atlan tenant from which to remove the StakeholderTitle's certificate
      qualifiedName - of the StakeholderTitle
      name - of the StakeholderTitle
      Returns:
      the updated StakeholderTitle, or null if the removal failed
      Throws:
      AtlanException - on any API problems
    • updateAnnouncement

      public static StakeholderTitle updateAnnouncement(String qualifiedName, AtlanAnnouncementType type, String title, String message) throws AtlanException
      Update the announcement on a StakeholderTitle.
      Parameters:
      qualifiedName - of the StakeholderTitle
      type - type of announcement to set
      title - (optional) title of the announcement to set (or null for no title)
      message - (optional) message of the announcement to set (or null for no message)
      Returns:
      the result of the update, or null if the update failed
      Throws:
      AtlanException - on any API problems
    • updateAnnouncement

      public static StakeholderTitle updateAnnouncement(AtlanClient client, String qualifiedName, AtlanAnnouncementType type, String title, String message) throws AtlanException
      Update the announcement on a StakeholderTitle.
      Parameters:
      client - connectivity to the Atlan tenant on which to update the StakeholderTitle's announcement
      qualifiedName - of the StakeholderTitle
      type - type of announcement to set
      title - (optional) title of the announcement to set (or null for no title)
      message - (optional) message of the announcement to set (or null for no message)
      Returns:
      the result of the update, or null if the update failed
      Throws:
      AtlanException - on any API problems
    • removeAnnouncement

      public static StakeholderTitle removeAnnouncement(String qualifiedName, String name) throws AtlanException
      Remove the announcement from a StakeholderTitle.
      Parameters:
      qualifiedName - of the StakeholderTitle
      name - of the StakeholderTitle
      Returns:
      the updated StakeholderTitle, or null if the removal failed
      Throws:
      AtlanException - on any API problems
    • removeAnnouncement

      public static StakeholderTitle removeAnnouncement(AtlanClient client, String qualifiedName, String name) throws AtlanException
      Remove the announcement from a StakeholderTitle.
      Parameters:
      client - connectivity to the Atlan client from which to remove the StakeholderTitle's announcement
      qualifiedName - of the StakeholderTitle
      name - of the StakeholderTitle
      Returns:
      the updated StakeholderTitle, or null if the removal failed
      Throws:
      AtlanException - on any API problems
    • replaceTerms

      public static StakeholderTitle replaceTerms(String qualifiedName, String name, List<IGlossaryTerm> terms) throws AtlanException
      Replace the terms linked to the StakeholderTitle.
      Parameters:
      qualifiedName - for the StakeholderTitle
      name - human-readable name of the StakeholderTitle
      terms - the list of terms to replace on the StakeholderTitle, or null to remove all terms from the StakeholderTitle
      Returns:
      the StakeholderTitle that was updated (note that it will NOT contain details of the replaced terms)
      Throws:
      AtlanException - on any API problems
    • replaceTerms

      public static StakeholderTitle replaceTerms(AtlanClient client, String qualifiedName, String name, List<IGlossaryTerm> terms) throws AtlanException
      Replace the terms linked to the StakeholderTitle.
      Parameters:
      client - connectivity to the Atlan tenant on which to replace the StakeholderTitle's assigned terms
      qualifiedName - for the StakeholderTitle
      name - human-readable name of the StakeholderTitle
      terms - the list of terms to replace on the StakeholderTitle, or null to remove all terms from the StakeholderTitle
      Returns:
      the StakeholderTitle that was updated (note that it will NOT contain details of the replaced terms)
      Throws:
      AtlanException - on any API problems
    • appendTerms

      public static StakeholderTitle appendTerms(String qualifiedName, List<IGlossaryTerm> terms) throws AtlanException
      Link additional terms to the StakeholderTitle, without replacing existing terms linked to the StakeholderTitle. Note: this operation must make two API calls — one to retrieve the StakeholderTitle's existing terms, and a second to append the new terms.
      Parameters:
      qualifiedName - for the StakeholderTitle
      terms - the list of terms to append to the StakeholderTitle
      Returns:
      the StakeholderTitle that was updated (note that it will NOT contain details of the appended terms)
      Throws:
      AtlanException - on any API problems
    • appendTerms

      public static StakeholderTitle appendTerms(AtlanClient client, String qualifiedName, List<IGlossaryTerm> terms) throws AtlanException
      Link additional terms to the StakeholderTitle, without replacing existing terms linked to the StakeholderTitle. Note: this operation must make two API calls — one to retrieve the StakeholderTitle's existing terms, and a second to append the new terms.
      Parameters:
      client - connectivity to the Atlan tenant on which to append terms to the StakeholderTitle
      qualifiedName - for the StakeholderTitle
      terms - the list of terms to append to the StakeholderTitle
      Returns:
      the StakeholderTitle that was updated (note that it will NOT contain details of the appended terms)
      Throws:
      AtlanException - on any API problems
    • removeTerms

      public static StakeholderTitle removeTerms(String qualifiedName, List<IGlossaryTerm> terms) throws AtlanException
      Remove terms from a StakeholderTitle, without replacing all existing terms linked to the StakeholderTitle. Note: this operation must make two API calls — one to retrieve the StakeholderTitle's existing terms, and a second to remove the provided terms.
      Parameters:
      qualifiedName - for the StakeholderTitle
      terms - the list of terms to remove from the StakeholderTitle, which must be referenced by GUID
      Returns:
      the StakeholderTitle that was updated (note that it will NOT contain details of the resulting terms)
      Throws:
      AtlanException - on any API problems
    • removeTerms

      public static StakeholderTitle removeTerms(AtlanClient client, String qualifiedName, List<IGlossaryTerm> terms) throws AtlanException
      Remove terms from a StakeholderTitle, without replacing all existing terms linked to the StakeholderTitle. Note: this operation must make two API calls — one to retrieve the StakeholderTitle's existing terms, and a second to remove the provided terms.
      Parameters:
      client - connectivity to the Atlan tenant from which to remove terms from the StakeholderTitle
      qualifiedName - for the StakeholderTitle
      terms - the list of terms to remove from the StakeholderTitle, which must be referenced by GUID
      Returns:
      the StakeholderTitle that was updated (note that it will NOT contain details of the resulting terms)
      Throws:
      AtlanException - on any API problems
    • appendAtlanTags

      public static StakeholderTitle appendAtlanTags(String qualifiedName, List<String> atlanTagNames) throws AtlanException
      Add Atlan tags to a StakeholderTitle, without replacing existing Atlan tags linked to the StakeholderTitle. Note: this operation must make two API calls — one to retrieve the StakeholderTitle's existing Atlan tags, and a second to append the new Atlan tags.
      Parameters:
      qualifiedName - of the StakeholderTitle
      atlanTagNames - human-readable names of the Atlan tags to add
      Returns:
      the updated StakeholderTitle
      Throws:
      AtlanException - on any API problems
    • appendAtlanTags

      public static StakeholderTitle appendAtlanTags(AtlanClient client, String qualifiedName, List<String> atlanTagNames) throws AtlanException
      Add Atlan tags to a StakeholderTitle, without replacing existing Atlan tags linked to the StakeholderTitle. Note: this operation must make two API calls — one to retrieve the StakeholderTitle's existing Atlan tags, and a second to append the new Atlan tags.
      Parameters:
      client - connectivity to the Atlan tenant on which to append Atlan tags to the StakeholderTitle
      qualifiedName - of the StakeholderTitle
      atlanTagNames - human-readable names of the Atlan tags to add
      Returns:
      the updated StakeholderTitle
      Throws:
      AtlanException - on any API problems
    • appendAtlanTags

      public static StakeholderTitle appendAtlanTags(String qualifiedName, List<String> atlanTagNames, boolean propagate, boolean removePropagationsOnDelete, boolean restrictLineagePropagation) throws AtlanException
      Add Atlan tags to a StakeholderTitle, without replacing existing Atlan tags linked to the StakeholderTitle. Note: this operation must make two API calls — one to retrieve the StakeholderTitle's existing Atlan tags, and a second to append the new Atlan tags.
      Parameters:
      qualifiedName - of the StakeholderTitle
      atlanTagNames - human-readable names of the Atlan tags to add
      propagate - whether to propagate the Atlan tag (true) or not (false)
      removePropagationsOnDelete - whether to remove the propagated Atlan tags when the Atlan tag is removed from this asset (true) or not (false)
      restrictLineagePropagation - whether to avoid propagating through lineage (true) or do propagate through lineage (false)
      Returns:
      the updated StakeholderTitle
      Throws:
      AtlanException - on any API problems
    • appendAtlanTags

      public static StakeholderTitle appendAtlanTags(AtlanClient client, String qualifiedName, List<String> atlanTagNames, boolean propagate, boolean removePropagationsOnDelete, boolean restrictLineagePropagation) throws AtlanException
      Add Atlan tags to a StakeholderTitle, without replacing existing Atlan tags linked to the StakeholderTitle. Note: this operation must make two API calls — one to retrieve the StakeholderTitle's existing Atlan tags, and a second to append the new Atlan tags.
      Parameters:
      client - connectivity to the Atlan tenant on which to append Atlan tags to the StakeholderTitle
      qualifiedName - of the StakeholderTitle
      atlanTagNames - human-readable names of the Atlan tags to add
      propagate - whether to propagate the Atlan tag (true) or not (false)
      removePropagationsOnDelete - whether to remove the propagated Atlan tags when the Atlan tag is removed from this asset (true) or not (false)
      restrictLineagePropagation - whether to avoid propagating through lineage (true) or do propagate through lineage (false)
      Returns:
      the updated StakeholderTitle
      Throws:
      AtlanException - on any API problems
    • removeAtlanTag

      public static void removeAtlanTag(String qualifiedName, String atlanTagName) throws AtlanException
      Remove an Atlan tag from a StakeholderTitle.
      Parameters:
      qualifiedName - of the StakeholderTitle
      atlanTagName - human-readable name of the Atlan tag to remove
      Throws:
      AtlanException - on any API problems, or if the Atlan tag does not exist on the StakeholderTitle
    • removeAtlanTag

      public static void removeAtlanTag(AtlanClient client, String qualifiedName, String atlanTagName) throws AtlanException
      Remove an Atlan tag from a StakeholderTitle.
      Parameters:
      client - connectivity to the Atlan tenant from which to remove an Atlan tag from a StakeholderTitle
      qualifiedName - of the StakeholderTitle
      atlanTagName - human-readable name of the Atlan tag to remove
      Throws:
      AtlanException - on any API problems, or if the Atlan tag does not exist on the StakeholderTitle
    • _internal

      public static StakeholderTitle.StakeholderTitleBuilder<?,?> _internal()
    • toBuilder

      Overrides:
      toBuilder in class Reference
    • getStakeholderTitleDomainQualifiedNames

      public SortedSet<String> getStakeholderTitleDomainQualifiedNames()
      qualified name array representing the Domains for which this StakeholderTitle is applicable
      Specified by:
      getStakeholderTitleDomainQualifiedNames in interface IStakeholderTitle
    • getStakeholders

      public SortedSet<IStakeholder> getStakeholders()
      Stakeholder-Personas created for this Stakeholder-title
      Specified by:
      getStakeholders in interface IStakeholderTitle
    • equals

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

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

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

      public String toString()
      Description copied from class: AtlanObject
      Overrides:
      toString in class Asset
    • getTypeName

      public String getTypeName()
      Fixed typeName for StakeholderTitles.
      Specified by:
      getTypeName in interface AuditDetail
      Specified by:
      getTypeName in interface IAsset
      Specified by:
      getTypeName in interface IReferenceable
      Specified by:
      getTypeName in interface IStakeholderTitle
      Overrides:
      getTypeName in class Reference