@Generated(value="software.amazon.awssdk:codegen") public interface LookoutVisionAsyncClient extends SdkClient
builder() method.
This is the Amazon Lookout for Vision API Reference. It provides descriptions of actions, data types, common parameters, and common errors.
Amazon Lookout for Vision enables you to find visual defects in industrial products, accurately and at scale. It uses computer vision to identify missing components in an industrial product, damage to vehicles or structures, irregularities in production lines, and even minuscule defects in silicon wafers — or any other physical item where quality is important such as a missing capacitor on printed circuit boards.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
static LookoutVisionAsyncClientBuilder |
builder()
Create a builder that can be used to configure and create a
LookoutVisionAsyncClient. |
static LookoutVisionAsyncClient |
create()
Create a
LookoutVisionAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CompletableFuture<CreateDatasetResponse> |
createDataset(Consumer<CreateDatasetRequest.Builder> createDatasetRequest)
Creates a new dataset in an Amazon Lookout for Vision project.
|
default CompletableFuture<CreateDatasetResponse> |
createDataset(CreateDatasetRequest createDatasetRequest)
Creates a new dataset in an Amazon Lookout for Vision project.
|
default CompletableFuture<CreateModelResponse> |
createModel(Consumer<CreateModelRequest.Builder> createModelRequest)
Creates a new version of a model within an an Amazon Lookout for Vision project.
|
default CompletableFuture<CreateModelResponse> |
createModel(CreateModelRequest createModelRequest)
Creates a new version of a model within an an Amazon Lookout for Vision project.
|
default CompletableFuture<CreateProjectResponse> |
createProject(Consumer<CreateProjectRequest.Builder> createProjectRequest)
Creates an empty Amazon Lookout for Vision project.
|
default CompletableFuture<CreateProjectResponse> |
createProject(CreateProjectRequest createProjectRequest)
Creates an empty Amazon Lookout for Vision project.
|
default CompletableFuture<DeleteDatasetResponse> |
deleteDataset(Consumer<DeleteDatasetRequest.Builder> deleteDatasetRequest)
Deletes an existing Amazon Lookout for Vision
dataset. |
default CompletableFuture<DeleteDatasetResponse> |
deleteDataset(DeleteDatasetRequest deleteDatasetRequest)
Deletes an existing Amazon Lookout for Vision
dataset. |
default CompletableFuture<DeleteModelResponse> |
deleteModel(Consumer<DeleteModelRequest.Builder> deleteModelRequest)
Deletes an Amazon Lookout for Vision model.
|
default CompletableFuture<DeleteModelResponse> |
deleteModel(DeleteModelRequest deleteModelRequest)
Deletes an Amazon Lookout for Vision model.
|
default CompletableFuture<DeleteProjectResponse> |
deleteProject(Consumer<DeleteProjectRequest.Builder> deleteProjectRequest)
Deletes an Amazon Lookout for Vision project.
|
default CompletableFuture<DeleteProjectResponse> |
deleteProject(DeleteProjectRequest deleteProjectRequest)
Deletes an Amazon Lookout for Vision project.
|
default CompletableFuture<DescribeDatasetResponse> |
describeDataset(Consumer<DescribeDatasetRequest.Builder> describeDatasetRequest)
Describe an Amazon Lookout for Vision dataset.
|
default CompletableFuture<DescribeDatasetResponse> |
describeDataset(DescribeDatasetRequest describeDatasetRequest)
Describe an Amazon Lookout for Vision dataset.
|
default CompletableFuture<DescribeModelResponse> |
describeModel(Consumer<DescribeModelRequest.Builder> describeModelRequest)
Describes a version of an Amazon Lookout for Vision model.
|
default CompletableFuture<DescribeModelResponse> |
describeModel(DescribeModelRequest describeModelRequest)
Describes a version of an Amazon Lookout for Vision model.
|
default CompletableFuture<DescribeProjectResponse> |
describeProject(Consumer<DescribeProjectRequest.Builder> describeProjectRequest)
Describes an Amazon Lookout for Vision project.
|
default CompletableFuture<DescribeProjectResponse> |
describeProject(DescribeProjectRequest describeProjectRequest)
Describes an Amazon Lookout for Vision project.
|
default CompletableFuture<DetectAnomaliesResponse> |
detectAnomalies(Consumer<DetectAnomaliesRequest.Builder> detectAnomaliesRequest,
AsyncRequestBody requestBody)
Detects anomalies in an image that you supply.
|
default CompletableFuture<DetectAnomaliesResponse> |
detectAnomalies(Consumer<DetectAnomaliesRequest.Builder> detectAnomaliesRequest,
Path sourcePath)
Detects anomalies in an image that you supply.
|
default CompletableFuture<DetectAnomaliesResponse> |
detectAnomalies(DetectAnomaliesRequest detectAnomaliesRequest,
AsyncRequestBody requestBody)
Detects anomalies in an image that you supply.
|
default CompletableFuture<DetectAnomaliesResponse> |
detectAnomalies(DetectAnomaliesRequest detectAnomaliesRequest,
Path sourcePath)
Detects anomalies in an image that you supply.
|
default CompletableFuture<ListDatasetEntriesResponse> |
listDatasetEntries(Consumer<ListDatasetEntriesRequest.Builder> listDatasetEntriesRequest)
Lists the JSON Lines within a dataset.
|
default CompletableFuture<ListDatasetEntriesResponse> |
listDatasetEntries(ListDatasetEntriesRequest listDatasetEntriesRequest)
Lists the JSON Lines within a dataset.
|
default ListDatasetEntriesPublisher |
listDatasetEntriesPaginator(Consumer<ListDatasetEntriesRequest.Builder> listDatasetEntriesRequest)
Lists the JSON Lines within a dataset.
|
default ListDatasetEntriesPublisher |
listDatasetEntriesPaginator(ListDatasetEntriesRequest listDatasetEntriesRequest)
Lists the JSON Lines within a dataset.
|
default CompletableFuture<ListModelsResponse> |
listModels(Consumer<ListModelsRequest.Builder> listModelsRequest)
Lists the versions of a model in an Amazon Lookout for Vision project.
|
default CompletableFuture<ListModelsResponse> |
listModels(ListModelsRequest listModelsRequest)
Lists the versions of a model in an Amazon Lookout for Vision project.
|
default ListModelsPublisher |
listModelsPaginator(Consumer<ListModelsRequest.Builder> listModelsRequest)
Lists the versions of a model in an Amazon Lookout for Vision project.
|
default ListModelsPublisher |
listModelsPaginator(ListModelsRequest listModelsRequest)
Lists the versions of a model in an Amazon Lookout for Vision project.
|
default CompletableFuture<ListProjectsResponse> |
listProjects(Consumer<ListProjectsRequest.Builder> listProjectsRequest)
Lists the Amazon Lookout for Vision projects in your AWS account.
|
default CompletableFuture<ListProjectsResponse> |
listProjects(ListProjectsRequest listProjectsRequest)
Lists the Amazon Lookout for Vision projects in your AWS account.
|
default ListProjectsPublisher |
listProjectsPaginator(Consumer<ListProjectsRequest.Builder> listProjectsRequest)
Lists the Amazon Lookout for Vision projects in your AWS account.
|
default ListProjectsPublisher |
listProjectsPaginator(ListProjectsRequest listProjectsRequest)
Lists the Amazon Lookout for Vision projects in your AWS account.
|
default CompletableFuture<StartModelResponse> |
startModel(Consumer<StartModelRequest.Builder> startModelRequest)
Starts the running of the version of an Amazon Lookout for Vision model.
|
default CompletableFuture<StartModelResponse> |
startModel(StartModelRequest startModelRequest)
Starts the running of the version of an Amazon Lookout for Vision model.
|
default CompletableFuture<StopModelResponse> |
stopModel(Consumer<StopModelRequest.Builder> stopModelRequest)
Stops a running model.
|
default CompletableFuture<StopModelResponse> |
stopModel(StopModelRequest stopModelRequest)
Stops a running model.
|
default CompletableFuture<UpdateDatasetEntriesResponse> |
updateDatasetEntries(Consumer<UpdateDatasetEntriesRequest.Builder> updateDatasetEntriesRequest)
Adds one or more JSON Line entries to a dataset.
|
default CompletableFuture<UpdateDatasetEntriesResponse> |
updateDatasetEntries(UpdateDatasetEntriesRequest updateDatasetEntriesRequest)
Adds one or more JSON Line entries to a dataset.
|
serviceNameclosestatic final String SERVICE_NAME
static LookoutVisionAsyncClient create()
LookoutVisionAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static LookoutVisionAsyncClientBuilder builder()
LookoutVisionAsyncClient.default CompletableFuture<CreateDatasetResponse> createDataset(CreateDatasetRequest createDatasetRequest)
Creates a new dataset in an Amazon Lookout for Vision project. CreateDataset can create a training
or a test dataset from a valid dataset source (DatasetSource).
If you want a single dataset project, specify train for the value of DatasetType.
To have a project with separate training and test datasets, call CreateDataset twice. On the first
call, specify train for the value of DatasetType. On the second call, specify
test for the value of DatasetType. of dataset with
createDatasetRequest - default CompletableFuture<CreateDatasetResponse> createDataset(Consumer<CreateDatasetRequest.Builder> createDatasetRequest)
Creates a new dataset in an Amazon Lookout for Vision project. CreateDataset can create a training
or a test dataset from a valid dataset source (DatasetSource).
If you want a single dataset project, specify train for the value of DatasetType.
To have a project with separate training and test datasets, call CreateDataset twice. On the first
call, specify train for the value of DatasetType. On the second call, specify
test for the value of DatasetType. of dataset with
This is a convenience which creates an instance of the CreateDatasetRequest.Builder avoiding the need to
create one manually via CreateDatasetRequest.builder()
createDatasetRequest - A Consumer that will call methods on CreateDatasetRequest.Builder to create a request.default CompletableFuture<CreateModelResponse> createModel(CreateModelRequest createModelRequest)
Creates a new version of a model within an an Amazon Lookout for Vision project. CreateModel is an
asynchronous operation in which Amazon Lookout for Vision trains, tests, and evaluates a new version of a model.
To get the current status, check the Status field returned in the response from
DescribeModel.
If the project has a single dataset, Amazon Lookout for Vision internally splits the dataset to create a training and a test dataset. If the project has a training and a test dataset, Lookout for Vision uses the respective datasets to train and test the model.
After training completes, the evaluation metrics are stored at the location specified in
OutputConfig.
createModelRequest - default CompletableFuture<CreateModelResponse> createModel(Consumer<CreateModelRequest.Builder> createModelRequest)
Creates a new version of a model within an an Amazon Lookout for Vision project. CreateModel is an
asynchronous operation in which Amazon Lookout for Vision trains, tests, and evaluates a new version of a model.
To get the current status, check the Status field returned in the response from
DescribeModel.
If the project has a single dataset, Amazon Lookout for Vision internally splits the dataset to create a training and a test dataset. If the project has a training and a test dataset, Lookout for Vision uses the respective datasets to train and test the model.
After training completes, the evaluation metrics are stored at the location specified in
OutputConfig.
This is a convenience which creates an instance of the CreateModelRequest.Builder avoiding the need to
create one manually via CreateModelRequest.builder()
createModelRequest - A Consumer that will call methods on CreateModelRequest.Builder to create a request.default CompletableFuture<CreateProjectResponse> createProject(CreateProjectRequest createProjectRequest)
Creates an empty Amazon Lookout for Vision project. After you create the project, add a dataset by calling CreateDataset.
createProjectRequest - default CompletableFuture<CreateProjectResponse> createProject(Consumer<CreateProjectRequest.Builder> createProjectRequest)
Creates an empty Amazon Lookout for Vision project. After you create the project, add a dataset by calling CreateDataset.
This is a convenience which creates an instance of the CreateProjectRequest.Builder avoiding the need to
create one manually via CreateProjectRequest.builder()
createProjectRequest - A Consumer that will call methods on CreateProjectRequest.Builder to create a request.default CompletableFuture<DeleteDatasetResponse> deleteDataset(DeleteDatasetRequest deleteDatasetRequest)
Deletes an existing Amazon Lookout for Vision dataset.
If your the project has a single dataset, you must create a new dataset before you can create a model.
If you project has a training dataset and a test dataset consider the following.
If you delete the test dataset, your project reverts to a single dataset project. If you then train the model, Amazon Lookout for Vision internally splits the remaining dataset into a training and test dataset.
If you delete the training dataset, you must create a training dataset before you can create a model.
It might take a while to delete the dataset. To check the current status, check the Status field in
the response from a call to DescribeDataset.
deleteDatasetRequest - default CompletableFuture<DeleteDatasetResponse> deleteDataset(Consumer<DeleteDatasetRequest.Builder> deleteDatasetRequest)
Deletes an existing Amazon Lookout for Vision dataset.
If your the project has a single dataset, you must create a new dataset before you can create a model.
If you project has a training dataset and a test dataset consider the following.
If you delete the test dataset, your project reverts to a single dataset project. If you then train the model, Amazon Lookout for Vision internally splits the remaining dataset into a training and test dataset.
If you delete the training dataset, you must create a training dataset before you can create a model.
It might take a while to delete the dataset. To check the current status, check the Status field in
the response from a call to DescribeDataset.
This is a convenience which creates an instance of the DeleteDatasetRequest.Builder avoiding the need to
create one manually via DeleteDatasetRequest.builder()
deleteDatasetRequest - A Consumer that will call methods on DeleteDatasetRequest.Builder to create a request.default CompletableFuture<DeleteModelResponse> deleteModel(DeleteModelRequest deleteModelRequest)
Deletes an Amazon Lookout for Vision model. You can't delete a running model. To stop a running model, use the StopModel operation.
deleteModelRequest - default CompletableFuture<DeleteModelResponse> deleteModel(Consumer<DeleteModelRequest.Builder> deleteModelRequest)
Deletes an Amazon Lookout for Vision model. You can't delete a running model. To stop a running model, use the StopModel operation.
This is a convenience which creates an instance of the DeleteModelRequest.Builder avoiding the need to
create one manually via DeleteModelRequest.builder()
deleteModelRequest - A Consumer that will call methods on DeleteModelRequest.Builder to create a request.default CompletableFuture<DeleteProjectResponse> deleteProject(DeleteProjectRequest deleteProjectRequest)
Deletes an Amazon Lookout for Vision project.
To delete a project, you must first delete each version of the model associated with the project. To delete a model use the DeleteModel operation.
The training and test datasets are deleted automatically for you. The images referenced by the training and test datasets aren't deleted.
deleteProjectRequest - default CompletableFuture<DeleteProjectResponse> deleteProject(Consumer<DeleteProjectRequest.Builder> deleteProjectRequest)
Deletes an Amazon Lookout for Vision project.
To delete a project, you must first delete each version of the model associated with the project. To delete a model use the DeleteModel operation.
The training and test datasets are deleted automatically for you. The images referenced by the training and test datasets aren't deleted.
This is a convenience which creates an instance of the DeleteProjectRequest.Builder avoiding the need to
create one manually via DeleteProjectRequest.builder()
deleteProjectRequest - A Consumer that will call methods on DeleteProjectRequest.Builder to create a request.default CompletableFuture<DescribeDatasetResponse> describeDataset(DescribeDatasetRequest describeDatasetRequest)
Describe an Amazon Lookout for Vision dataset.
describeDatasetRequest - default CompletableFuture<DescribeDatasetResponse> describeDataset(Consumer<DescribeDatasetRequest.Builder> describeDatasetRequest)
Describe an Amazon Lookout for Vision dataset.
This is a convenience which creates an instance of the DescribeDatasetRequest.Builder avoiding the need
to create one manually via DescribeDatasetRequest.builder()
describeDatasetRequest - A Consumer that will call methods on DescribeDatasetRequest.Builder to create a request.default CompletableFuture<DescribeModelResponse> describeModel(DescribeModelRequest describeModelRequest)
Describes a version of an Amazon Lookout for Vision model.
describeModelRequest - default CompletableFuture<DescribeModelResponse> describeModel(Consumer<DescribeModelRequest.Builder> describeModelRequest)
Describes a version of an Amazon Lookout for Vision model.
This is a convenience which creates an instance of the DescribeModelRequest.Builder avoiding the need to
create one manually via DescribeModelRequest.builder()
describeModelRequest - A Consumer that will call methods on DescribeModelRequest.Builder to create a request.default CompletableFuture<DescribeProjectResponse> describeProject(DescribeProjectRequest describeProjectRequest)
Describes an Amazon Lookout for Vision project.
describeProjectRequest - default CompletableFuture<DescribeProjectResponse> describeProject(Consumer<DescribeProjectRequest.Builder> describeProjectRequest)
Describes an Amazon Lookout for Vision project.
This is a convenience which creates an instance of the DescribeProjectRequest.Builder avoiding the need
to create one manually via DescribeProjectRequest.builder()
describeProjectRequest - A Consumer that will call methods on DescribeProjectRequest.Builder to create a request.default CompletableFuture<DetectAnomaliesResponse> detectAnomalies(DetectAnomaliesRequest detectAnomaliesRequest, AsyncRequestBody requestBody)
Detects anomalies in an image that you supply.
The response from DetectAnomalies includes a boolean prediction that the image contains one or more
anomalies and a confidence value for the prediction.
Before calling DetectAnomalies, you must first start your model with the StartModel
operation. You are charged for the amount of time, in minutes, that a model runs and for the number of anomaly
detection units that your model uses. If you are not using a model, use the StopModel operation to stop
your model.
detectAnomaliesRequest - requestBody - Functional interface that can be implemented to produce the request content in a non-blocking manner. The
size of the content is expected to be known up front. See AsyncRequestBody for specific details on
implementing this interface as well as links to precanned implementations for common scenarios like
uploading from a file. The service documentation for the request content is as follows '
The unencrypted image bytes that you want to analyze.
'default CompletableFuture<DetectAnomaliesResponse> detectAnomalies(Consumer<DetectAnomaliesRequest.Builder> detectAnomaliesRequest, AsyncRequestBody requestBody)
Detects anomalies in an image that you supply.
The response from DetectAnomalies includes a boolean prediction that the image contains one or more
anomalies and a confidence value for the prediction.
Before calling DetectAnomalies, you must first start your model with the StartModel
operation. You are charged for the amount of time, in minutes, that a model runs and for the number of anomaly
detection units that your model uses. If you are not using a model, use the StopModel operation to stop
your model.
This is a convenience which creates an instance of the DetectAnomaliesRequest.Builder avoiding the need
to create one manually via DetectAnomaliesRequest.builder()
detectAnomaliesRequest - A Consumer that will call methods on DetectAnomaliesRequest.Builder to create a request.requestBody - Functional interface that can be implemented to produce the request content in a non-blocking manner. The
size of the content is expected to be known up front. See AsyncRequestBody for specific details on
implementing this interface as well as links to precanned implementations for common scenarios like
uploading from a file. The service documentation for the request content is as follows '
The unencrypted image bytes that you want to analyze.
'default CompletableFuture<DetectAnomaliesResponse> detectAnomalies(DetectAnomaliesRequest detectAnomaliesRequest, Path sourcePath)
Detects anomalies in an image that you supply.
The response from DetectAnomalies includes a boolean prediction that the image contains one or more
anomalies and a confidence value for the prediction.
Before calling DetectAnomalies, you must first start your model with the StartModel
operation. You are charged for the amount of time, in minutes, that a model runs and for the number of anomaly
detection units that your model uses. If you are not using a model, use the StopModel operation to stop
your model.
detectAnomaliesRequest - sourcePath - Path to file containing data to send to the service. File will be read entirely and may be read
multiple times in the event of a retry. If the file does not exist or the current user does not have
access to read it then an exception will be thrown. The service documentation for the request content is
as follows '
The unencrypted image bytes that you want to analyze.
'default CompletableFuture<DetectAnomaliesResponse> detectAnomalies(Consumer<DetectAnomaliesRequest.Builder> detectAnomaliesRequest, Path sourcePath)
Detects anomalies in an image that you supply.
The response from DetectAnomalies includes a boolean prediction that the image contains one or more
anomalies and a confidence value for the prediction.
Before calling DetectAnomalies, you must first start your model with the StartModel
operation. You are charged for the amount of time, in minutes, that a model runs and for the number of anomaly
detection units that your model uses. If you are not using a model, use the StopModel operation to stop
your model.
This is a convenience which creates an instance of the DetectAnomaliesRequest.Builder avoiding the need
to create one manually via DetectAnomaliesRequest.builder()
detectAnomaliesRequest - A Consumer that will call methods on DetectAnomaliesRequest.Builder to create a request.sourcePath - Path to file containing data to send to the service. File will be read entirely and may be read
multiple times in the event of a retry. If the file does not exist or the current user does not have
access to read it then an exception will be thrown. The service documentation for the request content is
as follows '
The unencrypted image bytes that you want to analyze.
'default CompletableFuture<ListDatasetEntriesResponse> listDatasetEntries(ListDatasetEntriesRequest listDatasetEntriesRequest)
Lists the JSON Lines within a dataset. An Amazon Lookout for Vision JSON Line contains the anomaly information for a single image, including the image location and the assigned label.
listDatasetEntriesRequest - default CompletableFuture<ListDatasetEntriesResponse> listDatasetEntries(Consumer<ListDatasetEntriesRequest.Builder> listDatasetEntriesRequest)
Lists the JSON Lines within a dataset. An Amazon Lookout for Vision JSON Line contains the anomaly information for a single image, including the image location and the assigned label.
This is a convenience which creates an instance of the ListDatasetEntriesRequest.Builder avoiding the
need to create one manually via ListDatasetEntriesRequest.builder()
listDatasetEntriesRequest - A Consumer that will call methods on ListDatasetEntriesRequest.Builder to create a
request.default ListDatasetEntriesPublisher listDatasetEntriesPaginator(ListDatasetEntriesRequest listDatasetEntriesRequest)
Lists the JSON Lines within a dataset. An Amazon Lookout for Vision JSON Line contains the anomaly information for a single image, including the image location and the assigned label.
This is a variant of
listDatasetEntries(software.amazon.awssdk.services.lookoutvision.model.ListDatasetEntriesRequest)
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
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new 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
software.amazon.awssdk.services.lookoutvision.paginators.ListDatasetEntriesPublisher publisher = client.listDatasetEntriesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lookoutvision.paginators.ListDatasetEntriesPublisher publisher = client.listDatasetEntriesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutvision.model.ListDatasetEntriesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lookoutvision.model.ListDatasetEntriesResponse 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
listDatasetEntries(software.amazon.awssdk.services.lookoutvision.model.ListDatasetEntriesRequest)
operation.
listDatasetEntriesRequest - default ListDatasetEntriesPublisher listDatasetEntriesPaginator(Consumer<ListDatasetEntriesRequest.Builder> listDatasetEntriesRequest)
Lists the JSON Lines within a dataset. An Amazon Lookout for Vision JSON Line contains the anomaly information for a single image, including the image location and the assigned label.
This is a variant of
listDatasetEntries(software.amazon.awssdk.services.lookoutvision.model.ListDatasetEntriesRequest)
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
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new 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
software.amazon.awssdk.services.lookoutvision.paginators.ListDatasetEntriesPublisher publisher = client.listDatasetEntriesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lookoutvision.paginators.ListDatasetEntriesPublisher publisher = client.listDatasetEntriesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutvision.model.ListDatasetEntriesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lookoutvision.model.ListDatasetEntriesResponse 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
listDatasetEntries(software.amazon.awssdk.services.lookoutvision.model.ListDatasetEntriesRequest)
operation.
This is a convenience which creates an instance of the ListDatasetEntriesRequest.Builder avoiding the
need to create one manually via ListDatasetEntriesRequest.builder()
listDatasetEntriesRequest - A Consumer that will call methods on ListDatasetEntriesRequest.Builder to create a
request.default CompletableFuture<ListModelsResponse> listModels(ListModelsRequest listModelsRequest)
Lists the versions of a model in an Amazon Lookout for Vision project.
listModelsRequest - default CompletableFuture<ListModelsResponse> listModels(Consumer<ListModelsRequest.Builder> listModelsRequest)
Lists the versions of a model in an Amazon Lookout for Vision project.
This is a convenience which creates an instance of the ListModelsRequest.Builder avoiding the need to
create one manually via ListModelsRequest.builder()
listModelsRequest - A Consumer that will call methods on ListModelsRequest.Builder to create a request.default ListModelsPublisher listModelsPaginator(ListModelsRequest listModelsRequest)
Lists the versions of a model in an Amazon Lookout for Vision project.
This is a variant of listModels(software.amazon.awssdk.services.lookoutvision.model.ListModelsRequest)
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
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new 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
software.amazon.awssdk.services.lookoutvision.paginators.ListModelsPublisher publisher = client.listModelsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lookoutvision.paginators.ListModelsPublisher publisher = client.listModelsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutvision.model.ListModelsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lookoutvision.model.ListModelsResponse 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
listModels(software.amazon.awssdk.services.lookoutvision.model.ListModelsRequest) operation.
listModelsRequest - default ListModelsPublisher listModelsPaginator(Consumer<ListModelsRequest.Builder> listModelsRequest)
Lists the versions of a model in an Amazon Lookout for Vision project.
This is a variant of listModels(software.amazon.awssdk.services.lookoutvision.model.ListModelsRequest)
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
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new 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
software.amazon.awssdk.services.lookoutvision.paginators.ListModelsPublisher publisher = client.listModelsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lookoutvision.paginators.ListModelsPublisher publisher = client.listModelsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutvision.model.ListModelsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lookoutvision.model.ListModelsResponse 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
listModels(software.amazon.awssdk.services.lookoutvision.model.ListModelsRequest) operation.
This is a convenience which creates an instance of the ListModelsRequest.Builder avoiding the need to
create one manually via ListModelsRequest.builder()
listModelsRequest - A Consumer that will call methods on ListModelsRequest.Builder to create a request.default CompletableFuture<ListProjectsResponse> listProjects(ListProjectsRequest listProjectsRequest)
Lists the Amazon Lookout for Vision projects in your AWS account.
listProjectsRequest - default CompletableFuture<ListProjectsResponse> listProjects(Consumer<ListProjectsRequest.Builder> listProjectsRequest)
Lists the Amazon Lookout for Vision projects in your AWS account.
This is a convenience which creates an instance of the ListProjectsRequest.Builder avoiding the need to
create one manually via ListProjectsRequest.builder()
listProjectsRequest - A Consumer that will call methods on ListProjectsRequest.Builder to create a request.default ListProjectsPublisher listProjectsPaginator(ListProjectsRequest listProjectsRequest)
Lists the Amazon Lookout for Vision projects in your AWS account.
This is a variant of
listProjects(software.amazon.awssdk.services.lookoutvision.model.ListProjectsRequest) 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
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new 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
software.amazon.awssdk.services.lookoutvision.paginators.ListProjectsPublisher publisher = client.listProjectsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lookoutvision.paginators.ListProjectsPublisher publisher = client.listProjectsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutvision.model.ListProjectsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lookoutvision.model.ListProjectsResponse 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
listProjects(software.amazon.awssdk.services.lookoutvision.model.ListProjectsRequest) operation.
listProjectsRequest - default ListProjectsPublisher listProjectsPaginator(Consumer<ListProjectsRequest.Builder> listProjectsRequest)
Lists the Amazon Lookout for Vision projects in your AWS account.
This is a variant of
listProjects(software.amazon.awssdk.services.lookoutvision.model.ListProjectsRequest) 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
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new 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
software.amazon.awssdk.services.lookoutvision.paginators.ListProjectsPublisher publisher = client.listProjectsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lookoutvision.paginators.ListProjectsPublisher publisher = client.listProjectsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lookoutvision.model.ListProjectsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lookoutvision.model.ListProjectsResponse 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
listProjects(software.amazon.awssdk.services.lookoutvision.model.ListProjectsRequest) operation.
This is a convenience which creates an instance of the ListProjectsRequest.Builder avoiding the need to
create one manually via ListProjectsRequest.builder()
listProjectsRequest - A Consumer that will call methods on ListProjectsRequest.Builder to create a request.default CompletableFuture<StartModelResponse> startModel(StartModelRequest startModelRequest)
Starts the running of the version of an Amazon Lookout for Vision model. Starting a model takes a while to complete. To check the current state of the model, use DescribeModel.
Once the model is running, you can detect custom labels in new images by calling DetectAnomalies.
You are charged for the amount of time that the model is running. To stop a running model, call StopModel.
startModelRequest - default CompletableFuture<StartModelResponse> startModel(Consumer<StartModelRequest.Builder> startModelRequest)
Starts the running of the version of an Amazon Lookout for Vision model. Starting a model takes a while to complete. To check the current state of the model, use DescribeModel.
Once the model is running, you can detect custom labels in new images by calling DetectAnomalies.
You are charged for the amount of time that the model is running. To stop a running model, call StopModel.
This is a convenience which creates an instance of the StartModelRequest.Builder avoiding the need to
create one manually via StartModelRequest.builder()
startModelRequest - A Consumer that will call methods on StartModelRequest.Builder to create a request.default CompletableFuture<StopModelResponse> stopModel(StopModelRequest stopModelRequest)
Stops a running model. The operation might take a while to complete. To check the current status, call DescribeModel.
stopModelRequest - default CompletableFuture<StopModelResponse> stopModel(Consumer<StopModelRequest.Builder> stopModelRequest)
Stops a running model. The operation might take a while to complete. To check the current status, call DescribeModel.
This is a convenience which creates an instance of the StopModelRequest.Builder avoiding the need to
create one manually via StopModelRequest.builder()
stopModelRequest - A Consumer that will call methods on StopModelRequest.Builder to create a request.default CompletableFuture<UpdateDatasetEntriesResponse> updateDatasetEntries(UpdateDatasetEntriesRequest updateDatasetEntriesRequest)
Adds one or more JSON Line entries to a dataset. A JSON Line includes information about an image used for training or testing an Amazon Lookout for Vision model. The following is an example JSON Line.
Updating a dataset might take a while to complete. To check the current status, call DescribeDataset and
check the Status field in the response.
updateDatasetEntriesRequest - default CompletableFuture<UpdateDatasetEntriesResponse> updateDatasetEntries(Consumer<UpdateDatasetEntriesRequest.Builder> updateDatasetEntriesRequest)
Adds one or more JSON Line entries to a dataset. A JSON Line includes information about an image used for training or testing an Amazon Lookout for Vision model. The following is an example JSON Line.
Updating a dataset might take a while to complete. To check the current status, call DescribeDataset and
check the Status field in the response.
This is a convenience which creates an instance of the UpdateDatasetEntriesRequest.Builder avoiding the
need to create one manually via UpdateDatasetEntriesRequest.builder()
updateDatasetEntriesRequest - A Consumer that will call methods on UpdateDatasetEntriesRequest.Builder to create a
request.Copyright © 2020. All rights reserved.