Interface DescribeTrailsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudTrailResponse.Builder
,CopyableBuilder<DescribeTrailsResponse.Builder,
,DescribeTrailsResponse> SdkBuilder<DescribeTrailsResponse.Builder,
,DescribeTrailsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribeTrailsResponse
-
Method Summary
Modifier and TypeMethodDescriptiontrailList
(Collection<Trail> trailList) The list of trail objects.trailList
(Consumer<Trail.Builder>... trailList) The list of trail objects.The list of trail objects.Methods inherited from interface software.amazon.awssdk.services.cloudtrail.model.CloudTrailResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
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
andSNSTopicARN
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
andSNSTopicARN
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
andSNSTopicARN
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
andSNSTopicARN
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,
This is a convenience method that creates an instance of theSNSTopicName
andSNSTopicARN
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.Trail.Builder
avoiding the need to create one manually viaTrail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totrailList(List<Trail>)
.- Parameters:
trailList
- a consumer that will call methods onTrail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-