Interface Metrics.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Metrics.Builder,Metrics>,SdkBuilder<Metrics.Builder,Metrics>,SdkPojo
- Enclosing class:
- Metrics
@Mutable @NotThreadSafe public static interface Metrics.Builder extends SdkPojo, CopyableBuilder<Metrics.Builder,Metrics>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Metrics.BuildereventThreshold(Consumer<ReplicationTimeValue.Builder> eventThreshold)A container specifying the time threshold for emitting thes3:Replication:OperationMissedThresholdevent.Metrics.BuildereventThreshold(ReplicationTimeValue eventThreshold)A container specifying the time threshold for emitting thes3:Replication:OperationMissedThresholdevent.Metrics.Builderstatus(String status)Specifies whether the replication metrics are enabled.Metrics.Builderstatus(MetricsStatus status)Specifies whether the replication metrics are enabled.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
status
Metrics.Builder status(String status)
Specifies whether the replication metrics are enabled.
- Parameters:
status- Specifies whether the replication metrics are enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MetricsStatus,MetricsStatus
-
status
Metrics.Builder status(MetricsStatus status)
Specifies whether the replication metrics are enabled.
- Parameters:
status- Specifies whether the replication metrics are enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MetricsStatus,MetricsStatus
-
eventThreshold
Metrics.Builder eventThreshold(ReplicationTimeValue eventThreshold)
A container specifying the time threshold for emitting the
s3:Replication:OperationMissedThresholdevent.- Parameters:
eventThreshold- A container specifying the time threshold for emitting thes3:Replication:OperationMissedThresholdevent.- 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 specifying the time threshold for emitting the
This is a convenience method that creates an instance of thes3:Replication:OperationMissedThresholdevent.ReplicationTimeValue.Builderavoiding the need to create one manually viaReplicationTimeValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toeventThreshold(ReplicationTimeValue).- Parameters:
eventThreshold- a consumer that will call methods onReplicationTimeValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
eventThreshold(ReplicationTimeValue)
-
-