Interface ResourceSyncAttempt.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ResourceSyncAttempt.Builder,ResourceSyncAttempt>,SdkBuilder<ResourceSyncAttempt.Builder,ResourceSyncAttempt>,SdkPojo
- Enclosing class:
- ResourceSyncAttempt
public static interface ResourceSyncAttempt.Builder extends SdkPojo, CopyableBuilder<ResourceSyncAttempt.Builder,ResourceSyncAttempt>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ResourceSyncAttempt.Builderevents(Collection<ResourceSyncEvent> events)An array of events with detail data.ResourceSyncAttempt.Builderevents(Consumer<ResourceSyncEvent.Builder>... events)An array of events with detail data.ResourceSyncAttempt.Builderevents(ResourceSyncEvent... events)An array of events with detail data.default ResourceSyncAttempt.BuilderinitialRevision(Consumer<Revision.Builder> initialRevision)Detail data for the initial repository commit, path and push.ResourceSyncAttempt.BuilderinitialRevision(Revision initialRevision)Detail data for the initial repository commit, path and push.ResourceSyncAttempt.BuilderstartedAt(Instant startedAt)The time when the sync attempt started.ResourceSyncAttempt.Builderstatus(String status)The status of the sync attempt.ResourceSyncAttempt.Builderstatus(ResourceSyncStatus status)The status of the sync attempt.ResourceSyncAttempt.Buildertarget(String target)The resource that is synced to.default ResourceSyncAttempt.BuildertargetRevision(Consumer<Revision.Builder> targetRevision)Detail data for the target revision.ResourceSyncAttempt.BuildertargetRevision(Revision targetRevision)Detail data for the target revision.-
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, sdkFields
-
-
-
-
Method Detail
-
events
ResourceSyncAttempt.Builder events(Collection<ResourceSyncEvent> events)
An array of events with detail data.
- Parameters:
events- An array of events with detail data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
events
ResourceSyncAttempt.Builder events(ResourceSyncEvent... events)
An array of events with detail data.
- Parameters:
events- An array of events with detail data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
events
ResourceSyncAttempt.Builder events(Consumer<ResourceSyncEvent.Builder>... events)
An array of events with detail data.
This is a convenience method that creates an instance of theResourceSyncEvent.Builderavoiding the need to create one manually viaResourceSyncEvent.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 onResourceSyncEvent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#events(java.util.Collection)
-
initialRevision
ResourceSyncAttempt.Builder initialRevision(Revision initialRevision)
Detail data for the initial repository commit, path and push.
- Parameters:
initialRevision- Detail data for the initial repository commit, path and push.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
initialRevision
default ResourceSyncAttempt.Builder initialRevision(Consumer<Revision.Builder> initialRevision)
Detail data for the initial repository commit, path and push.
This is a convenience method that creates an instance of theRevision.Builderavoiding the need to create one manually viaRevision.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinitialRevision(Revision).- Parameters:
initialRevision- a consumer that will call methods onRevision.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
initialRevision(Revision)
-
startedAt
ResourceSyncAttempt.Builder startedAt(Instant startedAt)
The time when the sync attempt started.
- Parameters:
startedAt- The time when the sync attempt started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
ResourceSyncAttempt.Builder status(String status)
The status of the sync attempt.
- Parameters:
status- The status of the sync attempt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceSyncStatus,ResourceSyncStatus
-
status
ResourceSyncAttempt.Builder status(ResourceSyncStatus status)
The status of the sync attempt.
- Parameters:
status- The status of the sync attempt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceSyncStatus,ResourceSyncStatus
-
target
ResourceSyncAttempt.Builder target(String target)
The resource that is synced to.
- Parameters:
target- The resource that is synced to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetRevision
ResourceSyncAttempt.Builder targetRevision(Revision targetRevision)
Detail data for the target revision.
- Parameters:
targetRevision- Detail data for the target revision.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetRevision
default ResourceSyncAttempt.Builder targetRevision(Consumer<Revision.Builder> targetRevision)
Detail data for the target revision.
This is a convenience method that creates an instance of theRevision.Builderavoiding the need to create one manually viaRevision.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totargetRevision(Revision).- Parameters:
targetRevision- a consumer that will call methods onRevision.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
targetRevision(Revision)
-
-