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 Details

    • trails

      A Trail object that contains settings for a trail.

      Parameters:
      trails - A Trail object 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 Trail object that contains settings for a trail.

      Parameters:
      trails - A Trail 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.

      This is a convenience method that creates an instance of the Trail.Builder avoiding the need to create one manually via Trail.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to trails(List<Trail>).

      Parameters:
      trails - a consumer that will call methods on Trail.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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.