/* * Copyright 2018-2023 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 com.amazonaws.services.braket; import javax.annotation.Generated; import com.amazonaws.services.braket.model.*; /** * Interface for accessing Braket asynchronously. Each asynchronous method will return a Java Future object representing * the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive notification when * an asynchronous operation completes. *
* Note: Do not directly implement this interface, new methods are added to it regularly. Extend from * {@link com.amazonaws.services.braket.AbstractAWSBraketAsync} instead. *
**
* The Amazon Braket API Reference provides information about the operations and structures supported in Amazon Braket. *
** Additional Resources: *
** Cancels an Amazon Braket job. *
* * @param cancelJobRequest * @return A Java Future containing the result of the CancelJob operation returned by the service. * @sample AWSBraketAsync.CancelJob * @see AWS API * Documentation */ java.util.concurrent.Future* Cancels an Amazon Braket job. *
* * @param cancelJobRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the CancelJob operation returned by the service. * @sample AWSBraketAsyncHandler.CancelJob * @see AWS API * Documentation */ java.util.concurrent.Future* Cancels the specified task. *
* * @param cancelQuantumTaskRequest * @return A Java Future containing the result of the CancelQuantumTask operation returned by the service. * @sample AWSBraketAsync.CancelQuantumTask * @see AWS API * Documentation */ java.util.concurrent.Future* Cancels the specified task. *
* * @param cancelQuantumTaskRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the CancelQuantumTask operation returned by the service. * @sample AWSBraketAsyncHandler.CancelQuantumTask * @see AWS API * Documentation */ java.util.concurrent.Future* Creates an Amazon Braket job. *
* * @param createJobRequest * @return A Java Future containing the result of the CreateJob operation returned by the service. * @sample AWSBraketAsync.CreateJob * @see AWS API * Documentation */ java.util.concurrent.Future* Creates an Amazon Braket job. *
* * @param createJobRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the CreateJob operation returned by the service. * @sample AWSBraketAsyncHandler.CreateJob * @see AWS API * Documentation */ java.util.concurrent.Future* Creates a quantum task. *
* * @param createQuantumTaskRequest * @return A Java Future containing the result of the CreateQuantumTask operation returned by the service. * @sample AWSBraketAsync.CreateQuantumTask * @see AWS API * Documentation */ java.util.concurrent.Future* Creates a quantum task. *
* * @param createQuantumTaskRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the CreateQuantumTask operation returned by the service. * @sample AWSBraketAsyncHandler.CreateQuantumTask * @see AWS API * Documentation */ java.util.concurrent.Future* Retrieves the devices available in Amazon Braket. *
** For backwards compatibility with older versions of BraketSchemas, OpenQASM information is omitted from GetDevice * API calls. To get this information the user-agent needs to present a recent version of the BraketSchemas (1.8.0 * or later). The Braket SDK automatically reports this for you. If you do not see OpenQASM results in the GetDevice * response when using a Braket SDK, you may need to set AWS_EXECUTION_ENV environment variable to configure * user-agent. See the code examples provided below for how to do this for the AWS CLI, Boto3, and the Go, Java, and * JavaScript/TypeScript SDKs. *
** Retrieves the devices available in Amazon Braket. *
** For backwards compatibility with older versions of BraketSchemas, OpenQASM information is omitted from GetDevice * API calls. To get this information the user-agent needs to present a recent version of the BraketSchemas (1.8.0 * or later). The Braket SDK automatically reports this for you. If you do not see OpenQASM results in the GetDevice * response when using a Braket SDK, you may need to set AWS_EXECUTION_ENV environment variable to configure * user-agent. See the code examples provided below for how to do this for the AWS CLI, Boto3, and the Go, Java, and * JavaScript/TypeScript SDKs. *
** Retrieves the specified Amazon Braket job. *
* * @param getJobRequest * @return A Java Future containing the result of the GetJob operation returned by the service. * @sample AWSBraketAsync.GetJob * @see AWS API * Documentation */ java.util.concurrent.Future* Retrieves the specified Amazon Braket job. *
* * @param getJobRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the GetJob operation returned by the service. * @sample AWSBraketAsyncHandler.GetJob * @see AWS API * Documentation */ java.util.concurrent.Future* Retrieves the specified quantum task. *
* * @param getQuantumTaskRequest * @return A Java Future containing the result of the GetQuantumTask operation returned by the service. * @sample AWSBraketAsync.GetQuantumTask * @see AWS API * Documentation */ java.util.concurrent.Future* Retrieves the specified quantum task. *
* * @param getQuantumTaskRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the GetQuantumTask operation returned by the service. * @sample AWSBraketAsyncHandler.GetQuantumTask * @see AWS API * Documentation */ java.util.concurrent.Future* Shows the tags associated with this resource. *
* * @param listTagsForResourceRequest * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. * @sample AWSBraketAsync.ListTagsForResource * @see AWS API * Documentation */ java.util.concurrent.Future* Shows the tags associated with this resource. *
* * @param listTagsForResourceRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. * @sample AWSBraketAsyncHandler.ListTagsForResource * @see AWS API * Documentation */ java.util.concurrent.Future* Searches for devices using the specified filters. *
* * @param searchDevicesRequest * @return A Java Future containing the result of the SearchDevices operation returned by the service. * @sample AWSBraketAsync.SearchDevices * @see AWS API * Documentation */ java.util.concurrent.Future* Searches for devices using the specified filters. *
* * @param searchDevicesRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the SearchDevices operation returned by the service. * @sample AWSBraketAsyncHandler.SearchDevices * @see AWS API * Documentation */ java.util.concurrent.Future* Searches for Amazon Braket jobs that match the specified filter values. *
* * @param searchJobsRequest * @return A Java Future containing the result of the SearchJobs operation returned by the service. * @sample AWSBraketAsync.SearchJobs * @see AWS API * Documentation */ java.util.concurrent.Future* Searches for Amazon Braket jobs that match the specified filter values. *
* * @param searchJobsRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the SearchJobs operation returned by the service. * @sample AWSBraketAsyncHandler.SearchJobs * @see AWS API * Documentation */ java.util.concurrent.Future* Searches for tasks that match the specified filter values. *
* * @param searchQuantumTasksRequest * @return A Java Future containing the result of the SearchQuantumTasks operation returned by the service. * @sample AWSBraketAsync.SearchQuantumTasks * @see AWS API * Documentation */ java.util.concurrent.Future* Searches for tasks that match the specified filter values. *
* * @param searchQuantumTasksRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the SearchQuantumTasks operation returned by the service. * @sample AWSBraketAsyncHandler.SearchQuantumTasks * @see AWS API * Documentation */ java.util.concurrent.Future* Add a tag to the specified resource. *
* * @param tagResourceRequest * @return A Java Future containing the result of the TagResource operation returned by the service. * @sample AWSBraketAsync.TagResource * @see AWS API * Documentation */ java.util.concurrent.Future* Add a tag to the specified resource. *
* * @param tagResourceRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the TagResource operation returned by the service. * @sample AWSBraketAsyncHandler.TagResource * @see AWS API * Documentation */ java.util.concurrent.Future* Remove tags from a resource. *
* * @param untagResourceRequest * @return A Java Future containing the result of the UntagResource operation returned by the service. * @sample AWSBraketAsync.UntagResource * @see AWS API * Documentation */ java.util.concurrent.Future* Remove tags from a resource. *
* * @param untagResourceRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the UntagResource operation returned by the service. * @sample AWSBraketAsyncHandler.UntagResource * @see AWS API * Documentation */ java.util.concurrent.Future