Interface ListAnomaliesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudWatchLogsResponse.Builder
,CopyableBuilder<ListAnomaliesResponse.Builder,
,ListAnomaliesResponse> SdkBuilder<ListAnomaliesResponse.Builder,
,ListAnomaliesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListAnomaliesResponse
public static interface ListAnomaliesResponse.Builder
extends CloudWatchLogsResponse.Builder, SdkPojo, CopyableBuilder<ListAnomaliesResponse.Builder,ListAnomaliesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionanomalies
(Collection<Anomaly> anomalies) An array of structures, where each structure contains information about one anomaly that a log anomaly detector has found.anomalies
(Consumer<Anomaly.Builder>... anomalies) An array of structures, where each structure contains information about one anomaly that a log anomaly detector has found.An array of structures, where each structure contains information about one anomaly that a log anomaly detector has found.Sets the value of the NextToken property for this object.Methods inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.CloudWatchLogsResponse.Builder
build, responseMetadata, responseMetadata
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, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
anomalies
An array of structures, where each structure contains information about one anomaly that a log anomaly detector has found.
- Parameters:
anomalies
- An array of structures, where each structure contains information about one anomaly that a log anomaly detector has found.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalies
An array of structures, where each structure contains information about one anomaly that a log anomaly detector has found.
- Parameters:
anomalies
- An array of structures, where each structure contains information about one anomaly that a log anomaly detector has found.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalies
An array of structures, where each structure contains information about one anomaly that a log anomaly detector has found.
This is a convenience method that creates an instance of theAnomaly.Builder
avoiding the need to create one manually viaAnomaly.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toanomalies(List<Anomaly>)
.- Parameters:
anomalies
- a consumer that will call methods onAnomaly.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
Sets the value of the NextToken property for this object.- Parameters:
nextToken
- The new value for the NextToken property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-