Interface Iot1ClickProjectsAsyncClient

    • Method Detail

      • associateDeviceWithPlacement

        default CompletableFuture<AssociateDeviceWithPlacementResponse> associateDeviceWithPlacement​(AssociateDeviceWithPlacementRequest associateDeviceWithPlacementRequest)

        Associates a physical device with a placement.

        Parameters:
        associateDeviceWithPlacementRequest -
        Returns:
        A Java Future containing the result of the AssociateDeviceWithPlacement operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • ResourceConflictException
        • ResourceNotFoundException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • associateDeviceWithPlacement

        default CompletableFuture<AssociateDeviceWithPlacementResponse> associateDeviceWithPlacement​(Consumer<AssociateDeviceWithPlacementRequest.Builder> associateDeviceWithPlacementRequest)

        Associates a physical device with a placement.


        This is a convenience which creates an instance of the AssociateDeviceWithPlacementRequest.Builder avoiding the need to create one manually via AssociateDeviceWithPlacementRequest.builder()

        Parameters:
        associateDeviceWithPlacementRequest - A Consumer that will call methods on AssociateDeviceWithPlacementRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the AssociateDeviceWithPlacement operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • ResourceConflictException
        • ResourceNotFoundException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createPlacement

        default CompletableFuture<CreatePlacementResponse> createPlacement​(CreatePlacementRequest createPlacementRequest)

        Creates an empty placement.

        Parameters:
        createPlacementRequest -
        Returns:
        A Java Future containing the result of the CreatePlacement operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • ResourceConflictException
        • ResourceNotFoundException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createPlacement

        default CompletableFuture<CreatePlacementResponse> createPlacement​(Consumer<CreatePlacementRequest.Builder> createPlacementRequest)

        Creates an empty placement.


        This is a convenience which creates an instance of the CreatePlacementRequest.Builder avoiding the need to create one manually via CreatePlacementRequest.builder()

        Parameters:
        createPlacementRequest - A Consumer that will call methods on CreatePlacementRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the CreatePlacement operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • ResourceConflictException
        • ResourceNotFoundException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createProject

        default CompletableFuture<CreateProjectResponse> createProject​(CreateProjectRequest createProjectRequest)

        Creates an empty project with a placement template. A project contains zero or more placements that adhere to the placement template defined in the project.

        Parameters:
        createProjectRequest -
        Returns:
        A Java Future containing the result of the CreateProject operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • ResourceConflictException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createProject

        default CompletableFuture<CreateProjectResponse> createProject​(Consumer<CreateProjectRequest.Builder> createProjectRequest)

        Creates an empty project with a placement template. A project contains zero or more placements that adhere to the placement template defined in the project.


        This is a convenience which creates an instance of the CreateProjectRequest.Builder avoiding the need to create one manually via CreateProjectRequest.builder()

        Parameters:
        createProjectRequest - A Consumer that will call methods on CreateProjectRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the CreateProject operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • ResourceConflictException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deletePlacement

        default CompletableFuture<DeletePlacementResponse> deletePlacement​(DeletePlacementRequest deletePlacementRequest)

        Deletes a placement. To delete a placement, it must not have any devices associated with it.

        When you delete a placement, all associated data becomes irretrievable.

        Parameters:
        deletePlacementRequest -
        Returns:
        A Java Future containing the result of the DeletePlacement operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • TooManyRequestsException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deletePlacement

        default CompletableFuture<DeletePlacementResponse> deletePlacement​(Consumer<DeletePlacementRequest.Builder> deletePlacementRequest)

        Deletes a placement. To delete a placement, it must not have any devices associated with it.

        When you delete a placement, all associated data becomes irretrievable.


        This is a convenience which creates an instance of the DeletePlacementRequest.Builder avoiding the need to create one manually via DeletePlacementRequest.builder()

        Parameters:
        deletePlacementRequest - A Consumer that will call methods on DeletePlacementRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DeletePlacement operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • TooManyRequestsException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteProject

        default CompletableFuture<DeleteProjectResponse> deleteProject​(DeleteProjectRequest deleteProjectRequest)

        Deletes a project. To delete a project, it must not have any placements associated with it.

        When you delete a project, all associated data becomes irretrievable.

        Parameters:
        deleteProjectRequest -
        Returns:
        A Java Future containing the result of the DeleteProject operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • TooManyRequestsException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteProject

        default CompletableFuture<DeleteProjectResponse> deleteProject​(Consumer<DeleteProjectRequest.Builder> deleteProjectRequest)

        Deletes a project. To delete a project, it must not have any placements associated with it.

        When you delete a project, all associated data becomes irretrievable.


        This is a convenience which creates an instance of the DeleteProjectRequest.Builder avoiding the need to create one manually via DeleteProjectRequest.builder()

        Parameters:
        deleteProjectRequest - A Consumer that will call methods on DeleteProjectRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DeleteProject operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • TooManyRequestsException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describePlacement

        default CompletableFuture<DescribePlacementResponse> describePlacement​(DescribePlacementRequest describePlacementRequest)

        Describes a placement in a project.

        Parameters:
        describePlacementRequest -
        Returns:
        A Java Future containing the result of the DescribePlacement operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describePlacement

        default CompletableFuture<DescribePlacementResponse> describePlacement​(Consumer<DescribePlacementRequest.Builder> describePlacementRequest)

        Describes a placement in a project.


        This is a convenience which creates an instance of the DescribePlacementRequest.Builder avoiding the need to create one manually via DescribePlacementRequest.builder()

        Parameters:
        describePlacementRequest - A Consumer that will call methods on DescribePlacementRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DescribePlacement operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeProject

        default CompletableFuture<DescribeProjectResponse> describeProject​(DescribeProjectRequest describeProjectRequest)

        Returns an object describing a project.

        Parameters:
        describeProjectRequest -
        Returns:
        A Java Future containing the result of the DescribeProject operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeProject

        default CompletableFuture<DescribeProjectResponse> describeProject​(Consumer<DescribeProjectRequest.Builder> describeProjectRequest)

        Returns an object describing a project.


        This is a convenience which creates an instance of the DescribeProjectRequest.Builder avoiding the need to create one manually via DescribeProjectRequest.builder()

        Parameters:
        describeProjectRequest - A Consumer that will call methods on DescribeProjectRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DescribeProject operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disassociateDeviceFromPlacement

        default CompletableFuture<DisassociateDeviceFromPlacementResponse> disassociateDeviceFromPlacement​(DisassociateDeviceFromPlacementRequest disassociateDeviceFromPlacementRequest)

        Removes a physical device from a placement.

        Parameters:
        disassociateDeviceFromPlacementRequest -
        Returns:
        A Java Future containing the result of the DisassociateDeviceFromPlacement operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • TooManyRequestsException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getDevicesInPlacement

        default CompletableFuture<GetDevicesInPlacementResponse> getDevicesInPlacement​(GetDevicesInPlacementRequest getDevicesInPlacementRequest)

        Returns an object enumerating the devices in a placement.

        Parameters:
        getDevicesInPlacementRequest -
        Returns:
        A Java Future containing the result of the GetDevicesInPlacement operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getDevicesInPlacement

        default CompletableFuture<GetDevicesInPlacementResponse> getDevicesInPlacement​(Consumer<GetDevicesInPlacementRequest.Builder> getDevicesInPlacementRequest)

        Returns an object enumerating the devices in a placement.


        This is a convenience which creates an instance of the GetDevicesInPlacementRequest.Builder avoiding the need to create one manually via GetDevicesInPlacementRequest.builder()

        Parameters:
        getDevicesInPlacementRequest - A Consumer that will call methods on GetDevicesInPlacementRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetDevicesInPlacement operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listPlacements

        default CompletableFuture<ListPlacementsResponse> listPlacements​(ListPlacementsRequest listPlacementsRequest)

        Lists the placement(s) of a project.

        Parameters:
        listPlacementsRequest -
        Returns:
        A Java Future containing the result of the ListPlacements operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listPlacements

        default CompletableFuture<ListPlacementsResponse> listPlacements​(Consumer<ListPlacementsRequest.Builder> listPlacementsRequest)

        Lists the placement(s) of a project.


        This is a convenience which creates an instance of the ListPlacementsRequest.Builder avoiding the need to create one manually via ListPlacementsRequest.builder()

        Parameters:
        listPlacementsRequest - A Consumer that will call methods on ListPlacementsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListPlacements operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listPlacementsPaginator

        default ListPlacementsPublisher listPlacementsPaginator​(ListPlacementsRequest listPlacementsRequest)

        Lists the placement(s) of a project.


        This is a variant of listPlacements(software.amazon.awssdk.services.iot1clickprojects.model.ListPlacementsRequest) 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.iot1clickprojects.paginators.ListPlacementsPublisher publisher = client.listPlacementsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.iot1clickprojects.paginators.ListPlacementsPublisher publisher = client.listPlacementsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.iot1clickprojects.model.ListPlacementsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.iot1clickprojects.model.ListPlacementsResponse 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 listPlacements(software.amazon.awssdk.services.iot1clickprojects.model.ListPlacementsRequest) operation.

        Parameters:
        listPlacementsRequest -
        Returns:
        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.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listPlacementsPaginator

        default ListPlacementsPublisher listPlacementsPaginator​(Consumer<ListPlacementsRequest.Builder> listPlacementsRequest)

        Lists the placement(s) of a project.


        This is a variant of listPlacements(software.amazon.awssdk.services.iot1clickprojects.model.ListPlacementsRequest) 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.iot1clickprojects.paginators.ListPlacementsPublisher publisher = client.listPlacementsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.iot1clickprojects.paginators.ListPlacementsPublisher publisher = client.listPlacementsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.iot1clickprojects.model.ListPlacementsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.iot1clickprojects.model.ListPlacementsResponse 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 listPlacements(software.amazon.awssdk.services.iot1clickprojects.model.ListPlacementsRequest) operation.

        This is a convenience which creates an instance of the ListPlacementsRequest.Builder avoiding the need to create one manually via ListPlacementsRequest.builder()

        Parameters:
        listPlacementsRequest - A Consumer that will call methods on ListPlacementsRequest.Builder to create a request.
        Returns:
        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.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listProjects

        default CompletableFuture<ListProjectsResponse> listProjects​(ListProjectsRequest listProjectsRequest)

        Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.

        Parameters:
        listProjectsRequest -
        Returns:
        A Java Future containing the result of the ListProjects operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listProjects

        default CompletableFuture<ListProjectsResponse> listProjects​(Consumer<ListProjectsRequest.Builder> listProjectsRequest)

        Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.


        This is a convenience which creates an instance of the ListProjectsRequest.Builder avoiding the need to create one manually via ListProjectsRequest.builder()

        Parameters:
        listProjectsRequest - A Consumer that will call methods on ListProjectsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListProjects operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listProjects

        default CompletableFuture<ListProjectsResponse> listProjects()

        Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.

        Returns:
        A Java Future containing the result of the ListProjects operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listProjectsPaginator

        default ListProjectsPublisher listProjectsPaginator()

        Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.


        This is a variant of listProjects(software.amazon.awssdk.services.iot1clickprojects.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.iot1clickprojects.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.iot1clickprojects.paginators.ListProjectsPublisher publisher = client.listProjectsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.iot1clickprojects.model.ListProjectsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.iot1clickprojects.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.iot1clickprojects.model.ListProjectsRequest) operation.

        Returns:
        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.
        • InternalFailureException
        • InvalidRequestException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listProjectsPaginator

        default ListProjectsPublisher listProjectsPaginator​(ListProjectsRequest listProjectsRequest)

        Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.


        This is a variant of listProjects(software.amazon.awssdk.services.iot1clickprojects.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.iot1clickprojects.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.iot1clickprojects.paginators.ListProjectsPublisher publisher = client.listProjectsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.iot1clickprojects.model.ListProjectsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.iot1clickprojects.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.iot1clickprojects.model.ListProjectsRequest) operation.

        Parameters:
        listProjectsRequest -
        Returns:
        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.
        • InternalFailureException
        • InvalidRequestException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listProjectsPaginator

        default ListProjectsPublisher listProjectsPaginator​(Consumer<ListProjectsRequest.Builder> listProjectsRequest)

        Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.


        This is a variant of listProjects(software.amazon.awssdk.services.iot1clickprojects.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.iot1clickprojects.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.iot1clickprojects.paginators.ListProjectsPublisher publisher = client.listProjectsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.iot1clickprojects.model.ListProjectsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.iot1clickprojects.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.iot1clickprojects.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()

        Parameters:
        listProjectsRequest - A Consumer that will call methods on ListProjectsRequest.Builder to create a request.
        Returns:
        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.
        • InternalFailureException
        • InvalidRequestException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listTagsForResource

        default CompletableFuture<ListTagsForResourceResponse> listTagsForResource​(ListTagsForResourceRequest listTagsForResourceRequest)

        Lists the tags (metadata key/value pairs) which you have assigned to the resource.

        Parameters:
        listTagsForResourceRequest -
        Returns:
        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.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listTagsForResource

        default CompletableFuture<ListTagsForResourceResponse> listTagsForResource​(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)

        Lists the tags (metadata key/value pairs) which you have assigned to the resource.


        This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder avoiding the need to create one manually via ListTagsForResourceRequest.builder()

        Parameters:
        listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceRequest.Builder to create a request.
        Returns:
        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.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • tagResource

        default CompletableFuture<TagResourceResponse> tagResource​(TagResourceRequest tagResourceRequest)

        Creates or modifies tags for a resource. Tags are key/value pairs (metadata) that can be used to manage a resource. For more information, see AWS Tagging Strategies.

        Parameters:
        tagResourceRequest -
        Returns:
        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.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • tagResource

        default CompletableFuture<TagResourceResponse> tagResource​(Consumer<TagResourceRequest.Builder> tagResourceRequest)

        Creates or modifies tags for a resource. Tags are key/value pairs (metadata) that can be used to manage a resource. For more information, see AWS Tagging Strategies.


        This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to create one manually via TagResourceRequest.builder()

        Parameters:
        tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request.
        Returns:
        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.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • untagResource

        default CompletableFuture<UntagResourceResponse> untagResource​(UntagResourceRequest untagResourceRequest)

        Removes one or more tags (metadata key/value pairs) from a resource.

        Parameters:
        untagResourceRequest -
        Returns:
        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.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • untagResource

        default CompletableFuture<UntagResourceResponse> untagResource​(Consumer<UntagResourceRequest.Builder> untagResourceRequest)

        Removes one or more tags (metadata key/value pairs) from a resource.


        This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to create one manually via UntagResourceRequest.builder()

        Parameters:
        untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.
        Returns:
        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.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updatePlacement

        default CompletableFuture<UpdatePlacementResponse> updatePlacement​(UpdatePlacementRequest updatePlacementRequest)

        Updates a placement with the given attributes. To clear an attribute, pass an empty value (i.e., "").

        Parameters:
        updatePlacementRequest -
        Returns:
        A Java Future containing the result of the UpdatePlacement operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • TooManyRequestsException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updatePlacement

        default CompletableFuture<UpdatePlacementResponse> updatePlacement​(Consumer<UpdatePlacementRequest.Builder> updatePlacementRequest)

        Updates a placement with the given attributes. To clear an attribute, pass an empty value (i.e., "").


        This is a convenience which creates an instance of the UpdatePlacementRequest.Builder avoiding the need to create one manually via UpdatePlacementRequest.builder()

        Parameters:
        updatePlacementRequest - A Consumer that will call methods on UpdatePlacementRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the UpdatePlacement operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • TooManyRequestsException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateProject

        default CompletableFuture<UpdateProjectResponse> updateProject​(UpdateProjectRequest updateProjectRequest)

        Updates a project associated with your AWS account and region. With the exception of device template names, you can pass just the values that need to be updated because the update request will change only the values that are provided. To clear a value, pass the empty string (i.e., "").

        Parameters:
        updateProjectRequest -
        Returns:
        A Java Future containing the result of the UpdateProject operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • TooManyRequestsException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateProject

        default CompletableFuture<UpdateProjectResponse> updateProject​(Consumer<UpdateProjectRequest.Builder> updateProjectRequest)

        Updates a project associated with your AWS account and region. With the exception of device template names, you can pass just the values that need to be updated because the update request will change only the values that are provided. To clear a value, pass the empty string (i.e., "").


        This is a convenience which creates an instance of the UpdateProjectRequest.Builder avoiding the need to create one manually via UpdateProjectRequest.builder()

        Parameters:
        updateProjectRequest - A Consumer that will call methods on UpdateProjectRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the UpdateProject operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • InternalFailureException
        • InvalidRequestException
        • ResourceNotFoundException
        • TooManyRequestsException
        • 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.
        • Iot1ClickProjectsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation