Interface ListLogAnomalyDetectorsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudWatchLogsResponse.Builder,CopyableBuilder<ListLogAnomalyDetectorsResponse.Builder,,ListLogAnomalyDetectorsResponse> SdkBuilder<ListLogAnomalyDetectorsResponse.Builder,,ListLogAnomalyDetectorsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListLogAnomalyDetectorsResponse
public static interface ListLogAnomalyDetectorsResponse.Builder
extends CloudWatchLogsResponse.Builder, SdkPojo, CopyableBuilder<ListLogAnomalyDetectorsResponse.Builder,ListLogAnomalyDetectorsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionanomalyDetectors(Collection<AnomalyDetector> anomalyDetectors) An array of structures, where each structure in the array contains information about one anomaly detector.anomalyDetectors(Consumer<AnomalyDetector.Builder>... anomalyDetectors) An array of structures, where each structure in the array contains information about one anomaly detector.anomalyDetectors(AnomalyDetector... anomalyDetectors) An array of structures, where each structure in the array contains information about one anomaly detector.Sets the value of the NextToken property for this object.Methods inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.CloudWatchLogsResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
anomalyDetectors
ListLogAnomalyDetectorsResponse.Builder anomalyDetectors(Collection<AnomalyDetector> anomalyDetectors) An array of structures, where each structure in the array contains information about one anomaly detector.
- Parameters:
anomalyDetectors- An array of structures, where each structure in the array contains information about one anomaly detector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalyDetectors
An array of structures, where each structure in the array contains information about one anomaly detector.
- Parameters:
anomalyDetectors- An array of structures, where each structure in the array contains information about one anomaly detector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalyDetectors
ListLogAnomalyDetectorsResponse.Builder anomalyDetectors(Consumer<AnomalyDetector.Builder>... anomalyDetectors) An array of structures, where each structure in the array contains information about one anomaly detector.
This is a convenience method that creates an instance of theAnomalyDetector.Builderavoiding the need to create one manually viaAnomalyDetector.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toanomalyDetectors(List<AnomalyDetector>).- Parameters:
anomalyDetectors- a consumer that will call methods onAnomalyDetector.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.
-