Interface Archive.Builder

    • Method Detail

      • archiveName

        Archive.Builder archiveName​(String archiveName)

        The name of the archive.

        Parameters:
        archiveName - The name of the archive.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • eventSourceArn

        Archive.Builder eventSourceArn​(String eventSourceArn)

        The ARN of the event bus associated with the archive. Only events from this event bus are sent to the archive.

        Parameters:
        eventSourceArn - The ARN of the event bus associated with the archive. Only events from this event bus are sent to the archive.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • state

        Archive.Builder state​(String state)

        The current state of the archive.

        Parameters:
        state - The current state of the archive.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ArchiveState, ArchiveState
      • state

        Archive.Builder state​(ArchiveState state)

        The current state of the archive.

        Parameters:
        state - The current state of the archive.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ArchiveState, ArchiveState
      • stateReason

        Archive.Builder stateReason​(String stateReason)

        A description for the reason that the archive is in the current state.

        Parameters:
        stateReason - A description for the reason that the archive is in the current state.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • retentionDays

        Archive.Builder retentionDays​(Integer retentionDays)

        The number of days to retain events in the archive before they are deleted.

        Parameters:
        retentionDays - The number of days to retain events in the archive before they are deleted.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sizeBytes

        Archive.Builder sizeBytes​(Long sizeBytes)

        The size of the archive, in bytes.

        Parameters:
        sizeBytes - The size of the archive, in bytes.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • eventCount

        Archive.Builder eventCount​(Long eventCount)

        The number of events in the archive.

        Parameters:
        eventCount - The number of events in the archive.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • creationTime

        Archive.Builder creationTime​(Instant creationTime)

        The time stamp for the time that the archive was created.

        Parameters:
        creationTime - The time stamp for the time that the archive was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.