Interface ResourceSyncAttempt.Builder

  • Method Details

    • 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

      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

      The events related to a resource sync attempt.

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

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

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

      ResourceSyncAttempt.Builder initialRevision(Revision initialRevision)

      The current state of the resource as defined in the resource's config-file in the linked repository.

      Parameters:
      initialRevision - The current state of the resource as defined in the resource's config-file in 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 config-file in the linked repository.

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

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

      Parameters:
      initialRevision - a consumer that will call methods on Revision.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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:
    • 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:
    • targetRevision

      ResourceSyncAttempt.Builder targetRevision(Revision targetRevision)

      The desired state of the resource as defined in the resource's config-file in 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's config-file in 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 config-file in the linked repository. Git sync attempts to update the resource to this state.

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

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

      Parameters:
      targetRevision - a consumer that will call methods on Revision.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.