Interface PutAuditEventsRequest.Builder

    • Method Detail

      • auditEvents

        PutAuditEventsRequest.Builder auditEvents​(Collection<AuditEvent> auditEvents)

        The JSON payload of events that you want to ingest. You can also point to the JSON event payload in a file.

        Parameters:
        auditEvents - The JSON payload of events that you want to ingest. You can also point to the JSON event payload in a file.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • auditEvents

        PutAuditEventsRequest.Builder auditEvents​(AuditEvent... auditEvents)

        The JSON payload of events that you want to ingest. You can also point to the JSON event payload in a file.

        Parameters:
        auditEvents - The JSON payload of events that you want to ingest. You can also point to the JSON event payload in a file.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • auditEvents

        PutAuditEventsRequest.Builder auditEvents​(Consumer<AuditEvent.Builder>... auditEvents)

        The JSON payload of events that you want to ingest. You can also point to the JSON event payload in a file.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #auditEvents(List).

        Parameters:
        auditEvents - a consumer that will call methods on AuditEvent.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #auditEvents(java.util.Collection)
      • channelArn

        PutAuditEventsRequest.Builder channelArn​(String channelArn)

        The ARN or ID (the ARN suffix) of a channel.

        Parameters:
        channelArn - The ARN or ID (the ARN suffix) of a channel.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • externalId

        PutAuditEventsRequest.Builder externalId​(String externalId)

        A unique identifier that is conditionally required when the channel's resource policy includes an external ID. This value can be any string, such as a passphrase or account number.

        Parameters:
        externalId - A unique identifier that is conditionally required when the channel's resource policy includes an external ID. This value can be any string, such as a passphrase or account number.
        Returns:
        Returns a reference to this object so that method calls can be chained together.