Interface DescribeTrailsResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CloudTrailResponse.Builder, CopyableBuilder<DescribeTrailsResponse.Builder,DescribeTrailsResponse>, SdkBuilder<DescribeTrailsResponse.Builder,DescribeTrailsResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
DescribeTrailsResponse

public static interface DescribeTrailsResponse.Builder extends CloudTrailResponse.Builder, SdkPojo, CopyableBuilder<DescribeTrailsResponse.Builder,DescribeTrailsResponse>
  • Method Details

    • trailList

      The list of trail objects. Trail objects with string values are only returned if values for the objects exist in a trail's configuration. For example, SNSTopicName and SNSTopicARN are only returned in results if a trail is configured to send SNS notifications. Similarly, KMSKeyId only appears in results if a trail's log files are encrypted with KMS customer managed keys.

      Parameters:
      trailList - The list of trail objects. Trail objects with string values are only returned if values for the objects exist in a trail's configuration. For example, SNSTopicName and SNSTopicARN are only returned in results if a trail is configured to send SNS notifications. Similarly, KMSKeyId only appears in results if a trail's log files are encrypted with KMS customer managed keys.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trailList

      DescribeTrailsResponse.Builder trailList(Trail... trailList)

      The list of trail objects. Trail objects with string values are only returned if values for the objects exist in a trail's configuration. For example, SNSTopicName and SNSTopicARN are only returned in results if a trail is configured to send SNS notifications. Similarly, KMSKeyId only appears in results if a trail's log files are encrypted with KMS customer managed keys.

      Parameters:
      trailList - The list of trail objects. Trail objects with string values are only returned if values for the objects exist in a trail's configuration. For example, SNSTopicName and SNSTopicARN are only returned in results if a trail is configured to send SNS notifications. Similarly, KMSKeyId only appears in results if a trail's log files are encrypted with KMS customer managed keys.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trailList

      The list of trail objects. Trail objects with string values are only returned if values for the objects exist in a trail's configuration. For example, SNSTopicName and SNSTopicARN are only returned in results if a trail is configured to send SNS notifications. Similarly, KMSKeyId only appears in results if a trail's log files are encrypted with KMS customer managed keys.

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

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

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