Interface Metrics.Builder

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

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

    • status

      Metrics.Builder status(String status)

      Specifies whether replication metrics are enabled.

      Parameters:
      status - Specifies whether replication metrics are enabled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      Specifies whether replication metrics are enabled.

      Parameters:
      status - Specifies whether replication metrics are enabled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • eventThreshold

      Metrics.Builder eventThreshold(ReplicationTimeValue eventThreshold)

      A container that specifies the time threshold for emitting the s3:Replication:OperationMissedThreshold event.

      This is not supported by Amazon S3 on Outposts buckets.

      Parameters:
      eventThreshold - A container that specifies the time threshold for emitting the s3:Replication:OperationMissedThreshold event.

      This is not supported by Amazon S3 on Outposts buckets.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • eventThreshold

      default Metrics.Builder eventThreshold(Consumer<ReplicationTimeValue.Builder> eventThreshold)

      A container that specifies the time threshold for emitting the s3:Replication:OperationMissedThreshold event.

      This is not supported by Amazon S3 on Outposts buckets.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to eventThreshold(ReplicationTimeValue).

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