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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListAnomaliesResponse.Builderanomalies(Collection<Anomaly> anomalies)An array of structures, where each structure contains information about one anomaly that a log anomaly detector has found.ListAnomaliesResponse.Builderanomalies(Consumer<Anomaly.Builder>... anomalies)An array of structures, where each structure contains information about one anomaly that a log anomaly detector has found.ListAnomaliesResponse.Builderanomalies(Anomaly... anomalies)An array of structures, where each structure contains information about one anomaly that a log anomaly detector has found.ListAnomaliesResponse.BuildernextToken(String nextToken)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, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
anomalies
ListAnomaliesResponse.Builder anomalies(Collection<Anomaly> 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
ListAnomaliesResponse.Builder anomalies(Anomaly... 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
ListAnomaliesResponse.Builder anomalies(Consumer<Anomaly.Builder>... 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.Builderavoiding the need to create one manually viaAnomaly.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#anomalies(List.) - 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:
#anomalies(java.util.Collection)
-
nextToken
ListAnomaliesResponse.Builder nextToken(String 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.
-
-