Class WorkflowNotification.WorkflowNotificationBuilder<C extends WorkflowNotification,B extends WorkflowNotification.WorkflowNotificationBuilder<C,B>>

Enclosing class:
WorkflowNotification

public abstract static class WorkflowNotification.WorkflowNotificationBuilder<C extends WorkflowNotification,B extends WorkflowNotification.WorkflowNotificationBuilder<C,B>> extends Asset.AssetBuilder<C,B>
  • Constructor Details

    • WorkflowNotificationBuilder

      public WorkflowNotificationBuilder()
  • Method Details

    • $fillValuesFrom

      protected B $fillValuesFrom(C instance)
      Overrides:
      $fillValuesFrom in class Asset.AssetBuilder<C extends WorkflowNotification,B extends WorkflowNotification.WorkflowNotificationBuilder<C,B>>
    • typeName

      public B typeName(String typeName)
      Fixed typeName for WorkflowNotifications.
      Overrides:
      typeName in class Reference.ReferenceBuilder<C extends WorkflowNotification,B extends WorkflowNotification.WorkflowNotificationBuilder<C,B>>
      Returns:
      this.
    • notificationExternalReference

      public B notificationExternalReference(NotificationExternalReference notificationExternalReference)
    • notificationExternalReferences

      public B notificationExternalReferences(Collection<? extends NotificationExternalReference> notificationExternalReferences)
    • clearNotificationExternalReferences

      public B clearNotificationExternalReferences()
    • notificationLastActedAt

      public B notificationLastActedAt(Long notificationLastActedAt)
      When a person last moved the state. Read against the creation timestamp this gives time to resolution.
      Returns:
      this.
    • notificationLastActedBy

      public B notificationLastActedBy(String notificationLastActedBy)
      Username of the person who last moved the state. Declared separately because the write is service-mediated, so the entity's own modifier records the service and not the person.
      Returns:
      this.
    • notificationLastActedReason

      public B notificationLastActedReason(String notificationLastActedReason)
      Reason or note the person gave for the last action. Mandatory for some actions and optional for others, so it is free text rather than a code.
      Returns:
      this.
    • notificationRecipientGroup

      public B notificationRecipientGroup(String notificationRecipientGroup)
    • notificationRecipientGroups

      public B notificationRecipientGroups(Collection<? extends String> notificationRecipientGroups)
    • clearNotificationRecipientGroups

      public B clearNotificationRecipientGroups()
    • notificationRecipientRole

      public B notificationRecipientRole(String notificationRecipientRole)
    • notificationRecipientRoles

      public B notificationRecipientRoles(Collection<? extends String> notificationRecipientRoles)
    • clearNotificationRecipientRoles

      public B clearNotificationRecipientRoles()
    • notificationRecipientUser

      public B notificationRecipientUser(String notificationRecipientUser)
    • notificationRecipientUsers

      public B notificationRecipientUsers(Collection<? extends String> notificationRecipientUsers)
    • clearNotificationRecipientUsers

      public B clearNotificationRecipientUsers()
    • notificationState

      public B notificationState(NotificationState notificationState)
      Where the notification is in its lifecycle. Also how a check decides whether a live notification already exists before raising another.
      Returns:
      this.
    • workflowNotificationAction

      public B workflowNotificationAction(WorkflowNotificationAction workflowNotificationAction)
      Which option the person took. Declared here rather than on the notification supertype because these values only mean anything for a workflow.
      Returns:
      this.
    • workflowNotificationLastPreflightFailedAt

      public B workflowNotificationLastPreflightFailedAt(Long workflowNotificationLastPreflightFailedAt)
      When the check last failed. Distinct from when it was last checked, which every write already records.
      Returns:
      this.
    • workflowNotificationLastPreflightResult

      public B workflowNotificationLastPreflightResult(String workflowNotificationLastPreflightResult)
      The whole check response as one escaped JSON string, rewritten on every check while the notification is live. Rendered by the widget the interface already has, so nothing is denormalised into attributes.
      Returns:
      this.
    • workflowNotificationPreflightFailureCount

      public B workflowNotificationPreflightFailureCount(Integer workflowNotificationPreflightFailureCount)
      How many times the check has failed for this notification, counted from the failures that raised it and incremented on every failure since.
      Returns:
      this.
    • workflowNotificationWorkflow

      public B workflowNotificationWorkflow(IAtlanAppWorkflow workflowNotificationWorkflow)
      The workflow this notification is about.
      Returns:
      this.
    • workflowNotificationWorkflowSlug

      public B workflowNotificationWorkflowSlug(String workflowNotificationWorkflowSlug)
      Slug of the workflow this notification is about. What grouping by workflow groups on, and how a check finds the live notification before deciding whether to raise another.
      Returns:
      this.
    • self

      protected abstract B self()
      Specified by:
      self in class Asset.AssetBuilder<C extends WorkflowNotification,B extends WorkflowNotification.WorkflowNotificationBuilder<C,B>>
    • build

      public abstract C build()
      Specified by:
      build in class Asset.AssetBuilder<C extends WorkflowNotification,B extends WorkflowNotification.WorkflowNotificationBuilder<C,B>>
    • toString

      public String toString()
      Overrides:
      toString in class Asset.AssetBuilder<C extends WorkflowNotification,B extends WorkflowNotification.WorkflowNotificationBuilder<C,B>>