Interface CloudTrailDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CloudTrailDetails.Builder,
,CloudTrailDetails> SdkBuilder<CloudTrailDetails.Builder,
,CloudTrailDetails> SdkPojo
- Enclosing class:
CloudTrailDetails
-
Method Summary
Modifier and TypeMethodDescriptionaccessRole
(String accessRole) The ARN of the service role that IAM Access Analyzer uses to access your CloudTrail trail and service last accessed information.The end of the time range for which IAM Access Analyzer reviews your CloudTrail events.The start of the time range for which IAM Access Analyzer reviews your CloudTrail events.trails
(Collection<Trail> trails) ATrail
object that contains settings for a trail.trails
(Consumer<Trail.Builder>... trails) ATrail
object that contains settings for a trail.ATrail
object that contains settings for a trail.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
-
Method Details
-
trails
A
Trail
object that contains settings for a trail.- Parameters:
trails
- ATrail
object that contains settings for a trail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trails
A
Trail
object that contains settings for a trail.- Parameters:
trails
- ATrail
object that contains settings for a trail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trails
A
This is a convenience method that creates an instance of theTrail
object that contains settings for a trail.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 totrails(List<Trail>)
.- Parameters:
trails
- 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:
-
accessRole
The ARN of the service role that IAM Access Analyzer uses to access your CloudTrail trail and service last accessed information.
- Parameters:
accessRole
- The ARN of the service role that IAM Access Analyzer uses to access your CloudTrail trail and service last accessed information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTime
The start of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a timestamp before this time are not considered to generate a policy.
- Parameters:
startTime
- The start of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a timestamp before this time are not considered to generate a policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTime
The end of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a timestamp after this time are not considered to generate a policy. If this is not included in the request, the default value is the current time.
- Parameters:
endTime
- The end of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a timestamp after this time are not considered to generate a policy. If this is not included in the request, the default value is the current time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-