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, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods 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,
SNSTopicNameandSNSTopicARNare only returned in results if a trail is configured to send SNS notifications. Similarly,KMSKeyIdonly 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,SNSTopicNameandSNSTopicARNare only returned in results if a trail is configured to send SNS notifications. Similarly,KMSKeyIdonly 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,
SNSTopicNameandSNSTopicARNare only returned in results if a trail is configured to send SNS notifications. Similarly,KMSKeyIdonly 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,SNSTopicNameandSNSTopicARNare only returned in results if a trail is configured to send SNS notifications. Similarly,KMSKeyIdonly 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 theSNSTopicNameandSNSTopicARNare only returned in results if a trail is configured to send SNS notifications. Similarly,KMSKeyIdonly appears in results if a trail's log files are encrypted with KMS customer managed keys.Trail.Builderavoiding the need to create one manually viaTrail.builder().When the
Consumercompletes,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:
-