Interface Iot1ClickProjectsClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface Iot1ClickProjectsClient extends AwsClient
Service client for accessing AWS IoT 1-Click Projects. This can be created using the staticbuilder()method.The AWS IoT 1-Click Projects API Reference
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default AssociateDeviceWithPlacementResponseassociateDeviceWithPlacement(Consumer<AssociateDeviceWithPlacementRequest.Builder> associateDeviceWithPlacementRequest)Associates a physical device with a placement.default AssociateDeviceWithPlacementResponseassociateDeviceWithPlacement(AssociateDeviceWithPlacementRequest associateDeviceWithPlacementRequest)Associates a physical device with a placement.static Iot1ClickProjectsClientBuilderbuilder()Create a builder that can be used to configure and create aIot1ClickProjectsClient.static Iot1ClickProjectsClientcreate()Create aIot1ClickProjectsClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreatePlacementResponsecreatePlacement(Consumer<CreatePlacementRequest.Builder> createPlacementRequest)Creates an empty placement.default CreatePlacementResponsecreatePlacement(CreatePlacementRequest createPlacementRequest)Creates an empty placement.default CreateProjectResponsecreateProject(Consumer<CreateProjectRequest.Builder> createProjectRequest)Creates an empty project with a placement template.default CreateProjectResponsecreateProject(CreateProjectRequest createProjectRequest)Creates an empty project with a placement template.default DeletePlacementResponsedeletePlacement(Consumer<DeletePlacementRequest.Builder> deletePlacementRequest)Deletes a placement.default DeletePlacementResponsedeletePlacement(DeletePlacementRequest deletePlacementRequest)Deletes a placement.default DeleteProjectResponsedeleteProject(Consumer<DeleteProjectRequest.Builder> deleteProjectRequest)Deletes a project.default DeleteProjectResponsedeleteProject(DeleteProjectRequest deleteProjectRequest)Deletes a project.default DescribePlacementResponsedescribePlacement(Consumer<DescribePlacementRequest.Builder> describePlacementRequest)Describes a placement in a project.default DescribePlacementResponsedescribePlacement(DescribePlacementRequest describePlacementRequest)Describes a placement in a project.default DescribeProjectResponsedescribeProject(Consumer<DescribeProjectRequest.Builder> describeProjectRequest)Returns an object describing a project.default DescribeProjectResponsedescribeProject(DescribeProjectRequest describeProjectRequest)Returns an object describing a project.default DisassociateDeviceFromPlacementResponsedisassociateDeviceFromPlacement(Consumer<DisassociateDeviceFromPlacementRequest.Builder> disassociateDeviceFromPlacementRequest)Removes a physical device from a placement.default DisassociateDeviceFromPlacementResponsedisassociateDeviceFromPlacement(DisassociateDeviceFromPlacementRequest disassociateDeviceFromPlacementRequest)Removes a physical device from a placement.default GetDevicesInPlacementResponsegetDevicesInPlacement(Consumer<GetDevicesInPlacementRequest.Builder> getDevicesInPlacementRequest)Returns an object enumerating the devices in a placement.default GetDevicesInPlacementResponsegetDevicesInPlacement(GetDevicesInPlacementRequest getDevicesInPlacementRequest)Returns an object enumerating the devices in a placement.default ListPlacementsResponselistPlacements(Consumer<ListPlacementsRequest.Builder> listPlacementsRequest)Lists the placement(s) of a project.default ListPlacementsResponselistPlacements(ListPlacementsRequest listPlacementsRequest)Lists the placement(s) of a project.default ListPlacementsIterablelistPlacementsPaginator(Consumer<ListPlacementsRequest.Builder> listPlacementsRequest)Lists the placement(s) of a project.default ListPlacementsIterablelistPlacementsPaginator(ListPlacementsRequest listPlacementsRequest)Lists the placement(s) of a project.default ListProjectsResponselistProjects()Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.default ListProjectsResponselistProjects(Consumer<ListProjectsRequest.Builder> listProjectsRequest)Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.default ListProjectsResponselistProjects(ListProjectsRequest listProjectsRequest)Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.default ListProjectsIterablelistProjectsPaginator()Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.default ListProjectsIterablelistProjectsPaginator(Consumer<ListProjectsRequest.Builder> listProjectsRequest)Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.default ListProjectsIterablelistProjectsPaginator(ListProjectsRequest listProjectsRequest)Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)Lists the tags (metadata key/value pairs) which you have assigned to the resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)Lists the tags (metadata key/value pairs) which you have assigned to the resource.default Iot1ClickProjectsServiceClientConfigurationserviceClientConfiguration()static ServiceMetadataserviceMetadata()default TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)Creates or modifies tags for a resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest)Creates or modifies tags for a resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)Removes one or more tags (metadata key/value pairs) from a resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest)Removes one or more tags (metadata key/value pairs) from a resource.default UpdatePlacementResponseupdatePlacement(Consumer<UpdatePlacementRequest.Builder> updatePlacementRequest)Updates a placement with the given attributes.default UpdatePlacementResponseupdatePlacement(UpdatePlacementRequest updatePlacementRequest)Updates a placement with the given attributes.default UpdateProjectResponseupdateProject(Consumer<UpdateProjectRequest.Builder> updateProjectRequest)Updates a project associated with your AWS account and region.default UpdateProjectResponseupdateProject(UpdateProjectRequest updateProjectRequest)Updates a project associated with your AWS account and region.-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
associateDeviceWithPlacement
default AssociateDeviceWithPlacementResponse associateDeviceWithPlacement(AssociateDeviceWithPlacementRequest associateDeviceWithPlacementRequest) throws InternalFailureException, InvalidRequestException, ResourceConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
Associates a physical device with a placement.
- Parameters:
associateDeviceWithPlacementRequest-- Returns:
- Result of the AssociateDeviceWithPlacement operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceConflictExceptionResourceNotFoundExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
associateDeviceWithPlacement
default AssociateDeviceWithPlacementResponse associateDeviceWithPlacement(Consumer<AssociateDeviceWithPlacementRequest.Builder> associateDeviceWithPlacementRequest) throws InternalFailureException, InvalidRequestException, ResourceConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
Associates a physical device with a placement.
This is a convenience which creates an instance of the
AssociateDeviceWithPlacementRequest.Builderavoiding the need to create one manually viaAssociateDeviceWithPlacementRequest.builder()- Parameters:
associateDeviceWithPlacementRequest- AConsumerthat will call methods onAssociateDeviceWithPlacementRequest.Builderto create a request.- Returns:
- Result of the AssociateDeviceWithPlacement operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceConflictExceptionResourceNotFoundExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
createPlacement
default CreatePlacementResponse createPlacement(CreatePlacementRequest createPlacementRequest) throws InternalFailureException, InvalidRequestException, ResourceConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
Creates an empty placement.
- Parameters:
createPlacementRequest-- Returns:
- Result of the CreatePlacement operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceConflictExceptionResourceNotFoundExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
createPlacement
default CreatePlacementResponse createPlacement(Consumer<CreatePlacementRequest.Builder> createPlacementRequest) throws InternalFailureException, InvalidRequestException, ResourceConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
Creates an empty placement.
This is a convenience which creates an instance of the
CreatePlacementRequest.Builderavoiding the need to create one manually viaCreatePlacementRequest.builder()- Parameters:
createPlacementRequest- AConsumerthat will call methods onCreatePlacementRequest.Builderto create a request.- Returns:
- Result of the CreatePlacement operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceConflictExceptionResourceNotFoundExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
createProject
default CreateProjectResponse createProject(CreateProjectRequest createProjectRequest) throws InternalFailureException, InvalidRequestException, ResourceConflictException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
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:
- Result of the CreateProject operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceConflictExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
createProject
default CreateProjectResponse createProject(Consumer<CreateProjectRequest.Builder> createProjectRequest) throws InternalFailureException, InvalidRequestException, ResourceConflictException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
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.Builderavoiding the need to create one manually viaCreateProjectRequest.builder()- Parameters:
createProjectRequest- AConsumerthat will call methods onCreateProjectRequest.Builderto create a request.- Returns:
- Result of the CreateProject operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceConflictExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
deletePlacement
default DeletePlacementResponse deletePlacement(DeletePlacementRequest deletePlacementRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
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:
- Result of the DeletePlacement operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionTooManyRequestsExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
deletePlacement
default DeletePlacementResponse deletePlacement(Consumer<DeletePlacementRequest.Builder> deletePlacementRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
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.Builderavoiding the need to create one manually viaDeletePlacementRequest.builder()- Parameters:
deletePlacementRequest- AConsumerthat will call methods onDeletePlacementRequest.Builderto create a request.- Returns:
- Result of the DeletePlacement operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionTooManyRequestsExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteProject
default DeleteProjectResponse deleteProject(DeleteProjectRequest deleteProjectRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
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:
- Result of the DeleteProject operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionTooManyRequestsExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteProject
default DeleteProjectResponse deleteProject(Consumer<DeleteProjectRequest.Builder> deleteProjectRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
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.Builderavoiding the need to create one manually viaDeleteProjectRequest.builder()- Parameters:
deleteProjectRequest- AConsumerthat will call methods onDeleteProjectRequest.Builderto create a request.- Returns:
- Result of the DeleteProject operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionTooManyRequestsExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
describePlacement
default DescribePlacementResponse describePlacement(DescribePlacementRequest describePlacementRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
Describes a placement in a project.
- Parameters:
describePlacementRequest-- Returns:
- Result of the DescribePlacement operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
describePlacement
default DescribePlacementResponse describePlacement(Consumer<DescribePlacementRequest.Builder> describePlacementRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
Describes a placement in a project.
This is a convenience which creates an instance of the
DescribePlacementRequest.Builderavoiding the need to create one manually viaDescribePlacementRequest.builder()- Parameters:
describePlacementRequest- AConsumerthat will call methods onDescribePlacementRequest.Builderto create a request.- Returns:
- Result of the DescribePlacement operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
describeProject
default DescribeProjectResponse describeProject(DescribeProjectRequest describeProjectRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
Returns an object describing a project.
- Parameters:
describeProjectRequest-- Returns:
- Result of the DescribeProject operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
describeProject
default DescribeProjectResponse describeProject(Consumer<DescribeProjectRequest.Builder> describeProjectRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
Returns an object describing a project.
This is a convenience which creates an instance of the
DescribeProjectRequest.Builderavoiding the need to create one manually viaDescribeProjectRequest.builder()- Parameters:
describeProjectRequest- AConsumerthat will call methods onDescribeProjectRequest.Builderto create a request.- Returns:
- Result of the DescribeProject operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
disassociateDeviceFromPlacement
default DisassociateDeviceFromPlacementResponse disassociateDeviceFromPlacement(DisassociateDeviceFromPlacementRequest disassociateDeviceFromPlacementRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
Removes a physical device from a placement.
- Parameters:
disassociateDeviceFromPlacementRequest-- Returns:
- Result of the DisassociateDeviceFromPlacement operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionTooManyRequestsExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
disassociateDeviceFromPlacement
default DisassociateDeviceFromPlacementResponse disassociateDeviceFromPlacement(Consumer<DisassociateDeviceFromPlacementRequest.Builder> disassociateDeviceFromPlacementRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
Removes a physical device from a placement.
This is a convenience which creates an instance of the
DisassociateDeviceFromPlacementRequest.Builderavoiding the need to create one manually viaDisassociateDeviceFromPlacementRequest.builder()- Parameters:
disassociateDeviceFromPlacementRequest- AConsumerthat will call methods onDisassociateDeviceFromPlacementRequest.Builderto create a request.- Returns:
- Result of the DisassociateDeviceFromPlacement operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionTooManyRequestsExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
getDevicesInPlacement
default GetDevicesInPlacementResponse getDevicesInPlacement(GetDevicesInPlacementRequest getDevicesInPlacementRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
Returns an object enumerating the devices in a placement.
- Parameters:
getDevicesInPlacementRequest-- Returns:
- Result of the GetDevicesInPlacement operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
getDevicesInPlacement
default GetDevicesInPlacementResponse getDevicesInPlacement(Consumer<GetDevicesInPlacementRequest.Builder> getDevicesInPlacementRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
Returns an object enumerating the devices in a placement.
This is a convenience which creates an instance of the
GetDevicesInPlacementRequest.Builderavoiding the need to create one manually viaGetDevicesInPlacementRequest.builder()- Parameters:
getDevicesInPlacementRequest- AConsumerthat will call methods onGetDevicesInPlacementRequest.Builderto create a request.- Returns:
- Result of the GetDevicesInPlacement operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listPlacements
default ListPlacementsResponse listPlacements(ListPlacementsRequest listPlacementsRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
Lists the placement(s) of a project.
- Parameters:
listPlacementsRequest-- Returns:
- Result of the ListPlacements operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listPlacements
default ListPlacementsResponse listPlacements(Consumer<ListPlacementsRequest.Builder> listPlacementsRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
Lists the placement(s) of a project.
This is a convenience which creates an instance of the
ListPlacementsRequest.Builderavoiding the need to create one manually viaListPlacementsRequest.builder()- Parameters:
listPlacementsRequest- AConsumerthat will call methods onListPlacementsRequest.Builderto create a request.- Returns:
- Result of the ListPlacements operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listPlacementsPaginator
default ListPlacementsIterable listPlacementsPaginator(ListPlacementsRequest listPlacementsRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
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 iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.iot1clickprojects.paginators.ListPlacementsIterable responses = client.listPlacementsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.iot1clickprojects.paginators.ListPlacementsIterable responses = client .listPlacementsPaginator(request); for (software.amazon.awssdk.services.iot1clickprojects.model.ListPlacementsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.iot1clickprojects.paginators.ListPlacementsIterable responses = client.listPlacementsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listPlacementsPaginator
default ListPlacementsIterable listPlacementsPaginator(Consumer<ListPlacementsRequest.Builder> listPlacementsRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
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 iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.iot1clickprojects.paginators.ListPlacementsIterable responses = client.listPlacementsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.iot1clickprojects.paginators.ListPlacementsIterable responses = client .listPlacementsPaginator(request); for (software.amazon.awssdk.services.iot1clickprojects.model.ListPlacementsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.iot1clickprojects.paginators.ListPlacementsIterable responses = client.listPlacementsPaginator(request); responses.iterator().forEachRemaining(....);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.Builderavoiding the need to create one manually viaListPlacementsRequest.builder()- Parameters:
listPlacementsRequest- AConsumerthat will call methods onListPlacementsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listProjects
default ListProjectsResponse listProjects(ListProjectsRequest listProjectsRequest) throws InternalFailureException, InvalidRequestException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.
- Parameters:
listProjectsRequest-- Returns:
- Result of the ListProjects operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listProjects
default ListProjectsResponse listProjects(Consumer<ListProjectsRequest.Builder> listProjectsRequest) throws InternalFailureException, InvalidRequestException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
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.Builderavoiding the need to create one manually viaListProjectsRequest.builder()- Parameters:
listProjectsRequest- AConsumerthat will call methods onListProjectsRequest.Builderto create a request.- Returns:
- Result of the ListProjects operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listProjects
default ListProjectsResponse listProjects() throws InternalFailureException, InvalidRequestException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.
- Returns:
- Result of the ListProjects operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionSdkException- 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.AwsServiceException- See Also:
listProjects(ListProjectsRequest), AWS API Documentation
-
listProjectsPaginator
default ListProjectsIterable listProjectsPaginator() throws InternalFailureException, InvalidRequestException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
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 iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.iot1clickprojects.paginators.ListProjectsIterable responses = client.listProjectsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.iot1clickprojects.paginators.ListProjectsIterable responses = client .listProjectsPaginator(request); for (software.amazon.awssdk.services.iot1clickprojects.model.ListProjectsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.iot1clickprojects.paginators.ListProjectsIterable responses = client.listProjectsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
InternalFailureExceptionInvalidRequestExceptionSdkException- 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.AwsServiceException- See Also:
listProjectsPaginator(ListProjectsRequest), AWS API Documentation
-
listProjectsPaginator
default ListProjectsIterable listProjectsPaginator(ListProjectsRequest listProjectsRequest) throws InternalFailureException, InvalidRequestException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
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 iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.iot1clickprojects.paginators.ListProjectsIterable responses = client.listProjectsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.iot1clickprojects.paginators.ListProjectsIterable responses = client .listProjectsPaginator(request); for (software.amazon.awssdk.services.iot1clickprojects.model.ListProjectsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.iot1clickprojects.paginators.ListProjectsIterable responses = client.listProjectsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
InternalFailureExceptionInvalidRequestExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listProjectsPaginator
default ListProjectsIterable listProjectsPaginator(Consumer<ListProjectsRequest.Builder> listProjectsRequest) throws InternalFailureException, InvalidRequestException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
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 iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.iot1clickprojects.paginators.ListProjectsIterable responses = client.listProjectsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.iot1clickprojects.paginators.ListProjectsIterable responses = client .listProjectsPaginator(request); for (software.amazon.awssdk.services.iot1clickprojects.model.ListProjectsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.iot1clickprojects.paginators.ListProjectsIterable responses = client.listProjectsPaginator(request); responses.iterator().forEachRemaining(....);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.Builderavoiding the need to create one manually viaListProjectsRequest.builder()- Parameters:
listProjectsRequest- AConsumerthat will call methods onListProjectsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalFailureExceptionInvalidRequestExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
Lists the tags (metadata key/value pairs) which you have assigned to the resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
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.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
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:
- Result of the TagResource operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
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.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
Removes one or more tags (metadata key/value pairs) from a resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
Removes one or more tags (metadata key/value pairs) from a resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
updatePlacement
default UpdatePlacementResponse updatePlacement(UpdatePlacementRequest updatePlacementRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
Updates a placement with the given attributes. To clear an attribute, pass an empty value (i.e., "").
- Parameters:
updatePlacementRequest-- Returns:
- Result of the UpdatePlacement operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionTooManyRequestsExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
updatePlacement
default UpdatePlacementResponse updatePlacement(Consumer<UpdatePlacementRequest.Builder> updatePlacementRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
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.Builderavoiding the need to create one manually viaUpdatePlacementRequest.builder()- Parameters:
updatePlacementRequest- AConsumerthat will call methods onUpdatePlacementRequest.Builderto create a request.- Returns:
- Result of the UpdatePlacement operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionTooManyRequestsExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
updateProject
default UpdateProjectResponse updateProject(UpdateProjectRequest updateProjectRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
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:
- Result of the UpdateProject operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionTooManyRequestsExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
updateProject
default UpdateProjectResponse updateProject(Consumer<UpdateProjectRequest.Builder> updateProjectRequest) throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, Iot1ClickProjectsException
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.Builderavoiding the need to create one manually viaUpdateProjectRequest.builder()- Parameters:
updateProjectRequest- AConsumerthat will call methods onUpdateProjectRequest.Builderto create a request.- Returns:
- Result of the UpdateProject operation returned by the service.
- Throws:
InternalFailureExceptionInvalidRequestExceptionResourceNotFoundExceptionTooManyRequestsExceptionSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
create
static Iot1ClickProjectsClient create()
Create aIot1ClickProjectsClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static Iot1ClickProjectsClientBuilder builder()
Create a builder that can be used to configure and create aIot1ClickProjectsClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default Iot1ClickProjectsServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-