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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DescribeTrailsResponse.BuildertrailList(Collection<Trail> trailList)The list of trail objects.DescribeTrailsResponse.BuildertrailList(Consumer<Trail.Builder>... trailList)The list of trail objects.DescribeTrailsResponse.BuildertrailList(Trail... trailList)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 Detail
-
trailList
DescribeTrailsResponse.Builder trailList(Collection<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,
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
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,
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
DescribeTrailsResponse.Builder trailList(Consumer<Trail.Builder>... 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 to#trailList(List.) - 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:
#trailList(java.util.Collection)
-
-