Interface DescribeAnomalyDetectorsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchRequest.Builder,CopyableBuilder<DescribeAnomalyDetectorsRequest.Builder,,DescribeAnomalyDetectorsRequest> SdkBuilder<DescribeAnomalyDetectorsRequest.Builder,,DescribeAnomalyDetectorsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
DescribeAnomalyDetectorsRequest
-
Method Summary
Modifier and TypeMethodDescriptionanomalyDetectorTypes(Collection<AnomalyDetectorType> anomalyDetectorTypes) The anomaly detector types to request when usingDescribeAnomalyDetectorsInput.anomalyDetectorTypes(AnomalyDetectorType... anomalyDetectorTypes) The anomaly detector types to request when usingDescribeAnomalyDetectorsInput.anomalyDetectorTypesWithStrings(String... anomalyDetectorTypes) The anomaly detector types to request when usingDescribeAnomalyDetectorsInput.anomalyDetectorTypesWithStrings(Collection<String> anomalyDetectorTypes) The anomaly detector types to request when usingDescribeAnomalyDetectorsInput.dimensions(Collection<Dimension> dimensions) Limits the results to only the anomaly detection models that are associated with the specified metric dimensions.dimensions(Consumer<Dimension.Builder>... dimensions) Limits the results to only the anomaly detection models that are associated with the specified metric dimensions.dimensions(Dimension... dimensions) Limits the results to only the anomaly detection models that are associated with the specified metric dimensions.maxResults(Integer maxResults) The maximum number of results to return in one operation.metricName(String metricName) Limits the results to only the anomaly detection models that are associated with the specified metric name.Limits the results to only the anomaly detection models that are associated with the specified namespace.Use the token returned by the previous operation to request the next page of results.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cloudwatch.model.CloudWatchRequest.Builder
buildMethods 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, sdkFields
-
Method Details
-
nextToken
Use the token returned by the previous operation to request the next page of results.
- Parameters:
nextToken- Use the token returned by the previous operation to request the next page of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The maximum number of results to return in one operation. The maximum value that you can specify is 100.
To retrieve the remaining results, make another call with the returned
NextTokenvalue.- Parameters:
maxResults- The maximum number of results to return in one operation. The maximum value that you can specify is 100.To retrieve the remaining results, make another call with the returned
NextTokenvalue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespace
Limits the results to only the anomaly detection models that are associated with the specified namespace.
- Parameters:
namespace- Limits the results to only the anomaly detection models that are associated with the specified namespace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricName
Limits the results to only the anomaly detection models that are associated with the specified metric name. If there are multiple metrics with this name in different namespaces that have anomaly detection models, they're all returned.
- Parameters:
metricName- Limits the results to only the anomaly detection models that are associated with the specified metric name. If there are multiple metrics with this name in different namespaces that have anomaly detection models, they're all returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
Limits the results to only the anomaly detection models that are associated with the specified metric dimensions. If there are multiple metrics that have these dimensions and have anomaly detection models associated, they're all returned.
- Parameters:
dimensions- Limits the results to only the anomaly detection models that are associated with the specified metric dimensions. If there are multiple metrics that have these dimensions and have anomaly detection models associated, they're all returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
Limits the results to only the anomaly detection models that are associated with the specified metric dimensions. If there are multiple metrics that have these dimensions and have anomaly detection models associated, they're all returned.
- Parameters:
dimensions- Limits the results to only the anomaly detection models that are associated with the specified metric dimensions. If there are multiple metrics that have these dimensions and have anomaly detection models associated, they're all returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
Limits the results to only the anomaly detection models that are associated with the specified metric dimensions. If there are multiple metrics that have these dimensions and have anomaly detection models associated, they're all returned.
This is a convenience method that creates an instance of theDimension.Builderavoiding the need to create one manually viaDimension.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todimensions(List<Dimension>).- Parameters:
dimensions- a consumer that will call methods onDimension.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
anomalyDetectorTypesWithStrings
DescribeAnomalyDetectorsRequest.Builder anomalyDetectorTypesWithStrings(Collection<String> anomalyDetectorTypes) The anomaly detector types to request when using
DescribeAnomalyDetectorsInput. If empty, defaults toSINGLE_METRIC.- Parameters:
anomalyDetectorTypes- The anomaly detector types to request when usingDescribeAnomalyDetectorsInput. If empty, defaults toSINGLE_METRIC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalyDetectorTypesWithStrings
DescribeAnomalyDetectorsRequest.Builder anomalyDetectorTypesWithStrings(String... anomalyDetectorTypes) The anomaly detector types to request when using
DescribeAnomalyDetectorsInput. If empty, defaults toSINGLE_METRIC.- Parameters:
anomalyDetectorTypes- The anomaly detector types to request when usingDescribeAnomalyDetectorsInput. If empty, defaults toSINGLE_METRIC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalyDetectorTypes
DescribeAnomalyDetectorsRequest.Builder anomalyDetectorTypes(Collection<AnomalyDetectorType> anomalyDetectorTypes) The anomaly detector types to request when using
DescribeAnomalyDetectorsInput. If empty, defaults toSINGLE_METRIC.- Parameters:
anomalyDetectorTypes- The anomaly detector types to request when usingDescribeAnomalyDetectorsInput. If empty, defaults toSINGLE_METRIC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalyDetectorTypes
DescribeAnomalyDetectorsRequest.Builder anomalyDetectorTypes(AnomalyDetectorType... anomalyDetectorTypes) The anomaly detector types to request when using
DescribeAnomalyDetectorsInput. If empty, defaults toSINGLE_METRIC.- Parameters:
anomalyDetectorTypes- The anomaly detector types to request when usingDescribeAnomalyDetectorsInput. If empty, defaults toSINGLE_METRIC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
DescribeAnomalyDetectorsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
DescribeAnomalyDetectorsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-