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)The events related to a resource sync attempt.ResourceSyncAttempt.Builderevents(Consumer<ResourceSyncEvent.Builder>... events)The events related to a resource sync attempt.ResourceSyncAttempt.Builderevents(ResourceSyncEvent... events)The events related to a resource sync attempt.default ResourceSyncAttempt.BuilderinitialRevision(Consumer<Revision.Builder> initialRevision)The current state of the resource as defined in the resource'sconfig-filein the linked repository.ResourceSyncAttempt.BuilderinitialRevision(Revision initialRevision)The current state of the resource as defined in the resource'sconfig-filein the linked repository.ResourceSyncAttempt.BuilderstartedAt(Instant startedAt)The start time for a resource sync attempt.ResourceSyncAttempt.Builderstatus(String status)The status for a resource sync attempt.ResourceSyncAttempt.Builderstatus(ResourceSyncStatus status)The status for a resource sync attempt.ResourceSyncAttempt.Buildertarget(String target)The name of the Amazon Web Services resource that is attempted to be synchronized.default ResourceSyncAttempt.BuildertargetRevision(Consumer<Revision.Builder> targetRevision)The desired state of the resource as defined in the resource'sconfig-filein the linked repository.ResourceSyncAttempt.BuildertargetRevision(Revision targetRevision)The desired state of the resource as defined in the resource'sconfig-filein the linked repository.-
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)
The events related to a resource sync attempt.
- Parameters:
events- The events related to a resource sync attempt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
events
ResourceSyncAttempt.Builder events(ResourceSyncEvent... events)
The events related to a resource sync attempt.
- Parameters:
events- The events related to a resource sync attempt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
events
ResourceSyncAttempt.Builder events(Consumer<ResourceSyncEvent.Builder>... events)
The events related to a resource sync attempt.
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)
The current state of the resource as defined in the resource's
config-filein the linked repository.- Parameters:
initialRevision- The current state of the resource as defined in the resource'sconfig-filein the linked repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
initialRevision
default ResourceSyncAttempt.Builder initialRevision(Consumer<Revision.Builder> initialRevision)
The current state of the resource as defined in the resource's
This is a convenience method that creates an instance of theconfig-filein the linked repository.Revision.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 start time for a resource sync attempt.
- Parameters:
startedAt- The start time for a resource sync attempt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
ResourceSyncAttempt.Builder status(String status)
The status for a resource sync attempt. The follow are valid statuses:
-
SYNC-INITIATED - A resource sync attempt has been created and will begin soon.
-
SYNCING - Syncing has started and work is being done to reconcile state.
-
SYNCED - Syncing has completed successfully.
-
SYNC_FAILED - A resource sync attempt has failed.
- Parameters:
status- The status for a resource sync attempt. The follow are valid statuses:-
SYNC-INITIATED - A resource sync attempt has been created and will begin soon.
-
SYNCING - Syncing has started and work is being done to reconcile state.
-
SYNCED - Syncing has completed successfully.
-
SYNC_FAILED - A resource sync attempt has failed.
-
- 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 for a resource sync attempt. The follow are valid statuses:
-
SYNC-INITIATED - A resource sync attempt has been created and will begin soon.
-
SYNCING - Syncing has started and work is being done to reconcile state.
-
SYNCED - Syncing has completed successfully.
-
SYNC_FAILED - A resource sync attempt has failed.
- Parameters:
status- The status for a resource sync attempt. The follow are valid statuses:-
SYNC-INITIATED - A resource sync attempt has been created and will begin soon.
-
SYNCING - Syncing has started and work is being done to reconcile state.
-
SYNCED - Syncing has completed successfully.
-
SYNC_FAILED - A resource sync attempt has failed.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceSyncStatus,ResourceSyncStatus
-
-
targetRevision
ResourceSyncAttempt.Builder targetRevision(Revision targetRevision)
The desired state of the resource as defined in the resource's
config-filein the linked repository. Git sync attempts to update the resource to this state.- Parameters:
targetRevision- The desired state of the resource as defined in the resource'sconfig-filein the linked repository. Git sync attempts to update the resource to this state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetRevision
default ResourceSyncAttempt.Builder targetRevision(Consumer<Revision.Builder> targetRevision)
The desired state of the resource as defined in the resource's
This is a convenience method that creates an instance of theconfig-filein the linked repository. Git sync attempts to update the resource to this state.Revision.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)
-
target
ResourceSyncAttempt.Builder target(String target)
The name of the Amazon Web Services resource that is attempted to be synchronized.
- Parameters:
target- The name of the Amazon Web Services resource that is attempted to be synchronized.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-