Interface RuleState.Builder

All Superinterfaces:
Buildable, CopyableBuilder<RuleState.Builder,RuleState>, SdkBuilder<RuleState.Builder,RuleState>, SdkPojo
Enclosing class:
RuleState

public static interface RuleState.Builder extends SdkPojo, CopyableBuilder<RuleState.Builder,RuleState>
  • Method Details

    • ruleName

      RuleState.Builder ruleName(String ruleName)

      The name of the rule.

      Parameters:
      ruleName - The name of the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • currentRevision

      RuleState.Builder currentRevision(RuleRevision currentRevision)

      The ID of the current revision of the artifact successfully worked on by the job.

      Parameters:
      currentRevision - The ID of the current revision of the artifact successfully worked on by the job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • currentRevision

      default RuleState.Builder currentRevision(Consumer<RuleRevision.Builder> currentRevision)

      The ID of the current revision of the artifact successfully worked on by the job.

      This is a convenience method that creates an instance of the RuleRevision.Builder avoiding the need to create one manually via RuleRevision.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to currentRevision(RuleRevision).

      Parameters:
      currentRevision - a consumer that will call methods on RuleRevision.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • latestExecution

      RuleState.Builder latestExecution(RuleExecution latestExecution)

      Represents information about the latest run of an rule.

      Parameters:
      latestExecution - Represents information about the latest run of an rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • latestExecution

      default RuleState.Builder latestExecution(Consumer<RuleExecution.Builder> latestExecution)

      Represents information about the latest run of an rule.

      This is a convenience method that creates an instance of the RuleExecution.Builder avoiding the need to create one manually via RuleExecution.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to latestExecution(RuleExecution).

      Parameters:
      latestExecution - a consumer that will call methods on RuleExecution.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • entityUrl

      RuleState.Builder entityUrl(String entityUrl)

      A URL link for more information about the state of the action, such as a details page.

      Parameters:
      entityUrl - A URL link for more information about the state of the action, such as a details page.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • revisionUrl

      RuleState.Builder revisionUrl(String revisionUrl)

      A URL link for more information about the revision, such as a commit details page.

      Parameters:
      revisionUrl - A URL link for more information about the revision, such as a commit details page.
      Returns:
      Returns a reference to this object so that method calls can be chained together.