Interface Condition.Builder

    • Method Detail

      • logicalOperator

        Condition.Builder logicalOperator​(String logicalOperator)

        A logical operator.

        Parameters:
        logicalOperator - A logical operator.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        LogicalOperator, LogicalOperator
      • jobName

        Condition.Builder jobName​(String jobName)

        The name of the job whose JobRuns this condition applies to, and on which this trigger waits.

        Parameters:
        jobName - The name of the job whose JobRuns this condition applies to, and on which this trigger waits.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • state

        Condition.Builder state​(String state)

        The condition state. Currently, the only job states that a trigger can listen for are SUCCEEDED, STOPPED, FAILED, and TIMEOUT. The only crawler states that a trigger can listen for are SUCCEEDED, FAILED, and CANCELLED.

        Parameters:
        state - The condition state. Currently, the only job states that a trigger can listen for are SUCCEEDED, STOPPED, FAILED, and TIMEOUT. The only crawler states that a trigger can listen for are SUCCEEDED, FAILED, and CANCELLED.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        JobRunState, JobRunState
      • state

        Condition.Builder state​(JobRunState state)

        The condition state. Currently, the only job states that a trigger can listen for are SUCCEEDED, STOPPED, FAILED, and TIMEOUT. The only crawler states that a trigger can listen for are SUCCEEDED, FAILED, and CANCELLED.

        Parameters:
        state - The condition state. Currently, the only job states that a trigger can listen for are SUCCEEDED, STOPPED, FAILED, and TIMEOUT. The only crawler states that a trigger can listen for are SUCCEEDED, FAILED, and CANCELLED.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        JobRunState, JobRunState
      • crawlerName

        Condition.Builder crawlerName​(String crawlerName)

        The name of the crawler to which this condition applies.

        Parameters:
        crawlerName - The name of the crawler to which this condition applies.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • crawlState

        Condition.Builder crawlState​(String crawlState)

        The state of the crawler to which this condition applies.

        Parameters:
        crawlState - The state of the crawler to which this condition applies.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        CrawlState, CrawlState
      • crawlState

        Condition.Builder crawlState​(CrawlState crawlState)

        The state of the crawler to which this condition applies.

        Parameters:
        crawlState - The state of the crawler to which this condition applies.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        CrawlState, CrawlState