Interface CloudTrailProperties.Builder

All Superinterfaces:
Buildable, CopyableBuilder<CloudTrailProperties.Builder,CloudTrailProperties>, SdkBuilder<CloudTrailProperties.Builder,CloudTrailProperties>, SdkPojo
Enclosing class:
CloudTrailProperties

public static interface CloudTrailProperties.Builder extends SdkPojo, CopyableBuilder<CloudTrailProperties.Builder,CloudTrailProperties>
  • Method Details

    • trailProperties

      CloudTrailProperties.Builder trailProperties(Collection<TrailProperties> trailProperties)

      A TrailProperties object that contains settings for trail properties.

      Parameters:
      trailProperties - A TrailProperties object that contains settings for trail properties.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trailProperties

      CloudTrailProperties.Builder trailProperties(TrailProperties... trailProperties)

      A TrailProperties object that contains settings for trail properties.

      Parameters:
      trailProperties - A TrailProperties object that contains settings for trail properties.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trailProperties

      CloudTrailProperties.Builder trailProperties(Consumer<TrailProperties.Builder>... trailProperties)

      A TrailProperties object that contains settings for trail properties.

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

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

      Parameters:
      trailProperties - a consumer that will call methods on TrailProperties.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • startTime

      CloudTrailProperties.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.