Interface RepositorySyncAttempt.Builder

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

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

    • startedAt

      RepositorySyncAttempt.Builder startedAt(Instant startedAt)

      The start time of a specific sync attempt.

      Parameters:
      startedAt - The start time of a specific sync attempt.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The status of a specific sync attempt. The following are valid statuses:

      • INITIATED - A repository sync attempt has been created and will begin soon.

      • IN_PROGRESS - A repository sync attempt has started and work is being done to reconcile the branch.

      • SUCCEEDED - The repository sync attempt has completed successfully.

      • FAILED - The repository sync attempt has failed.

      • QUEUED - The repository sync attempt didn't execute and was queued.

      Parameters:
      status - The status of a specific sync attempt. The following are valid statuses:

      • INITIATED - A repository sync attempt has been created and will begin soon.

      • IN_PROGRESS - A repository sync attempt has started and work is being done to reconcile the branch.

      • SUCCEEDED - The repository sync attempt has completed successfully.

      • FAILED - The repository sync attempt has failed.

      • QUEUED - The repository sync attempt didn't execute and was queued.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The status of a specific sync attempt. The following are valid statuses:

      • INITIATED - A repository sync attempt has been created and will begin soon.

      • IN_PROGRESS - A repository sync attempt has started and work is being done to reconcile the branch.

      • SUCCEEDED - The repository sync attempt has completed successfully.

      • FAILED - The repository sync attempt has failed.

      • QUEUED - The repository sync attempt didn't execute and was queued.

      Parameters:
      status - The status of a specific sync attempt. The following are valid statuses:

      • INITIATED - A repository sync attempt has been created and will begin soon.

      • IN_PROGRESS - A repository sync attempt has started and work is being done to reconcile the branch.

      • SUCCEEDED - The repository sync attempt has completed successfully.

      • FAILED - The repository sync attempt has failed.

      • QUEUED - The repository sync attempt didn't execute and was queued.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • events

      The events associated with a specific sync attempt.

      Parameters:
      events - The events associated with a specific sync attempt.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • events

      The events associated with a specific sync attempt.

      Parameters:
      events - The events associated with a specific sync attempt.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • events

      The events associated with a specific sync attempt.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to events(List<RepositorySyncEvent>).

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