Interface CloudTrailDetails.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CloudTrailDetails.Builder,CloudTrailDetails>,SdkBuilder<CloudTrailDetails.Builder,CloudTrailDetails>,SdkPojo
- Enclosing class:
- CloudTrailDetails
public static interface CloudTrailDetails.Builder extends SdkPojo, CopyableBuilder<CloudTrailDetails.Builder,CloudTrailDetails>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CloudTrailDetails.BuilderaccessRole(String accessRole)The ARN of the service role that IAM Access Analyzer uses to access your CloudTrail trail and service last accessed information.CloudTrailDetails.BuilderendTime(Instant endTime)The end of the time range for which IAM Access Analyzer reviews your CloudTrail events.CloudTrailDetails.BuilderstartTime(Instant startTime)The start of the time range for which IAM Access Analyzer reviews your CloudTrail events.CloudTrailDetails.Buildertrails(Collection<Trail> trails)ATrailobject that contains settings for a trail.CloudTrailDetails.Buildertrails(Consumer<Trail.Builder>... trails)ATrailobject that contains settings for a trail.CloudTrailDetails.Buildertrails(Trail... trails)ATrailobject 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 Detail
-
trails
CloudTrailDetails.Builder trails(Collection<Trail> trails)
A
Trailobject that contains settings for a trail.- Parameters:
trails- ATrailobject that contains settings for a trail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trails
CloudTrailDetails.Builder trails(Trail... trails)
A
Trailobject that contains settings for a trail.- Parameters:
trails- ATrailobject that contains settings for a trail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trails
CloudTrailDetails.Builder trails(Consumer<Trail.Builder>... trails)
A
This is a convenience method that creates an instance of theTrailobject that contains settings for a trail.Trail.Builderavoiding the need to create one manually viaTrail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#trails(List.) - 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:
#trails(java.util.Collection)
-
accessRole
CloudTrailDetails.Builder accessRole(String 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
CloudTrailDetails.Builder startTime(Instant 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
CloudTrailDetails.Builder endTime(Instant 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.
-
-