Interface AnomalyInstance.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AnomalyInstance.Builder,AnomalyInstance>,SdkBuilder<AnomalyInstance.Builder,AnomalyInstance>,SdkPojo
- Enclosing class:
- AnomalyInstance
public static interface AnomalyInstance.Builder extends SdkPojo, CopyableBuilder<AnomalyInstance.Builder,AnomalyInstance>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AnomalyInstance.BuilderendTime(Instant endTime)The end time of the period during which the metric is flagged as anomalous.AnomalyInstance.Builderid(String id)The universally unique identifier (UUID) of an instance of an anomaly in a metric.AnomalyInstance.BuilderstartTime(Instant startTime)The start time of the period during which the metric is flagged as anomalous.default AnomalyInstance.BuilderuserFeedback(Consumer<UserFeedback.Builder> userFeedback)Feedback type on a specific instance of anomaly submitted by the user.AnomalyInstance.BuilderuserFeedback(UserFeedback userFeedback)Feedback type on a specific instance of anomaly submitted by the user.-
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
-
endTime
AnomalyInstance.Builder endTime(Instant endTime)
The end time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
- Parameters:
endTime- The end time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
AnomalyInstance.Builder id(String id)
The universally unique identifier (UUID) of an instance of an anomaly in a metric.
- Parameters:
id- The universally unique identifier (UUID) of an instance of an anomaly in a metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTime
AnomalyInstance.Builder startTime(Instant startTime)
The start time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
- Parameters:
startTime- The start time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userFeedback
AnomalyInstance.Builder userFeedback(UserFeedback userFeedback)
Feedback type on a specific instance of anomaly submitted by the user.
- Parameters:
userFeedback- Feedback type on a specific instance of anomaly submitted by the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userFeedback
default AnomalyInstance.Builder userFeedback(Consumer<UserFeedback.Builder> userFeedback)
Feedback type on a specific instance of anomaly submitted by the user.
This is a convenience method that creates an instance of theUserFeedback.Builderavoiding the need to create one manually viaUserFeedback.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed touserFeedback(UserFeedback).- Parameters:
userFeedback- a consumer that will call methods onUserFeedback.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
userFeedback(UserFeedback)
-
-