Interface Event.Builder

    • Method Detail

      • eventId

        Event.Builder eventId​(String eventId)

        The CloudTrail ID of the event returned.

        Parameters:
        eventId - The CloudTrail ID of the event returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • eventName

        Event.Builder eventName​(String eventName)

        The name of the event returned.

        Parameters:
        eventName - The name of the event returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • readOnly

        Event.Builder readOnly​(String readOnly)

        Information about whether the event is a write event or a read event.

        Parameters:
        readOnly - Information about whether the event is a write event or a read event.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • accessKeyId

        Event.Builder accessKeyId​(String accessKeyId)

        The Amazon Web Services access key ID that was used to sign the request. If the request was made with temporary security credentials, this is the access key ID of the temporary credentials.

        Parameters:
        accessKeyId - The Amazon Web Services access key ID that was used to sign the request. If the request was made with temporary security credentials, this is the access key ID of the temporary credentials.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • eventTime

        Event.Builder eventTime​(Instant eventTime)

        The date and time of the event returned.

        Parameters:
        eventTime - The date and time of the event returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • eventSource

        Event.Builder eventSource​(String eventSource)

        The Amazon Web Services service to which the request was made.

        Parameters:
        eventSource - The Amazon Web Services service to which the request was made.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • username

        Event.Builder username​(String username)

        A user name or role name of the requester that called the API in the event returned.

        Parameters:
        username - A user name or role name of the requester that called the API in the event returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resources

        Event.Builder resources​(Collection<Resource> resources)

        A list of resources referenced by the event returned.

        Parameters:
        resources - A list of resources referenced by the event returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resources

        Event.Builder resources​(Resource... resources)

        A list of resources referenced by the event returned.

        Parameters:
        resources - A list of resources referenced by the event returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resources

        Event.Builder resources​(Consumer<Resource.Builder>... resources)

        A list of resources referenced by the event returned.

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

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

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

        Event.Builder cloudTrailEvent​(String cloudTrailEvent)

        A JSON string that contains a representation of the event returned.

        Parameters:
        cloudTrailEvent - A JSON string that contains a representation of the event returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.