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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RepositorySyncAttempt.Builderevents(Collection<RepositorySyncEvent> events)The events associated with a specific sync attempt.RepositorySyncAttempt.Builderevents(Consumer<RepositorySyncEvent.Builder>... events)The events associated with a specific sync attempt.RepositorySyncAttempt.Builderevents(RepositorySyncEvent... events)The events associated with a specific sync attempt.RepositorySyncAttempt.BuilderstartedAt(Instant startedAt)The start time of a specific sync attempt.RepositorySyncAttempt.Builderstatus(String status)The status of a specific sync attempt.RepositorySyncAttempt.Builderstatus(RepositorySyncStatus status)The status of a specific sync attempt.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
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
RepositorySyncAttempt.Builder status(String 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:
RepositorySyncStatus,RepositorySyncStatus
-
-
status
RepositorySyncAttempt.Builder status(RepositorySyncStatus 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:
RepositorySyncStatus,RepositorySyncStatus
-
-
events
RepositorySyncAttempt.Builder events(Collection<RepositorySyncEvent> 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
RepositorySyncAttempt.Builder events(RepositorySyncEvent... 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
RepositorySyncAttempt.Builder events(Consumer<RepositorySyncEvent.Builder>... events)
The events associated with a specific sync attempt.
This is a convenience method that creates an instance of theRepositorySyncEvent.Builderavoiding the need to create one manually viaRepositorySyncEvent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#events(List.) - Parameters:
events- a consumer that will call methods onRepositorySyncEvent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#events(java.util.Collection)
-
-