Interface DryRunResult.Builder

  • Method Details

    • totalMatchedLogGroups

      DryRunResult.Builder totalMatchedLogGroups(Integer totalMatchedLogGroups)

      The number of log groups in the scope of the policy that were analyzed. This value is the sum of increasedRetentionLogGroupCount, decreasedRetentionLogGroupCount, and unchangedRetentionLogGroupCount, and does not include log groups that could not be analyzed.

      Parameters:
      totalMatchedLogGroups - The number of log groups in the scope of the policy that were analyzed. This value is the sum of increasedRetentionLogGroupCount, decreasedRetentionLogGroupCount, and unchangedRetentionLogGroupCount, and does not include log groups that could not be analyzed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • increasedRetentionLogGroupCount

      DryRunResult.Builder increasedRetentionLogGroupCount(Integer increasedRetentionLogGroupCount)

      The number of log groups whose effective retention period would become longer.

      Parameters:
      increasedRetentionLogGroupCount - The number of log groups whose effective retention period would become longer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • decreasedRetentionLogGroupCount

      DryRunResult.Builder decreasedRetentionLogGroupCount(Integer decreasedRetentionLogGroupCount)

      The number of log groups whose effective retention period would become shorter.

      Parameters:
      decreasedRetentionLogGroupCount - The number of log groups whose effective retention period would become shorter.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • unchangedRetentionLogGroupCount

      DryRunResult.Builder unchangedRetentionLogGroupCount(Integer unchangedRetentionLogGroupCount)

      The number of log groups whose effective retention period would not change.

      Parameters:
      unchangedRetentionLogGroupCount - The number of log groups whose effective retention period would not change.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failedAnalysisCount

      DryRunResult.Builder failedAnalysisCount(Integer failedAnalysisCount)

      The number of log groups in the scope of the policy that could not be analyzed. These log groups are not included in totalMatchedLogGroups.

      Parameters:
      failedAnalysisCount - The number of log groups in the scope of the policy that could not be analyzed. These log groups are not included in totalMatchedLogGroups.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • topLogGroupsImpacted

      DryRunResult.Builder topLogGroupsImpacted(Collection<LogGroupImpact> topLogGroupsImpacted)

      Up to 20 log groups in the scope of the policy, sorted by stored bytes in descending order. This list can include log groups whose effective retention period would not change.

      Parameters:
      topLogGroupsImpacted - Up to 20 log groups in the scope of the policy, sorted by stored bytes in descending order. This list can include log groups whose effective retention period would not change.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • topLogGroupsImpacted

      DryRunResult.Builder topLogGroupsImpacted(LogGroupImpact... topLogGroupsImpacted)

      Up to 20 log groups in the scope of the policy, sorted by stored bytes in descending order. This list can include log groups whose effective retention period would not change.

      Parameters:
      topLogGroupsImpacted - Up to 20 log groups in the scope of the policy, sorted by stored bytes in descending order. This list can include log groups whose effective retention period would not change.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • topLogGroupsImpacted

      DryRunResult.Builder topLogGroupsImpacted(Consumer<LogGroupImpact.Builder>... topLogGroupsImpacted)

      Up to 20 log groups in the scope of the policy, sorted by stored bytes in descending order. This list can include log groups whose effective retention period would not change.

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

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

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