software.amazon.awssdk.services.lookoutmetrics.LookoutMetricsAsyncClient Maven / Gradle / Ivy
Show all versions of lookoutmetrics Show documentation
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.lookoutmetrics;
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.awscore.AwsClient;
import software.amazon.awssdk.services.lookoutmetrics.model.ActivateAnomalyDetectorRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.ActivateAnomalyDetectorResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.BackTestAnomalyDetectorRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.BackTestAnomalyDetectorResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.CreateAlertRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.CreateAlertResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.CreateAnomalyDetectorRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.CreateAnomalyDetectorResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.CreateMetricSetRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.CreateMetricSetResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.DeactivateAnomalyDetectorRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.DeactivateAnomalyDetectorResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.DeleteAlertRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.DeleteAlertResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.DeleteAnomalyDetectorRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.DeleteAnomalyDetectorResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.DescribeAlertRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.DescribeAlertResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectorRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectorResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.DescribeMetricSetRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.DescribeMetricSetResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.DetectMetricSetConfigRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.DetectMetricSetConfigResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.GetAnomalyGroupRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.GetAnomalyGroupResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.GetDataQualityMetricsRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.GetDataQualityMetricsResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.GetSampleDataRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.GetSampleDataResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.ListTagsForResourceRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.ListTagsForResourceResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.PutFeedbackRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.PutFeedbackResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.TagResourceRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.TagResourceResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.UntagResourceRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.UntagResourceResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.UpdateAlertRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.UpdateAlertResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.UpdateAnomalyDetectorRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.UpdateAnomalyDetectorResponse;
import software.amazon.awssdk.services.lookoutmetrics.model.UpdateMetricSetRequest;
import software.amazon.awssdk.services.lookoutmetrics.model.UpdateMetricSetResponse;
import software.amazon.awssdk.services.lookoutmetrics.paginators.DescribeAnomalyDetectionExecutionsPublisher;
import software.amazon.awssdk.services.lookoutmetrics.paginators.GetFeedbackPublisher;
import software.amazon.awssdk.services.lookoutmetrics.paginators.ListAlertsPublisher;
import software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyDetectorsPublisher;
import software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupRelatedMetricsPublisher;
import software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupSummariesPublisher;
import software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupTimeSeriesPublisher;
import software.amazon.awssdk.services.lookoutmetrics.paginators.ListMetricSetsPublisher;
/**
* Service client for accessing LookoutMetrics asynchronously. This can be created using the static {@link #builder()}
* method.The asynchronous client performs non-blocking I/O when configured with any {@code SdkAsyncHttpClient}
* supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in
* some cases such as credentials retrieval and endpoint discovery as part of the async API call.
*
*
* This is the Amazon Lookout for Metrics API Reference. For an introduction to the service with tutorials for
* getting started, visit Amazon Lookout for Metrics
* Developer Guide.
*
*/
@Generated("software.amazon.awssdk:codegen")
@SdkPublicApi
@ThreadSafe
public interface LookoutMetricsAsyncClient extends AwsClient {
String SERVICE_NAME = "lookoutmetrics";
/**
* Value for looking up the service's metadata from the
* {@link software.amazon.awssdk.regions.ServiceMetadataProvider}.
*/
String SERVICE_METADATA_ID = "lookoutmetrics";
/**
*
* Activates an anomaly detector.
*
*
* @param activateAnomalyDetectorRequest
* @return A Java Future containing the result of the ActivateAnomalyDetector operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - ConflictException There was a conflict processing the request. Try your request again.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ActivateAnomalyDetector
* @see AWS API Documentation
*/
default CompletableFuture activateAnomalyDetector(
ActivateAnomalyDetectorRequest activateAnomalyDetectorRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Activates an anomaly detector.
*
*
*
* This is a convenience which creates an instance of the {@link ActivateAnomalyDetectorRequest.Builder} avoiding
* the need to create one manually via {@link ActivateAnomalyDetectorRequest#builder()}
*
*
* @param activateAnomalyDetectorRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.ActivateAnomalyDetectorRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the ActivateAnomalyDetector operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - ConflictException There was a conflict processing the request. Try your request again.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ActivateAnomalyDetector
* @see AWS API Documentation
*/
default CompletableFuture activateAnomalyDetector(
Consumer activateAnomalyDetectorRequest) {
return activateAnomalyDetector(ActivateAnomalyDetectorRequest.builder().applyMutation(activateAnomalyDetectorRequest)
.build());
}
/**
*
* Runs a backtest for anomaly detection for the specified resource.
*
*
* @param backTestAnomalyDetectorRequest
* @return A Java Future containing the result of the BackTestAnomalyDetector operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.BackTestAnomalyDetector
* @see AWS API Documentation
*/
default CompletableFuture backTestAnomalyDetector(
BackTestAnomalyDetectorRequest backTestAnomalyDetectorRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Runs a backtest for anomaly detection for the specified resource.
*
*
*
* This is a convenience which creates an instance of the {@link BackTestAnomalyDetectorRequest.Builder} avoiding
* the need to create one manually via {@link BackTestAnomalyDetectorRequest#builder()}
*
*
* @param backTestAnomalyDetectorRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.BackTestAnomalyDetectorRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the BackTestAnomalyDetector operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.BackTestAnomalyDetector
* @see AWS API Documentation
*/
default CompletableFuture backTestAnomalyDetector(
Consumer backTestAnomalyDetectorRequest) {
return backTestAnomalyDetector(BackTestAnomalyDetectorRequest.builder().applyMutation(backTestAnomalyDetectorRequest)
.build());
}
/**
*
* Creates an alert for an anomaly detector.
*
*
* @param createAlertRequest
* @return A Java Future containing the result of the CreateAlert operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ConflictException There was a conflict processing the request. Try your request again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ServiceQuotaExceededException The request exceeded the service's quotas. Check the service quotas and
* try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.CreateAlert
* @see AWS
* API Documentation
*/
default CompletableFuture createAlert(CreateAlertRequest createAlertRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates an alert for an anomaly detector.
*
*
*
* This is a convenience which creates an instance of the {@link CreateAlertRequest.Builder} avoiding the need to
* create one manually via {@link CreateAlertRequest#builder()}
*
*
* @param createAlertRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.CreateAlertRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the CreateAlert operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ConflictException There was a conflict processing the request. Try your request again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ServiceQuotaExceededException The request exceeded the service's quotas. Check the service quotas and
* try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.CreateAlert
* @see AWS
* API Documentation
*/
default CompletableFuture createAlert(Consumer createAlertRequest) {
return createAlert(CreateAlertRequest.builder().applyMutation(createAlertRequest).build());
}
/**
*
* Creates an anomaly detector.
*
*
* @param createAnomalyDetectorRequest
* @return A Java Future containing the result of the CreateAnomalyDetector operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ConflictException There was a conflict processing the request. Try your request again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ServiceQuotaExceededException The request exceeded the service's quotas. Check the service quotas and
* try again.
* - ConflictException There was a conflict processing the request. Try your request again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.CreateAnomalyDetector
* @see AWS API Documentation
*/
default CompletableFuture createAnomalyDetector(
CreateAnomalyDetectorRequest createAnomalyDetectorRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates an anomaly detector.
*
*
*
* This is a convenience which creates an instance of the {@link CreateAnomalyDetectorRequest.Builder} avoiding the
* need to create one manually via {@link CreateAnomalyDetectorRequest#builder()}
*
*
* @param createAnomalyDetectorRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.CreateAnomalyDetectorRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the CreateAnomalyDetector operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ConflictException There was a conflict processing the request. Try your request again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ServiceQuotaExceededException The request exceeded the service's quotas. Check the service quotas and
* try again.
* - ConflictException There was a conflict processing the request. Try your request again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.CreateAnomalyDetector
* @see AWS API Documentation
*/
default CompletableFuture createAnomalyDetector(
Consumer createAnomalyDetectorRequest) {
return createAnomalyDetector(CreateAnomalyDetectorRequest.builder().applyMutation(createAnomalyDetectorRequest).build());
}
/**
*
* Creates a dataset.
*
*
* @param createMetricSetRequest
* @return A Java Future containing the result of the CreateMetricSet operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ConflictException There was a conflict processing the request. Try your request again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ServiceQuotaExceededException The request exceeded the service's quotas. Check the service quotas and
* try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.CreateMetricSet
* @see AWS API Documentation
*/
default CompletableFuture createMetricSet(CreateMetricSetRequest createMetricSetRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a dataset.
*
*
*
* This is a convenience which creates an instance of the {@link CreateMetricSetRequest.Builder} avoiding the need
* to create one manually via {@link CreateMetricSetRequest#builder()}
*
*
* @param createMetricSetRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.CreateMetricSetRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the CreateMetricSet operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ConflictException There was a conflict processing the request. Try your request again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ServiceQuotaExceededException The request exceeded the service's quotas. Check the service quotas and
* try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.CreateMetricSet
* @see AWS API Documentation
*/
default CompletableFuture createMetricSet(
Consumer createMetricSetRequest) {
return createMetricSet(CreateMetricSetRequest.builder().applyMutation(createMetricSetRequest).build());
}
/**
*
* Deactivates an anomaly detector.
*
*
* @param deactivateAnomalyDetectorRequest
* @return A Java Future containing the result of the DeactivateAnomalyDetector operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ConflictException There was a conflict processing the request. Try your request again.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.DeactivateAnomalyDetector
* @see AWS API Documentation
*/
default CompletableFuture deactivateAnomalyDetector(
DeactivateAnomalyDetectorRequest deactivateAnomalyDetectorRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deactivates an anomaly detector.
*
*
*
* This is a convenience which creates an instance of the {@link DeactivateAnomalyDetectorRequest.Builder} avoiding
* the need to create one manually via {@link DeactivateAnomalyDetectorRequest#builder()}
*
*
* @param deactivateAnomalyDetectorRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.DeactivateAnomalyDetectorRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the DeactivateAnomalyDetector operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ConflictException There was a conflict processing the request. Try your request again.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.DeactivateAnomalyDetector
* @see AWS API Documentation
*/
default CompletableFuture deactivateAnomalyDetector(
Consumer deactivateAnomalyDetectorRequest) {
return deactivateAnomalyDetector(DeactivateAnomalyDetectorRequest.builder()
.applyMutation(deactivateAnomalyDetectorRequest).build());
}
/**
*
* Deletes an alert.
*
*
* @param deleteAlertRequest
* @return A Java Future containing the result of the DeleteAlert operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.DeleteAlert
* @see AWS
* API Documentation
*/
default CompletableFuture deleteAlert(DeleteAlertRequest deleteAlertRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes an alert.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteAlertRequest.Builder} avoiding the need to
* create one manually via {@link DeleteAlertRequest#builder()}
*
*
* @param deleteAlertRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.DeleteAlertRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DeleteAlert operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.DeleteAlert
* @see AWS
* API Documentation
*/
default CompletableFuture deleteAlert(Consumer deleteAlertRequest) {
return deleteAlert(DeleteAlertRequest.builder().applyMutation(deleteAlertRequest).build());
}
/**
*
* Deletes a detector. Deleting an anomaly detector will delete all of its corresponding resources including any
* configured datasets and alerts.
*
*
* @param deleteAnomalyDetectorRequest
* @return A Java Future containing the result of the DeleteAnomalyDetector operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ConflictException There was a conflict processing the request. Try your request again.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.DeleteAnomalyDetector
* @see AWS API Documentation
*/
default CompletableFuture deleteAnomalyDetector(
DeleteAnomalyDetectorRequest deleteAnomalyDetectorRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a detector. Deleting an anomaly detector will delete all of its corresponding resources including any
* configured datasets and alerts.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteAnomalyDetectorRequest.Builder} avoiding the
* need to create one manually via {@link DeleteAnomalyDetectorRequest#builder()}
*
*
* @param deleteAnomalyDetectorRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.DeleteAnomalyDetectorRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the DeleteAnomalyDetector operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ConflictException There was a conflict processing the request. Try your request again.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.DeleteAnomalyDetector
* @see AWS API Documentation
*/
default CompletableFuture deleteAnomalyDetector(
Consumer deleteAnomalyDetectorRequest) {
return deleteAnomalyDetector(DeleteAnomalyDetectorRequest.builder().applyMutation(deleteAnomalyDetectorRequest).build());
}
/**
*
* Describes an alert.
*
*
* Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource
* immediately after creating or modifying it, use retries to allow time for the write operation to complete.
*
*
* @param describeAlertRequest
* @return A Java Future containing the result of the DescribeAlert operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.DescribeAlert
* @see AWS
* API Documentation
*/
default CompletableFuture describeAlert(DescribeAlertRequest describeAlertRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Describes an alert.
*
*
* Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource
* immediately after creating or modifying it, use retries to allow time for the write operation to complete.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeAlertRequest.Builder} avoiding the need to
* create one manually via {@link DescribeAlertRequest#builder()}
*
*
* @param describeAlertRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.DescribeAlertRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DescribeAlert operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.DescribeAlert
* @see AWS
* API Documentation
*/
default CompletableFuture describeAlert(Consumer describeAlertRequest) {
return describeAlert(DescribeAlertRequest.builder().applyMutation(describeAlertRequest).build());
}
/**
*
* Returns information about the status of the specified anomaly detection jobs.
*
*
* @param describeAnomalyDetectionExecutionsRequest
* @return A Java Future containing the result of the DescribeAnomalyDetectionExecutions operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.DescribeAnomalyDetectionExecutions
* @see AWS API Documentation
*/
default CompletableFuture describeAnomalyDetectionExecutions(
DescribeAnomalyDetectionExecutionsRequest describeAnomalyDetectionExecutionsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns information about the status of the specified anomaly detection jobs.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeAnomalyDetectionExecutionsRequest.Builder}
* avoiding the need to create one manually via {@link DescribeAnomalyDetectionExecutionsRequest#builder()}
*
*
* @param describeAnomalyDetectionExecutionsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsRequest.Builder}
* to create a request.
* @return A Java Future containing the result of the DescribeAnomalyDetectionExecutions operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.DescribeAnomalyDetectionExecutions
* @see AWS API Documentation
*/
default CompletableFuture describeAnomalyDetectionExecutions(
Consumer describeAnomalyDetectionExecutionsRequest) {
return describeAnomalyDetectionExecutions(DescribeAnomalyDetectionExecutionsRequest.builder()
.applyMutation(describeAnomalyDetectionExecutionsRequest).build());
}
/**
*
* This is a variant of
* {@link #describeAnomalyDetectionExecutions(software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsRequest)}
* operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
* SDK will internally handle making service calls for you.
*
*
* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
* and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
* failures only after you start streaming the data. The subscribe method should be called as a request to start
* streaming data. For more info, see
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
* starting request.
*
*
*
* The following are few ways to use the response class:
*
* 1) Using the subscribe helper method
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.DescribeAnomalyDetectionExecutionsPublisher publisher = client.describeAnomalyDetectionExecutionsPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.DescribeAnomalyDetectionExecutionsPublisher publisher = client.describeAnomalyDetectionExecutionsPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsResponse response) { //... };
* });}
*
*
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
*
* Please notice that the configuration of MaxResults won't limit the number of results you get with the
* paginator. It only limits the number of results in each page.
*
*
* Note: If you prefer to have control on service calls, use the
* {@link #describeAnomalyDetectionExecutions(software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsRequest)}
* operation.
*
*
* @param describeAnomalyDetectionExecutionsRequest
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.DescribeAnomalyDetectionExecutions
* @see AWS API Documentation
*/
default DescribeAnomalyDetectionExecutionsPublisher describeAnomalyDetectionExecutionsPaginator(
DescribeAnomalyDetectionExecutionsRequest describeAnomalyDetectionExecutionsRequest) {
return new DescribeAnomalyDetectionExecutionsPublisher(this, describeAnomalyDetectionExecutionsRequest);
}
/**
*
* This is a variant of
* {@link #describeAnomalyDetectionExecutions(software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsRequest)}
* operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
* SDK will internally handle making service calls for you.
*
*
* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
* and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
* failures only after you start streaming the data. The subscribe method should be called as a request to start
* streaming data. For more info, see
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
* starting request.
*
*
*
* The following are few ways to use the response class:
*
* 1) Using the subscribe helper method
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.DescribeAnomalyDetectionExecutionsPublisher publisher = client.describeAnomalyDetectionExecutionsPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.DescribeAnomalyDetectionExecutionsPublisher publisher = client.describeAnomalyDetectionExecutionsPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsResponse response) { //... };
* });}
*
*
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
*
* Please notice that the configuration of MaxResults won't limit the number of results you get with the
* paginator. It only limits the number of results in each page.
*
*
* Note: If you prefer to have control on service calls, use the
* {@link #describeAnomalyDetectionExecutions(software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeAnomalyDetectionExecutionsRequest.Builder}
* avoiding the need to create one manually via {@link DescribeAnomalyDetectionExecutionsRequest#builder()}
*
*
* @param describeAnomalyDetectionExecutionsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectionExecutionsRequest.Builder}
* to create a request.
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.DescribeAnomalyDetectionExecutions
* @see AWS API Documentation
*/
default DescribeAnomalyDetectionExecutionsPublisher describeAnomalyDetectionExecutionsPaginator(
Consumer describeAnomalyDetectionExecutionsRequest) {
return describeAnomalyDetectionExecutionsPaginator(DescribeAnomalyDetectionExecutionsRequest.builder()
.applyMutation(describeAnomalyDetectionExecutionsRequest).build());
}
/**
*
* Describes a detector.
*
*
* Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource
* immediately after creating or modifying it, use retries to allow time for the write operation to complete.
*
*
* @param describeAnomalyDetectorRequest
* @return A Java Future containing the result of the DescribeAnomalyDetector operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.DescribeAnomalyDetector
* @see AWS API Documentation
*/
default CompletableFuture describeAnomalyDetector(
DescribeAnomalyDetectorRequest describeAnomalyDetectorRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Describes a detector.
*
*
* Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource
* immediately after creating or modifying it, use retries to allow time for the write operation to complete.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeAnomalyDetectorRequest.Builder} avoiding
* the need to create one manually via {@link DescribeAnomalyDetectorRequest#builder()}
*
*
* @param describeAnomalyDetectorRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.DescribeAnomalyDetectorRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the DescribeAnomalyDetector operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.DescribeAnomalyDetector
* @see AWS API Documentation
*/
default CompletableFuture describeAnomalyDetector(
Consumer describeAnomalyDetectorRequest) {
return describeAnomalyDetector(DescribeAnomalyDetectorRequest.builder().applyMutation(describeAnomalyDetectorRequest)
.build());
}
/**
*
* Describes a dataset.
*
*
* Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource
* immediately after creating or modifying it, use retries to allow time for the write operation to complete.
*
*
* @param describeMetricSetRequest
* @return A Java Future containing the result of the DescribeMetricSet operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.DescribeMetricSet
* @see AWS API Documentation
*/
default CompletableFuture describeMetricSet(DescribeMetricSetRequest describeMetricSetRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Describes a dataset.
*
*
* Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource
* immediately after creating or modifying it, use retries to allow time for the write operation to complete.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeMetricSetRequest.Builder} avoiding the need
* to create one manually via {@link DescribeMetricSetRequest#builder()}
*
*
* @param describeMetricSetRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.DescribeMetricSetRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DescribeMetricSet operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.DescribeMetricSet
* @see AWS API Documentation
*/
default CompletableFuture describeMetricSet(
Consumer describeMetricSetRequest) {
return describeMetricSet(DescribeMetricSetRequest.builder().applyMutation(describeMetricSetRequest).build());
}
/**
*
* Detects an Amazon S3 dataset's file format, interval, and offset.
*
*
* @param detectMetricSetConfigRequest
* @return A Java Future containing the result of the DetectMetricSetConfig operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.DetectMetricSetConfig
* @see AWS API Documentation
*/
default CompletableFuture detectMetricSetConfig(
DetectMetricSetConfigRequest detectMetricSetConfigRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Detects an Amazon S3 dataset's file format, interval, and offset.
*
*
*
* This is a convenience which creates an instance of the {@link DetectMetricSetConfigRequest.Builder} avoiding the
* need to create one manually via {@link DetectMetricSetConfigRequest#builder()}
*
*
* @param detectMetricSetConfigRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.DetectMetricSetConfigRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the DetectMetricSetConfig operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.DetectMetricSetConfig
* @see AWS API Documentation
*/
default CompletableFuture detectMetricSetConfig(
Consumer detectMetricSetConfigRequest) {
return detectMetricSetConfig(DetectMetricSetConfigRequest.builder().applyMutation(detectMetricSetConfigRequest).build());
}
/**
*
* Returns details about a group of anomalous metrics.
*
*
* @param getAnomalyGroupRequest
* @return A Java Future containing the result of the GetAnomalyGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.GetAnomalyGroup
* @see AWS API Documentation
*/
default CompletableFuture getAnomalyGroup(GetAnomalyGroupRequest getAnomalyGroupRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns details about a group of anomalous metrics.
*
*
*
* This is a convenience which creates an instance of the {@link GetAnomalyGroupRequest.Builder} avoiding the need
* to create one manually via {@link GetAnomalyGroupRequest#builder()}
*
*
* @param getAnomalyGroupRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.GetAnomalyGroupRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the GetAnomalyGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.GetAnomalyGroup
* @see AWS API Documentation
*/
default CompletableFuture getAnomalyGroup(
Consumer getAnomalyGroupRequest) {
return getAnomalyGroup(GetAnomalyGroupRequest.builder().applyMutation(getAnomalyGroupRequest).build());
}
/**
*
* Returns details about the requested data quality metrics.
*
*
* @param getDataQualityMetricsRequest
* @return A Java Future containing the result of the GetDataQualityMetrics operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.GetDataQualityMetrics
* @see AWS API Documentation
*/
default CompletableFuture getDataQualityMetrics(
GetDataQualityMetricsRequest getDataQualityMetricsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns details about the requested data quality metrics.
*
*
*
* This is a convenience which creates an instance of the {@link GetDataQualityMetricsRequest.Builder} avoiding the
* need to create one manually via {@link GetDataQualityMetricsRequest#builder()}
*
*
* @param getDataQualityMetricsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.GetDataQualityMetricsRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the GetDataQualityMetrics operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.GetDataQualityMetrics
* @see AWS API Documentation
*/
default CompletableFuture getDataQualityMetrics(
Consumer getDataQualityMetricsRequest) {
return getDataQualityMetrics(GetDataQualityMetricsRequest.builder().applyMutation(getDataQualityMetricsRequest).build());
}
/**
*
* Get feedback for an anomaly group.
*
*
* @param getFeedbackRequest
* @return A Java Future containing the result of the GetFeedback operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.GetFeedback
* @see AWS
* API Documentation
*/
default CompletableFuture getFeedback(GetFeedbackRequest getFeedbackRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Get feedback for an anomaly group.
*
*
*
* This is a convenience which creates an instance of the {@link GetFeedbackRequest.Builder} avoiding the need to
* create one manually via {@link GetFeedbackRequest#builder()}
*
*
* @param getFeedbackRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the GetFeedback operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.GetFeedback
* @see AWS
* API Documentation
*/
default CompletableFuture getFeedback(Consumer getFeedbackRequest) {
return getFeedback(GetFeedbackRequest.builder().applyMutation(getFeedbackRequest).build());
}
/**
*
* This is a variant of
* {@link #getFeedback(software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackRequest)} operation. The
* return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
* internally handle making service calls for you.
*
*
* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
* and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
* failures only after you start streaming the data. The subscribe method should be called as a request to start
* streaming data. For more info, see
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
* starting request.
*
*
*
* The following are few ways to use the response class:
*
* 1) Using the subscribe helper method
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.GetFeedbackPublisher publisher = client.getFeedbackPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.GetFeedbackPublisher publisher = client.getFeedbackPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackResponse response) { //... };
* });}
*
*
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
*
* Please notice that the configuration of MaxResults won't limit the number of results you get with the
* paginator. It only limits the number of results in each page.
*
*
* Note: If you prefer to have control on service calls, use the
* {@link #getFeedback(software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackRequest)} operation.
*
*
* @param getFeedbackRequest
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.GetFeedback
* @see AWS
* API Documentation
*/
default GetFeedbackPublisher getFeedbackPaginator(GetFeedbackRequest getFeedbackRequest) {
return new GetFeedbackPublisher(this, getFeedbackRequest);
}
/**
*
* This is a variant of
* {@link #getFeedback(software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackRequest)} operation. The
* return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
* internally handle making service calls for you.
*
*
* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
* and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
* failures only after you start streaming the data. The subscribe method should be called as a request to start
* streaming data. For more info, see
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
* starting request.
*
*
*
* The following are few ways to use the response class:
*
* 1) Using the subscribe helper method
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.GetFeedbackPublisher publisher = client.getFeedbackPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.GetFeedbackPublisher publisher = client.getFeedbackPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackResponse response) { //... };
* });}
*
*
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
*
* Please notice that the configuration of MaxResults won't limit the number of results you get with the
* paginator. It only limits the number of results in each page.
*
*
* Note: If you prefer to have control on service calls, use the
* {@link #getFeedback(software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackRequest)} operation.
*
*
*
* This is a convenience which creates an instance of the {@link GetFeedbackRequest.Builder} avoiding the need to
* create one manually via {@link GetFeedbackRequest#builder()}
*
*
* @param getFeedbackRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.GetFeedbackRequest.Builder} to create a
* request.
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.GetFeedback
* @see AWS
* API Documentation
*/
default GetFeedbackPublisher getFeedbackPaginator(Consumer getFeedbackRequest) {
return getFeedbackPaginator(GetFeedbackRequest.builder().applyMutation(getFeedbackRequest).build());
}
/**
*
* Returns a selection of sample records from an Amazon S3 datasource.
*
*
* @param getSampleDataRequest
* @return A Java Future containing the result of the GetSampleData operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.GetSampleData
* @see AWS
* API Documentation
*/
default CompletableFuture getSampleData(GetSampleDataRequest getSampleDataRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns a selection of sample records from an Amazon S3 datasource.
*
*
*
* This is a convenience which creates an instance of the {@link GetSampleDataRequest.Builder} avoiding the need to
* create one manually via {@link GetSampleDataRequest#builder()}
*
*
* @param getSampleDataRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.GetSampleDataRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the GetSampleData operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.GetSampleData
* @see AWS
* API Documentation
*/
default CompletableFuture getSampleData(Consumer getSampleDataRequest) {
return getSampleData(GetSampleDataRequest.builder().applyMutation(getSampleDataRequest).build());
}
/**
*
* Lists the alerts attached to a detector.
*
*
* Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource
* immediately after creating or modifying it, use retries to allow time for the write operation to complete.
*
*
* @param listAlertsRequest
* @return A Java Future containing the result of the ListAlerts operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListAlerts
* @see AWS API
* Documentation
*/
default CompletableFuture listAlerts(ListAlertsRequest listAlertsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Lists the alerts attached to a detector.
*
*
* Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource
* immediately after creating or modifying it, use retries to allow time for the write operation to complete.
*
*
*
* This is a convenience which creates an instance of the {@link ListAlertsRequest.Builder} avoiding the need to
* create one manually via {@link ListAlertsRequest#builder()}
*
*
* @param listAlertsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the ListAlerts operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListAlerts
* @see AWS API
* Documentation
*/
default CompletableFuture listAlerts(Consumer listAlertsRequest) {
return listAlerts(ListAlertsRequest.builder().applyMutation(listAlertsRequest).build());
}
/**
*
* This is a variant of {@link #listAlerts(software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsRequest)}
* operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
* SDK will internally handle making service calls for you.
*
*
* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
* and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
* failures only after you start streaming the data. The subscribe method should be called as a request to start
* streaming data. For more info, see
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
* starting request.
*
*
*
* The following are few ways to use the response class:
*
* 1) Using the subscribe helper method
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListAlertsPublisher publisher = client.listAlertsPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListAlertsPublisher publisher = client.listAlertsPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsResponse response) { //... };
* });}
*
*
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
*
* Please notice that the configuration of MaxResults won't limit the number of results you get with the
* paginator. It only limits the number of results in each page.
*
*
* Note: If you prefer to have control on service calls, use the
* {@link #listAlerts(software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsRequest)} operation.
*
*
* @param listAlertsRequest
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListAlerts
* @see AWS API
* Documentation
*/
default ListAlertsPublisher listAlertsPaginator(ListAlertsRequest listAlertsRequest) {
return new ListAlertsPublisher(this, listAlertsRequest);
}
/**
*
* This is a variant of {@link #listAlerts(software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsRequest)}
* operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
* SDK will internally handle making service calls for you.
*
*
* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
* and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
* failures only after you start streaming the data. The subscribe method should be called as a request to start
* streaming data. For more info, see
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
* starting request.
*
*
*
* The following are few ways to use the response class:
*
* 1) Using the subscribe helper method
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListAlertsPublisher publisher = client.listAlertsPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListAlertsPublisher publisher = client.listAlertsPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsResponse response) { //... };
* });}
*
*
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
*
* Please notice that the configuration of MaxResults won't limit the number of results you get with the
* paginator. It only limits the number of results in each page.
*
*
* Note: If you prefer to have control on service calls, use the
* {@link #listAlerts(software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsRequest)} operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListAlertsRequest.Builder} avoiding the need to
* create one manually via {@link ListAlertsRequest#builder()}
*
*
* @param listAlertsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.ListAlertsRequest.Builder} to create a
* request.
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListAlerts
* @see AWS API
* Documentation
*/
default ListAlertsPublisher listAlertsPaginator(Consumer listAlertsRequest) {
return listAlertsPaginator(ListAlertsRequest.builder().applyMutation(listAlertsRequest).build());
}
/**
*
* Lists the detectors in the current AWS Region.
*
*
* Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource
* immediately after creating or modifying it, use retries to allow time for the write operation to complete.
*
*
* @param listAnomalyDetectorsRequest
* @return A Java Future containing the result of the ListAnomalyDetectors operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListAnomalyDetectors
* @see AWS API Documentation
*/
default CompletableFuture listAnomalyDetectors(
ListAnomalyDetectorsRequest listAnomalyDetectorsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Lists the detectors in the current AWS Region.
*
*
* Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource
* immediately after creating or modifying it, use retries to allow time for the write operation to complete.
*
*
*
* This is a convenience which creates an instance of the {@link ListAnomalyDetectorsRequest.Builder} avoiding the
* need to create one manually via {@link ListAnomalyDetectorsRequest#builder()}
*
*
* @param listAnomalyDetectorsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsRequest.Builder} to create
* a request.
* @return A Java Future containing the result of the ListAnomalyDetectors operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListAnomalyDetectors
* @see AWS API Documentation
*/
default CompletableFuture listAnomalyDetectors(
Consumer listAnomalyDetectorsRequest) {
return listAnomalyDetectors(ListAnomalyDetectorsRequest.builder().applyMutation(listAnomalyDetectorsRequest).build());
}
/**
*
* This is a variant of
* {@link #listAnomalyDetectors(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsRequest)}
* operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
* SDK will internally handle making service calls for you.
*
*
* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
* and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
* failures only after you start streaming the data. The subscribe method should be called as a request to start
* streaming data. For more info, see
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
* starting request.
*
*
*
* The following are few ways to use the response class:
*
* 1) Using the subscribe helper method
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyDetectorsPublisher publisher = client.listAnomalyDetectorsPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyDetectorsPublisher publisher = client.listAnomalyDetectorsPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsResponse response) { //... };
* });}
*
*
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
*
* Please notice that the configuration of MaxResults won't limit the number of results you get with the
* paginator. It only limits the number of results in each page.
*
*
* Note: If you prefer to have control on service calls, use the
* {@link #listAnomalyDetectors(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsRequest)}
* operation.
*
*
* @param listAnomalyDetectorsRequest
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListAnomalyDetectors
* @see AWS API Documentation
*/
default ListAnomalyDetectorsPublisher listAnomalyDetectorsPaginator(ListAnomalyDetectorsRequest listAnomalyDetectorsRequest) {
return new ListAnomalyDetectorsPublisher(this, listAnomalyDetectorsRequest);
}
/**
*
* This is a variant of
* {@link #listAnomalyDetectors(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsRequest)}
* operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
* SDK will internally handle making service calls for you.
*
*
* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
* and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
* failures only after you start streaming the data. The subscribe method should be called as a request to start
* streaming data. For more info, see
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
* starting request.
*
*
*
* The following are few ways to use the response class:
*
* 1) Using the subscribe helper method
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyDetectorsPublisher publisher = client.listAnomalyDetectorsPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyDetectorsPublisher publisher = client.listAnomalyDetectorsPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsResponse response) { //... };
* });}
*
*
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
*
* Please notice that the configuration of MaxResults won't limit the number of results you get with the
* paginator. It only limits the number of results in each page.
*
*
* Note: If you prefer to have control on service calls, use the
* {@link #listAnomalyDetectors(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListAnomalyDetectorsRequest.Builder} avoiding the
* need to create one manually via {@link ListAnomalyDetectorsRequest#builder()}
*
*
* @param listAnomalyDetectorsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyDetectorsRequest.Builder} to create
* a request.
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListAnomalyDetectors
* @see AWS API Documentation
*/
default ListAnomalyDetectorsPublisher listAnomalyDetectorsPaginator(
Consumer listAnomalyDetectorsRequest) {
return listAnomalyDetectorsPaginator(ListAnomalyDetectorsRequest.builder().applyMutation(listAnomalyDetectorsRequest)
.build());
}
/**
*
* Returns a list of measures that are potential causes or effects of an anomaly group.
*
*
* @param listAnomalyGroupRelatedMetricsRequest
* @return A Java Future containing the result of the ListAnomalyGroupRelatedMetrics operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListAnomalyGroupRelatedMetrics
* @see AWS API Documentation
*/
default CompletableFuture listAnomalyGroupRelatedMetrics(
ListAnomalyGroupRelatedMetricsRequest listAnomalyGroupRelatedMetricsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns a list of measures that are potential causes or effects of an anomaly group.
*
*
*
* This is a convenience which creates an instance of the {@link ListAnomalyGroupRelatedMetricsRequest.Builder}
* avoiding the need to create one manually via {@link ListAnomalyGroupRelatedMetricsRequest#builder()}
*
*
* @param listAnomalyGroupRelatedMetricsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsRequest.Builder}
* to create a request.
* @return A Java Future containing the result of the ListAnomalyGroupRelatedMetrics operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListAnomalyGroupRelatedMetrics
* @see AWS API Documentation
*/
default CompletableFuture listAnomalyGroupRelatedMetrics(
Consumer listAnomalyGroupRelatedMetricsRequest) {
return listAnomalyGroupRelatedMetrics(ListAnomalyGroupRelatedMetricsRequest.builder()
.applyMutation(listAnomalyGroupRelatedMetricsRequest).build());
}
/**
*
* This is a variant of
* {@link #listAnomalyGroupRelatedMetrics(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsRequest)}
* operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
* SDK will internally handle making service calls for you.
*
*
* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
* and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
* failures only after you start streaming the data. The subscribe method should be called as a request to start
* streaming data. For more info, see
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
* starting request.
*
*
*
* The following are few ways to use the response class:
*
* 1) Using the subscribe helper method
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupRelatedMetricsPublisher publisher = client.listAnomalyGroupRelatedMetricsPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupRelatedMetricsPublisher publisher = client.listAnomalyGroupRelatedMetricsPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsResponse response) { //... };
* });}
*
*
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
*
* Please notice that the configuration of MaxResults won't limit the number of results you get with the
* paginator. It only limits the number of results in each page.
*
*
* Note: If you prefer to have control on service calls, use the
* {@link #listAnomalyGroupRelatedMetrics(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsRequest)}
* operation.
*
*
* @param listAnomalyGroupRelatedMetricsRequest
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListAnomalyGroupRelatedMetrics
* @see AWS API Documentation
*/
default ListAnomalyGroupRelatedMetricsPublisher listAnomalyGroupRelatedMetricsPaginator(
ListAnomalyGroupRelatedMetricsRequest listAnomalyGroupRelatedMetricsRequest) {
return new ListAnomalyGroupRelatedMetricsPublisher(this, listAnomalyGroupRelatedMetricsRequest);
}
/**
*
* This is a variant of
* {@link #listAnomalyGroupRelatedMetrics(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsRequest)}
* operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
* SDK will internally handle making service calls for you.
*
*
* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
* and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
* failures only after you start streaming the data. The subscribe method should be called as a request to start
* streaming data. For more info, see
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
* starting request.
*
*
*
* The following are few ways to use the response class:
*
* 1) Using the subscribe helper method
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupRelatedMetricsPublisher publisher = client.listAnomalyGroupRelatedMetricsPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupRelatedMetricsPublisher publisher = client.listAnomalyGroupRelatedMetricsPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsResponse response) { //... };
* });}
*
*
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
*
* Please notice that the configuration of MaxResults won't limit the number of results you get with the
* paginator. It only limits the number of results in each page.
*
*
* Note: If you prefer to have control on service calls, use the
* {@link #listAnomalyGroupRelatedMetrics(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListAnomalyGroupRelatedMetricsRequest.Builder}
* avoiding the need to create one manually via {@link ListAnomalyGroupRelatedMetricsRequest#builder()}
*
*
* @param listAnomalyGroupRelatedMetricsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupRelatedMetricsRequest.Builder}
* to create a request.
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListAnomalyGroupRelatedMetrics
* @see AWS API Documentation
*/
default ListAnomalyGroupRelatedMetricsPublisher listAnomalyGroupRelatedMetricsPaginator(
Consumer listAnomalyGroupRelatedMetricsRequest) {
return listAnomalyGroupRelatedMetricsPaginator(ListAnomalyGroupRelatedMetricsRequest.builder()
.applyMutation(listAnomalyGroupRelatedMetricsRequest).build());
}
/**
*
* Returns a list of anomaly groups.
*
*
* @param listAnomalyGroupSummariesRequest
* @return A Java Future containing the result of the ListAnomalyGroupSummaries operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListAnomalyGroupSummaries
* @see AWS API Documentation
*/
default CompletableFuture listAnomalyGroupSummaries(
ListAnomalyGroupSummariesRequest listAnomalyGroupSummariesRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns a list of anomaly groups.
*
*
*
* This is a convenience which creates an instance of the {@link ListAnomalyGroupSummariesRequest.Builder} avoiding
* the need to create one manually via {@link ListAnomalyGroupSummariesRequest#builder()}
*
*
* @param listAnomalyGroupSummariesRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the ListAnomalyGroupSummaries operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListAnomalyGroupSummaries
* @see AWS API Documentation
*/
default CompletableFuture listAnomalyGroupSummaries(
Consumer listAnomalyGroupSummariesRequest) {
return listAnomalyGroupSummaries(ListAnomalyGroupSummariesRequest.builder()
.applyMutation(listAnomalyGroupSummariesRequest).build());
}
/**
*
* This is a variant of
* {@link #listAnomalyGroupSummaries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesRequest)}
* operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
* SDK will internally handle making service calls for you.
*
*
* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
* and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
* failures only after you start streaming the data. The subscribe method should be called as a request to start
* streaming data. For more info, see
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
* starting request.
*
*
*
* The following are few ways to use the response class:
*
* 1) Using the subscribe helper method
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupSummariesPublisher publisher = client.listAnomalyGroupSummariesPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupSummariesPublisher publisher = client.listAnomalyGroupSummariesPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesResponse response) { //... };
* });}
*
*
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
*
* Please notice that the configuration of MaxResults won't limit the number of results you get with the
* paginator. It only limits the number of results in each page.
*
*
* Note: If you prefer to have control on service calls, use the
* {@link #listAnomalyGroupSummaries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesRequest)}
* operation.
*
*
* @param listAnomalyGroupSummariesRequest
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListAnomalyGroupSummaries
* @see AWS API Documentation
*/
default ListAnomalyGroupSummariesPublisher listAnomalyGroupSummariesPaginator(
ListAnomalyGroupSummariesRequest listAnomalyGroupSummariesRequest) {
return new ListAnomalyGroupSummariesPublisher(this, listAnomalyGroupSummariesRequest);
}
/**
*
* This is a variant of
* {@link #listAnomalyGroupSummaries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesRequest)}
* operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
* SDK will internally handle making service calls for you.
*
*
* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
* and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
* failures only after you start streaming the data. The subscribe method should be called as a request to start
* streaming data. For more info, see
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
* starting request.
*
*
*
* The following are few ways to use the response class:
*
* 1) Using the subscribe helper method
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupSummariesPublisher publisher = client.listAnomalyGroupSummariesPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupSummariesPublisher publisher = client.listAnomalyGroupSummariesPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesResponse response) { //... };
* });}
*
*
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
*
* Please notice that the configuration of MaxResults won't limit the number of results you get with the
* paginator. It only limits the number of results in each page.
*
*
* Note: If you prefer to have control on service calls, use the
* {@link #listAnomalyGroupSummaries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListAnomalyGroupSummariesRequest.Builder} avoiding
* the need to create one manually via {@link ListAnomalyGroupSummariesRequest#builder()}
*
*
* @param listAnomalyGroupSummariesRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupSummariesRequest.Builder} to
* create a request.
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListAnomalyGroupSummaries
* @see AWS API Documentation
*/
default ListAnomalyGroupSummariesPublisher listAnomalyGroupSummariesPaginator(
Consumer listAnomalyGroupSummariesRequest) {
return listAnomalyGroupSummariesPaginator(ListAnomalyGroupSummariesRequest.builder()
.applyMutation(listAnomalyGroupSummariesRequest).build());
}
/**
*
* Gets a list of anomalous metrics for a measure in an anomaly group.
*
*
* @param listAnomalyGroupTimeSeriesRequest
* @return A Java Future containing the result of the ListAnomalyGroupTimeSeries operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListAnomalyGroupTimeSeries
* @see AWS API Documentation
*/
default CompletableFuture listAnomalyGroupTimeSeries(
ListAnomalyGroupTimeSeriesRequest listAnomalyGroupTimeSeriesRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets a list of anomalous metrics for a measure in an anomaly group.
*
*
*
* This is a convenience which creates an instance of the {@link ListAnomalyGroupTimeSeriesRequest.Builder} avoiding
* the need to create one manually via {@link ListAnomalyGroupTimeSeriesRequest#builder()}
*
*
* @param listAnomalyGroupTimeSeriesRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the ListAnomalyGroupTimeSeries operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListAnomalyGroupTimeSeries
* @see AWS API Documentation
*/
default CompletableFuture listAnomalyGroupTimeSeries(
Consumer listAnomalyGroupTimeSeriesRequest) {
return listAnomalyGroupTimeSeries(ListAnomalyGroupTimeSeriesRequest.builder()
.applyMutation(listAnomalyGroupTimeSeriesRequest).build());
}
/**
*
* This is a variant of
* {@link #listAnomalyGroupTimeSeries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesRequest)}
* operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
* SDK will internally handle making service calls for you.
*
*
* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
* and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
* failures only after you start streaming the data. The subscribe method should be called as a request to start
* streaming data. For more info, see
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
* starting request.
*
*
*
* The following are few ways to use the response class:
*
* 1) Using the subscribe helper method
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupTimeSeriesPublisher publisher = client.listAnomalyGroupTimeSeriesPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupTimeSeriesPublisher publisher = client.listAnomalyGroupTimeSeriesPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesResponse response) { //... };
* });}
*
*
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
*
* Please notice that the configuration of MaxResults won't limit the number of results you get with the
* paginator. It only limits the number of results in each page.
*
*
* Note: If you prefer to have control on service calls, use the
* {@link #listAnomalyGroupTimeSeries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesRequest)}
* operation.
*
*
* @param listAnomalyGroupTimeSeriesRequest
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListAnomalyGroupTimeSeries
* @see AWS API Documentation
*/
default ListAnomalyGroupTimeSeriesPublisher listAnomalyGroupTimeSeriesPaginator(
ListAnomalyGroupTimeSeriesRequest listAnomalyGroupTimeSeriesRequest) {
return new ListAnomalyGroupTimeSeriesPublisher(this, listAnomalyGroupTimeSeriesRequest);
}
/**
*
* This is a variant of
* {@link #listAnomalyGroupTimeSeries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesRequest)}
* operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
* SDK will internally handle making service calls for you.
*
*
* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
* and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
* failures only after you start streaming the data. The subscribe method should be called as a request to start
* streaming data. For more info, see
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
* starting request.
*
*
*
* The following are few ways to use the response class:
*
* 1) Using the subscribe helper method
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupTimeSeriesPublisher publisher = client.listAnomalyGroupTimeSeriesPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListAnomalyGroupTimeSeriesPublisher publisher = client.listAnomalyGroupTimeSeriesPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesResponse response) { //... };
* });}
*
*
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
*
* Please notice that the configuration of MaxResults won't limit the number of results you get with the
* paginator. It only limits the number of results in each page.
*
*
* Note: If you prefer to have control on service calls, use the
* {@link #listAnomalyGroupTimeSeries(software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListAnomalyGroupTimeSeriesRequest.Builder} avoiding
* the need to create one manually via {@link ListAnomalyGroupTimeSeriesRequest#builder()}
*
*
* @param listAnomalyGroupTimeSeriesRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.ListAnomalyGroupTimeSeriesRequest.Builder} to
* create a request.
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListAnomalyGroupTimeSeries
* @see AWS API Documentation
*/
default ListAnomalyGroupTimeSeriesPublisher listAnomalyGroupTimeSeriesPaginator(
Consumer listAnomalyGroupTimeSeriesRequest) {
return listAnomalyGroupTimeSeriesPaginator(ListAnomalyGroupTimeSeriesRequest.builder()
.applyMutation(listAnomalyGroupTimeSeriesRequest).build());
}
/**
*
* Lists the datasets in the current AWS Region.
*
*
* Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource
* immediately after creating or modifying it, use retries to allow time for the write operation to complete.
*
*
* @param listMetricSetsRequest
* @return A Java Future containing the result of the ListMetricSets operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListMetricSets
* @see AWS
* API Documentation
*/
default CompletableFuture listMetricSets(ListMetricSetsRequest listMetricSetsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Lists the datasets in the current AWS Region.
*
*
* Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource
* immediately after creating or modifying it, use retries to allow time for the write operation to complete.
*
*
*
* This is a convenience which creates an instance of the {@link ListMetricSetsRequest.Builder} avoiding the need to
* create one manually via {@link ListMetricSetsRequest#builder()}
*
*
* @param listMetricSetsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the ListMetricSets operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListMetricSets
* @see AWS
* API Documentation
*/
default CompletableFuture listMetricSets(Consumer listMetricSetsRequest) {
return listMetricSets(ListMetricSetsRequest.builder().applyMutation(listMetricSetsRequest).build());
}
/**
*
* This is a variant of
* {@link #listMetricSets(software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsRequest)} operation.
* The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
* internally handle making service calls for you.
*
*
* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
* and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
* failures only after you start streaming the data. The subscribe method should be called as a request to start
* streaming data. For more info, see
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
* starting request.
*
*
*
* The following are few ways to use the response class:
*
* 1) Using the subscribe helper method
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListMetricSetsPublisher publisher = client.listMetricSetsPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListMetricSetsPublisher publisher = client.listMetricSetsPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsResponse response) { //... };
* });}
*
*
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
*
* Please notice that the configuration of MaxResults won't limit the number of results you get with the
* paginator. It only limits the number of results in each page.
*
*
* Note: If you prefer to have control on service calls, use the
* {@link #listMetricSets(software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsRequest)}
* operation.
*
*
* @param listMetricSetsRequest
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListMetricSets
* @see AWS
* API Documentation
*/
default ListMetricSetsPublisher listMetricSetsPaginator(ListMetricSetsRequest listMetricSetsRequest) {
return new ListMetricSetsPublisher(this, listMetricSetsRequest);
}
/**
*
* This is a variant of
* {@link #listMetricSets(software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsRequest)} operation.
* The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
* internally handle making service calls for you.
*
*
* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
* and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
* failures only after you start streaming the data. The subscribe method should be called as a request to start
* streaming data. For more info, see
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
* starting request.
*
*
*
* The following are few ways to use the response class:
*
* 1) Using the subscribe helper method
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListMetricSetsPublisher publisher = client.listMetricSetsPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.lookoutmetrics.paginators.ListMetricSetsPublisher publisher = client.listMetricSetsPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsResponse response) { //... };
* });}
*
*
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
*
* Please notice that the configuration of MaxResults won't limit the number of results you get with the
* paginator. It only limits the number of results in each page.
*
*
* Note: If you prefer to have control on service calls, use the
* {@link #listMetricSets(software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListMetricSetsRequest.Builder} avoiding the need to
* create one manually via {@link ListMetricSetsRequest#builder()}
*
*
* @param listMetricSetsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.ListMetricSetsRequest.Builder} to create a
* request.
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListMetricSets
* @see AWS
* API Documentation
*/
default ListMetricSetsPublisher listMetricSetsPaginator(Consumer listMetricSetsRequest) {
return listMetricSetsPaginator(ListMetricSetsRequest.builder().applyMutation(listMetricSetsRequest).build());
}
/**
*
* Gets a list of tags for a
* detector, dataset, or alert.
*
*
* @param listTagsForResourceRequest
* @return A Java Future containing the result of the ListTagsForResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListTagsForResource
* @see AWS API Documentation
*/
default CompletableFuture listTagsForResource(
ListTagsForResourceRequest listTagsForResourceRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets a list of tags for a
* detector, dataset, or alert.
*
*
*
* This is a convenience which creates an instance of the {@link ListTagsForResourceRequest.Builder} avoiding the
* need to create one manually via {@link ListTagsForResourceRequest#builder()}
*
*
* @param listTagsForResourceRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.ListTagsForResourceRequest.Builder} to create
* a request.
* @return A Java Future containing the result of the ListTagsForResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.ListTagsForResource
* @see AWS API Documentation
*/
default CompletableFuture listTagsForResource(
Consumer listTagsForResourceRequest) {
return listTagsForResource(ListTagsForResourceRequest.builder().applyMutation(listTagsForResourceRequest).build());
}
/**
*
* Add feedback for an anomalous metric.
*
*
* @param putFeedbackRequest
* @return A Java Future containing the result of the PutFeedback operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.PutFeedback
* @see AWS
* API Documentation
*/
default CompletableFuture putFeedback(PutFeedbackRequest putFeedbackRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Add feedback for an anomalous metric.
*
*
*
* This is a convenience which creates an instance of the {@link PutFeedbackRequest.Builder} avoiding the need to
* create one manually via {@link PutFeedbackRequest#builder()}
*
*
* @param putFeedbackRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.PutFeedbackRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the PutFeedback operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.PutFeedback
* @see AWS
* API Documentation
*/
default CompletableFuture putFeedback(Consumer putFeedbackRequest) {
return putFeedback(PutFeedbackRequest.builder().applyMutation(putFeedbackRequest).build());
}
/**
*
* Adds tags to a detector,
* dataset, or alert.
*
*
* @param tagResourceRequest
* @return A Java Future containing the result of the TagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.TagResource
* @see AWS
* API Documentation
*/
default CompletableFuture tagResource(TagResourceRequest tagResourceRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Adds tags to a detector,
* dataset, or alert.
*
*
*
* This is a convenience which creates an instance of the {@link TagResourceRequest.Builder} avoiding the need to
* create one manually via {@link TagResourceRequest#builder()}
*
*
* @param tagResourceRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.TagResourceRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the TagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.TagResource
* @see AWS
* API Documentation
*/
default CompletableFuture tagResource(Consumer tagResourceRequest) {
return tagResource(TagResourceRequest.builder().applyMutation(tagResourceRequest).build());
}
/**
*
* Removes tags from a
* detector, dataset, or alert.
*
*
* @param untagResourceRequest
* @return A Java Future containing the result of the UntagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.UntagResource
* @see AWS
* API Documentation
*/
default CompletableFuture untagResource(UntagResourceRequest untagResourceRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Removes tags from a
* detector, dataset, or alert.
*
*
*
* This is a convenience which creates an instance of the {@link UntagResourceRequest.Builder} avoiding the need to
* create one manually via {@link UntagResourceRequest#builder()}
*
*
* @param untagResourceRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.UntagResourceRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the UntagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.UntagResource
* @see AWS
* API Documentation
*/
default CompletableFuture untagResource(Consumer untagResourceRequest) {
return untagResource(UntagResourceRequest.builder().applyMutation(untagResourceRequest).build());
}
/**
*
* Make changes to an existing alert.
*
*
* @param updateAlertRequest
* @return A Java Future containing the result of the UpdateAlert operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.UpdateAlert
* @see AWS
* API Documentation
*/
default CompletableFuture updateAlert(UpdateAlertRequest updateAlertRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Make changes to an existing alert.
*
*
*
* This is a convenience which creates an instance of the {@link UpdateAlertRequest.Builder} avoiding the need to
* create one manually via {@link UpdateAlertRequest#builder()}
*
*
* @param updateAlertRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.UpdateAlertRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the UpdateAlert operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.UpdateAlert
* @see AWS
* API Documentation
*/
default CompletableFuture updateAlert(Consumer updateAlertRequest) {
return updateAlert(UpdateAlertRequest.builder().applyMutation(updateAlertRequest).build());
}
/**
*
* Updates a detector. After activation, you can only change a detector's ingestion delay and description.
*
*
* @param updateAnomalyDetectorRequest
* @return A Java Future containing the result of the UpdateAnomalyDetector operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.UpdateAnomalyDetector
* @see AWS API Documentation
*/
default CompletableFuture updateAnomalyDetector(
UpdateAnomalyDetectorRequest updateAnomalyDetectorRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Updates a detector. After activation, you can only change a detector's ingestion delay and description.
*
*
*
* This is a convenience which creates an instance of the {@link UpdateAnomalyDetectorRequest.Builder} avoiding the
* need to create one manually via {@link UpdateAnomalyDetectorRequest#builder()}
*
*
* @param updateAnomalyDetectorRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.UpdateAnomalyDetectorRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the UpdateAnomalyDetector operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.UpdateAnomalyDetector
* @see AWS API Documentation
*/
default CompletableFuture updateAnomalyDetector(
Consumer updateAnomalyDetectorRequest) {
return updateAnomalyDetector(UpdateAnomalyDetectorRequest.builder().applyMutation(updateAnomalyDetectorRequest).build());
}
/**
*
* Updates a dataset.
*
*
* @param updateMetricSetRequest
* @return A Java Future containing the result of the UpdateMetricSet operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - ServiceQuotaExceededException The request exceeded the service's quotas. Check the service quotas and
* try again.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.UpdateMetricSet
* @see AWS API Documentation
*/
default CompletableFuture updateMetricSet(UpdateMetricSetRequest updateMetricSetRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Updates a dataset.
*
*
*
* This is a convenience which creates an instance of the {@link UpdateMetricSetRequest.Builder} avoiding the need
* to create one manually via {@link UpdateMetricSetRequest#builder()}
*
*
* @param updateMetricSetRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.lookoutmetrics.model.UpdateMetricSetRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the UpdateMetricSet operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The specified resource cannot be found. Check the ARN of the resource and
* try again.
* - ValidationException The input fails to satisfy the constraints specified by the AWS service. Check
* your input values and try again.
* - InternalServerException The request processing has failed because of an unknown error, exception, or
* failure.
* - AccessDeniedException You do not have sufficient permissions to perform this action.
* - TooManyRequestsException The request was denied due to too many requests being submitted at the same
* time.
* - ServiceQuotaExceededException The request exceeded the service's quotas. Check the service quotas and
* try again.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - LookoutMetricsException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample LookoutMetricsAsyncClient.UpdateMetricSet
* @see AWS API Documentation
*/
default CompletableFuture updateMetricSet(
Consumer updateMetricSetRequest) {
return updateMetricSet(UpdateMetricSetRequest.builder().applyMutation(updateMetricSetRequest).build());
}
@Override
default LookoutMetricsServiceClientConfiguration serviceClientConfiguration() {
throw new UnsupportedOperationException();
}
/**
* Create a {@link LookoutMetricsAsyncClient} with the region loaded from the
* {@link software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain} and credentials loaded from the
* {@link software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider}.
*/
static LookoutMetricsAsyncClient create() {
return builder().build();
}
/**
* Create a builder that can be used to configure and create a {@link LookoutMetricsAsyncClient}.
*/
static LookoutMetricsAsyncClientBuilder builder() {
return new DefaultLookoutMetricsAsyncClientBuilder();
}
}