
software.amazon.awssdk.services.iot1clickprojects.Iot1ClickProjectsClient Maven / Gradle / Ivy
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.iot1clickprojects;
import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.awscore.AwsClient;
import software.amazon.awssdk.awscore.exception.AwsServiceException;
import software.amazon.awssdk.core.exception.SdkClientException;
import software.amazon.awssdk.regions.ServiceMetadata;
import software.amazon.awssdk.services.iot1clickprojects.model.AssociateDeviceWithPlacementRequest;
import software.amazon.awssdk.services.iot1clickprojects.model.AssociateDeviceWithPlacementResponse;
import software.amazon.awssdk.services.iot1clickprojects.model.CreatePlacementRequest;
import software.amazon.awssdk.services.iot1clickprojects.model.CreatePlacementResponse;
import software.amazon.awssdk.services.iot1clickprojects.model.CreateProjectRequest;
import software.amazon.awssdk.services.iot1clickprojects.model.CreateProjectResponse;
import software.amazon.awssdk.services.iot1clickprojects.model.DeletePlacementRequest;
import software.amazon.awssdk.services.iot1clickprojects.model.DeletePlacementResponse;
import software.amazon.awssdk.services.iot1clickprojects.model.DeleteProjectRequest;
import software.amazon.awssdk.services.iot1clickprojects.model.DeleteProjectResponse;
import software.amazon.awssdk.services.iot1clickprojects.model.DescribePlacementRequest;
import software.amazon.awssdk.services.iot1clickprojects.model.DescribePlacementResponse;
import software.amazon.awssdk.services.iot1clickprojects.model.DescribeProjectRequest;
import software.amazon.awssdk.services.iot1clickprojects.model.DescribeProjectResponse;
import software.amazon.awssdk.services.iot1clickprojects.model.DisassociateDeviceFromPlacementRequest;
import software.amazon.awssdk.services.iot1clickprojects.model.DisassociateDeviceFromPlacementResponse;
import software.amazon.awssdk.services.iot1clickprojects.model.GetDevicesInPlacementRequest;
import software.amazon.awssdk.services.iot1clickprojects.model.GetDevicesInPlacementResponse;
import software.amazon.awssdk.services.iot1clickprojects.model.InternalFailureException;
import software.amazon.awssdk.services.iot1clickprojects.model.InvalidRequestException;
import software.amazon.awssdk.services.iot1clickprojects.model.Iot1ClickProjectsException;
import software.amazon.awssdk.services.iot1clickprojects.model.ListPlacementsRequest;
import software.amazon.awssdk.services.iot1clickprojects.model.ListPlacementsResponse;
import software.amazon.awssdk.services.iot1clickprojects.model.ListProjectsRequest;
import software.amazon.awssdk.services.iot1clickprojects.model.ListProjectsResponse;
import software.amazon.awssdk.services.iot1clickprojects.model.ListTagsForResourceRequest;
import software.amazon.awssdk.services.iot1clickprojects.model.ListTagsForResourceResponse;
import software.amazon.awssdk.services.iot1clickprojects.model.ResourceConflictException;
import software.amazon.awssdk.services.iot1clickprojects.model.ResourceNotFoundException;
import software.amazon.awssdk.services.iot1clickprojects.model.TagResourceRequest;
import software.amazon.awssdk.services.iot1clickprojects.model.TagResourceResponse;
import software.amazon.awssdk.services.iot1clickprojects.model.TooManyRequestsException;
import software.amazon.awssdk.services.iot1clickprojects.model.UntagResourceRequest;
import software.amazon.awssdk.services.iot1clickprojects.model.UntagResourceResponse;
import software.amazon.awssdk.services.iot1clickprojects.model.UpdatePlacementRequest;
import software.amazon.awssdk.services.iot1clickprojects.model.UpdatePlacementResponse;
import software.amazon.awssdk.services.iot1clickprojects.model.UpdateProjectRequest;
import software.amazon.awssdk.services.iot1clickprojects.model.UpdateProjectResponse;
import software.amazon.awssdk.services.iot1clickprojects.paginators.ListPlacementsIterable;
import software.amazon.awssdk.services.iot1clickprojects.paginators.ListProjectsIterable;
/**
* Service client for accessing AWS IoT 1-Click Projects. This can be created using the static {@link #builder()}
* method.
*
*
* The AWS IoT 1-Click Projects API Reference
*
*/
@Generated("software.amazon.awssdk:codegen")
@SdkPublicApi
@ThreadSafe
public interface Iot1ClickProjectsClient extends AwsClient {
String SERVICE_NAME = "iot1click";
/**
* Value for looking up the service's metadata from the
* {@link software.amazon.awssdk.regions.ServiceMetadataProvider}.
*/
String SERVICE_METADATA_ID = "projects.iot1click";
/**
*
* Associates a physical device with a placement.
*
*
* @param associateDeviceWithPlacementRequest
* @return Result of the AssociateDeviceWithPlacement operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceConflictException
* @throws ResourceNotFoundException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.AssociateDeviceWithPlacement
* @see AWS API Documentation
*/
default AssociateDeviceWithPlacementResponse associateDeviceWithPlacement(
AssociateDeviceWithPlacementRequest associateDeviceWithPlacementRequest) throws InternalFailureException,
InvalidRequestException, ResourceConflictException, ResourceNotFoundException, AwsServiceException,
SdkClientException, Iot1ClickProjectsException {
throw new UnsupportedOperationException();
}
/**
*
* Associates a physical device with a placement.
*
*
*
* This is a convenience which creates an instance of the {@link AssociateDeviceWithPlacementRequest.Builder}
* avoiding the need to create one manually via {@link AssociateDeviceWithPlacementRequest#builder()}
*
*
* @param associateDeviceWithPlacementRequest
* A {@link Consumer} that will call methods on {@link AssociateDeviceWithPlacementRequest.Builder} to create
* a request.
* @return Result of the AssociateDeviceWithPlacement operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceConflictException
* @throws ResourceNotFoundException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.AssociateDeviceWithPlacement
* @see AWS API Documentation
*/
default AssociateDeviceWithPlacementResponse associateDeviceWithPlacement(
Consumer associateDeviceWithPlacementRequest)
throws InternalFailureException, InvalidRequestException, ResourceConflictException, ResourceNotFoundException,
AwsServiceException, SdkClientException, Iot1ClickProjectsException {
return associateDeviceWithPlacement(AssociateDeviceWithPlacementRequest.builder()
.applyMutation(associateDeviceWithPlacementRequest).build());
}
/**
*
* Creates an empty placement.
*
*
* @param createPlacementRequest
* @return Result of the CreatePlacement operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceConflictException
* @throws ResourceNotFoundException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.CreatePlacement
* @see AWS API Documentation
*/
default CreatePlacementResponse createPlacement(CreatePlacementRequest createPlacementRequest)
throws InternalFailureException, InvalidRequestException, ResourceConflictException, ResourceNotFoundException,
AwsServiceException, SdkClientException, Iot1ClickProjectsException {
throw new UnsupportedOperationException();
}
/**
*
* Creates an empty placement.
*
*
*
* This is a convenience which creates an instance of the {@link CreatePlacementRequest.Builder} avoiding the need
* to create one manually via {@link CreatePlacementRequest#builder()}
*
*
* @param createPlacementRequest
* A {@link Consumer} that will call methods on {@link CreatePlacementRequest.Builder} to create a request.
* @return Result of the CreatePlacement operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceConflictException
* @throws ResourceNotFoundException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.CreatePlacement
* @see AWS API Documentation
*/
default CreatePlacementResponse createPlacement(Consumer createPlacementRequest)
throws InternalFailureException, InvalidRequestException, ResourceConflictException, ResourceNotFoundException,
AwsServiceException, SdkClientException, Iot1ClickProjectsException {
return createPlacement(CreatePlacementRequest.builder().applyMutation(createPlacementRequest).build());
}
/**
*
* 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.
*
*
* @param createProjectRequest
* @return Result of the CreateProject operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceConflictException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.CreateProject
* @see AWS API Documentation
*/
default CreateProjectResponse createProject(CreateProjectRequest createProjectRequest) throws InternalFailureException,
InvalidRequestException, ResourceConflictException, AwsServiceException, SdkClientException,
Iot1ClickProjectsException {
throw new UnsupportedOperationException();
}
/**
*
* 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 {@link CreateProjectRequest.Builder} avoiding the need to
* create one manually via {@link CreateProjectRequest#builder()}
*
*
* @param createProjectRequest
* A {@link Consumer} that will call methods on {@link CreateProjectRequest.Builder} to create a request.
* @return Result of the CreateProject operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceConflictException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.CreateProject
* @see AWS API Documentation
*/
default CreateProjectResponse createProject(Consumer createProjectRequest)
throws InternalFailureException, InvalidRequestException, ResourceConflictException, AwsServiceException,
SdkClientException, Iot1ClickProjectsException {
return createProject(CreateProjectRequest.builder().applyMutation(createProjectRequest).build());
}
/**
*
* 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.
*
*
*
* @param deletePlacementRequest
* @return Result of the DeletePlacement operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws TooManyRequestsException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.DeletePlacement
* @see AWS API Documentation
*/
default DeletePlacementResponse deletePlacement(DeletePlacementRequest deletePlacementRequest)
throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, TooManyRequestsException,
AwsServiceException, SdkClientException, Iot1ClickProjectsException {
throw new UnsupportedOperationException();
}
/**
*
* 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 {@link DeletePlacementRequest.Builder} avoiding the need
* to create one manually via {@link DeletePlacementRequest#builder()}
*
*
* @param deletePlacementRequest
* A {@link Consumer} that will call methods on {@link DeletePlacementRequest.Builder} to create a request.
* @return Result of the DeletePlacement operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws TooManyRequestsException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.DeletePlacement
* @see AWS API Documentation
*/
default DeletePlacementResponse deletePlacement(Consumer deletePlacementRequest)
throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, TooManyRequestsException,
AwsServiceException, SdkClientException, Iot1ClickProjectsException {
return deletePlacement(DeletePlacementRequest.builder().applyMutation(deletePlacementRequest).build());
}
/**
*
* 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.
*
*
*
* @param deleteProjectRequest
* @return Result of the DeleteProject operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws TooManyRequestsException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.DeleteProject
* @see AWS API Documentation
*/
default DeleteProjectResponse deleteProject(DeleteProjectRequest deleteProjectRequest) throws InternalFailureException,
InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException,
SdkClientException, Iot1ClickProjectsException {
throw new UnsupportedOperationException();
}
/**
*
* 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 {@link DeleteProjectRequest.Builder} avoiding the need to
* create one manually via {@link DeleteProjectRequest#builder()}
*
*
* @param deleteProjectRequest
* A {@link Consumer} that will call methods on {@link DeleteProjectRequest.Builder} to create a request.
* @return Result of the DeleteProject operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws TooManyRequestsException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.DeleteProject
* @see AWS API Documentation
*/
default DeleteProjectResponse deleteProject(Consumer deleteProjectRequest)
throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, TooManyRequestsException,
AwsServiceException, SdkClientException, Iot1ClickProjectsException {
return deleteProject(DeleteProjectRequest.builder().applyMutation(deleteProjectRequest).build());
}
/**
*
* Describes a placement in a project.
*
*
* @param describePlacementRequest
* @return Result of the DescribePlacement operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.DescribePlacement
* @see AWS API Documentation
*/
default DescribePlacementResponse describePlacement(DescribePlacementRequest describePlacementRequest)
throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException,
SdkClientException, Iot1ClickProjectsException {
throw new UnsupportedOperationException();
}
/**
*
* Describes a placement in a project.
*
*
*
* This is a convenience which creates an instance of the {@link DescribePlacementRequest.Builder} avoiding the need
* to create one manually via {@link DescribePlacementRequest#builder()}
*
*
* @param describePlacementRequest
* A {@link Consumer} that will call methods on {@link DescribePlacementRequest.Builder} to create a request.
* @return Result of the DescribePlacement operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.DescribePlacement
* @see AWS API Documentation
*/
default DescribePlacementResponse describePlacement(Consumer describePlacementRequest)
throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException,
SdkClientException, Iot1ClickProjectsException {
return describePlacement(DescribePlacementRequest.builder().applyMutation(describePlacementRequest).build());
}
/**
*
* Returns an object describing a project.
*
*
* @param describeProjectRequest
* @return Result of the DescribeProject operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.DescribeProject
* @see AWS API Documentation
*/
default DescribeProjectResponse describeProject(DescribeProjectRequest describeProjectRequest)
throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException,
SdkClientException, Iot1ClickProjectsException {
throw new UnsupportedOperationException();
}
/**
*
* Returns an object describing a project.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeProjectRequest.Builder} avoiding the need
* to create one manually via {@link DescribeProjectRequest#builder()}
*
*
* @param describeProjectRequest
* A {@link Consumer} that will call methods on {@link DescribeProjectRequest.Builder} to create a request.
* @return Result of the DescribeProject operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.DescribeProject
* @see AWS API Documentation
*/
default DescribeProjectResponse describeProject(Consumer describeProjectRequest)
throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException,
SdkClientException, Iot1ClickProjectsException {
return describeProject(DescribeProjectRequest.builder().applyMutation(describeProjectRequest).build());
}
/**
*
* Removes a physical device from a placement.
*
*
* @param disassociateDeviceFromPlacementRequest
* @return Result of the DisassociateDeviceFromPlacement operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws TooManyRequestsException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.DisassociateDeviceFromPlacement
* @see AWS API Documentation
*/
default DisassociateDeviceFromPlacementResponse disassociateDeviceFromPlacement(
DisassociateDeviceFromPlacementRequest disassociateDeviceFromPlacementRequest) throws InternalFailureException,
InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException,
SdkClientException, Iot1ClickProjectsException {
throw new UnsupportedOperationException();
}
/**
*
* Removes a physical device from a placement.
*
*
*
* This is a convenience which creates an instance of the {@link DisassociateDeviceFromPlacementRequest.Builder}
* avoiding the need to create one manually via {@link DisassociateDeviceFromPlacementRequest#builder()}
*
*
* @param disassociateDeviceFromPlacementRequest
* A {@link Consumer} that will call methods on {@link DisassociateDeviceFromPlacementRequest.Builder} to
* create a request.
* @return Result of the DisassociateDeviceFromPlacement operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws TooManyRequestsException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.DisassociateDeviceFromPlacement
* @see AWS API Documentation
*/
default DisassociateDeviceFromPlacementResponse disassociateDeviceFromPlacement(
Consumer disassociateDeviceFromPlacementRequest)
throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, TooManyRequestsException,
AwsServiceException, SdkClientException, Iot1ClickProjectsException {
return disassociateDeviceFromPlacement(DisassociateDeviceFromPlacementRequest.builder()
.applyMutation(disassociateDeviceFromPlacementRequest).build());
}
/**
*
* Returns an object enumerating the devices in a placement.
*
*
* @param getDevicesInPlacementRequest
* @return Result of the GetDevicesInPlacement operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.GetDevicesInPlacement
* @see AWS API Documentation
*/
default GetDevicesInPlacementResponse getDevicesInPlacement(GetDevicesInPlacementRequest getDevicesInPlacementRequest)
throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException,
SdkClientException, Iot1ClickProjectsException {
throw new UnsupportedOperationException();
}
/**
*
* Returns an object enumerating the devices in a placement.
*
*
*
* This is a convenience which creates an instance of the {@link GetDevicesInPlacementRequest.Builder} avoiding the
* need to create one manually via {@link GetDevicesInPlacementRequest#builder()}
*
*
* @param getDevicesInPlacementRequest
* A {@link Consumer} that will call methods on {@link GetDevicesInPlacementRequest.Builder} to create a
* request.
* @return Result of the GetDevicesInPlacement operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.GetDevicesInPlacement
* @see AWS API Documentation
*/
default GetDevicesInPlacementResponse getDevicesInPlacement(
Consumer getDevicesInPlacementRequest) throws InternalFailureException,
InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException,
Iot1ClickProjectsException {
return getDevicesInPlacement(GetDevicesInPlacementRequest.builder().applyMutation(getDevicesInPlacementRequest).build());
}
/**
*
* Lists the placement(s) of a project.
*
*
* @param listPlacementsRequest
* @return Result of the ListPlacements operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.ListPlacements
* @see AWS API Documentation
*/
default ListPlacementsResponse listPlacements(ListPlacementsRequest listPlacementsRequest) throws InternalFailureException,
InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException,
Iot1ClickProjectsException {
throw new UnsupportedOperationException();
}
/**
*
* Lists the placement(s) of a project.
*
*
*
* This is a convenience which creates an instance of the {@link ListPlacementsRequest.Builder} avoiding the need to
* create one manually via {@link ListPlacementsRequest#builder()}
*
*
* @param listPlacementsRequest
* A {@link Consumer} that will call methods on {@link ListPlacementsRequest.Builder} to create a request.
* @return Result of the ListPlacements operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.ListPlacements
* @see AWS API Documentation
*/
default ListPlacementsResponse listPlacements(Consumer listPlacementsRequest)
throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException,
SdkClientException, Iot1ClickProjectsException {
return listPlacements(ListPlacementsRequest.builder().applyMutation(listPlacementsRequest).build());
}
/**
*
* Lists the placement(s) of a project.
*
*
*
* This is a variant of
* {@link #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
*
*
* {@code
* software.amazon.awssdk.services.iot1clickprojects.paginators.ListPlacementsIterable responses = client.listPlacementsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @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 directly
*
*
* {@code
* software.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
* {@link #listPlacements(software.amazon.awssdk.services.iot1clickprojects.model.ListPlacementsRequest)}
* operation.
*
*
* @param listPlacementsRequest
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.ListPlacements
* @see AWS API Documentation
*/
default ListPlacementsIterable listPlacementsPaginator(ListPlacementsRequest listPlacementsRequest)
throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException,
SdkClientException, Iot1ClickProjectsException {
throw new UnsupportedOperationException();
}
/**
*
* Lists the placement(s) of a project.
*
*
*
* This is a variant of
* {@link #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
*
*
* {@code
* software.amazon.awssdk.services.iot1clickprojects.paginators.ListPlacementsIterable responses = client.listPlacementsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @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 directly
*
*
* {@code
* software.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
* {@link #listPlacements(software.amazon.awssdk.services.iot1clickprojects.model.ListPlacementsRequest)}
* operation.
*
*
* This is a convenience which creates an instance of the {@link ListPlacementsRequest.Builder} avoiding the need to
* create one manually via {@link ListPlacementsRequest#builder()}
*
*
* @param listPlacementsRequest
* A {@link Consumer} that will call methods on {@link ListPlacementsRequest.Builder} to create a request.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.ListPlacements
* @see AWS API Documentation
*/
default ListPlacementsIterable listPlacementsPaginator(Consumer listPlacementsRequest)
throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException,
SdkClientException, Iot1ClickProjectsException {
return listPlacementsPaginator(ListPlacementsRequest.builder().applyMutation(listPlacementsRequest).build());
}
/**
*
* Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.
*
*
* @return Result of the ListProjects operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.ListProjects
* @see #listProjects(ListProjectsRequest)
* @see AWS API Documentation
*/
default ListProjectsResponse listProjects() throws InternalFailureException, InvalidRequestException, AwsServiceException,
SdkClientException, Iot1ClickProjectsException {
return listProjects(ListProjectsRequest.builder().build());
}
/**
*
* Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.
*
*
* @param listProjectsRequest
* @return Result of the ListProjects operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.ListProjects
* @see AWS API Documentation
*/
default ListProjectsResponse listProjects(ListProjectsRequest listProjectsRequest) throws InternalFailureException,
InvalidRequestException, AwsServiceException, SdkClientException, Iot1ClickProjectsException {
throw new UnsupportedOperationException();
}
/**
*
* 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 {@link ListProjectsRequest.Builder} avoiding the need to
* create one manually via {@link ListProjectsRequest#builder()}
*
*
* @param listProjectsRequest
* A {@link Consumer} that will call methods on {@link ListProjectsRequest.Builder} to create a request.
* @return Result of the ListProjects operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.ListProjects
* @see AWS API Documentation
*/
default ListProjectsResponse listProjects(Consumer listProjectsRequest)
throws InternalFailureException, InvalidRequestException, AwsServiceException, SdkClientException,
Iot1ClickProjectsException {
return listProjects(ListProjectsRequest.builder().applyMutation(listProjectsRequest).build());
}
/**
*
* Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.
*
*
*
* This is a variant of
* {@link #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
*
*
* {@code
* software.amazon.awssdk.services.iot1clickprojects.paginators.ListProjectsIterable responses = client.listProjectsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @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 directly
*
*
* {@code
* software.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
* {@link #listProjects(software.amazon.awssdk.services.iot1clickprojects.model.ListProjectsRequest)} operation.
*
*
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.ListProjects
* @see #listProjectsPaginator(ListProjectsRequest)
* @see AWS API Documentation
*/
default ListProjectsIterable listProjectsPaginator() throws InternalFailureException, InvalidRequestException,
AwsServiceException, SdkClientException, Iot1ClickProjectsException {
return listProjectsPaginator(ListProjectsRequest.builder().build());
}
/**
*
* Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.
*
*
*
* This is a variant of
* {@link #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
*
*
* {@code
* software.amazon.awssdk.services.iot1clickprojects.paginators.ListProjectsIterable responses = client.listProjectsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @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 directly
*
*
* {@code
* software.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
* {@link #listProjects(software.amazon.awssdk.services.iot1clickprojects.model.ListProjectsRequest)} operation.
*
*
* @param listProjectsRequest
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.ListProjects
* @see AWS API Documentation
*/
default ListProjectsIterable listProjectsPaginator(ListProjectsRequest listProjectsRequest) throws InternalFailureException,
InvalidRequestException, AwsServiceException, SdkClientException, Iot1ClickProjectsException {
throw new UnsupportedOperationException();
}
/**
*
* Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.
*
*
*
* This is a variant of
* {@link #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
*
*
* {@code
* software.amazon.awssdk.services.iot1clickprojects.paginators.ListProjectsIterable responses = client.listProjectsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @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 directly
*
*
* {@code
* software.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
* {@link #listProjects(software.amazon.awssdk.services.iot1clickprojects.model.ListProjectsRequest)} operation.
*
*
* This is a convenience which creates an instance of the {@link ListProjectsRequest.Builder} avoiding the need to
* create one manually via {@link ListProjectsRequest#builder()}
*
*
* @param listProjectsRequest
* A {@link Consumer} that will call methods on {@link ListProjectsRequest.Builder} to create a request.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.ListProjects
* @see AWS API Documentation
*/
default ListProjectsIterable listProjectsPaginator(Consumer listProjectsRequest)
throws InternalFailureException, InvalidRequestException, AwsServiceException, SdkClientException,
Iot1ClickProjectsException {
return listProjectsPaginator(ListProjectsRequest.builder().applyMutation(listProjectsRequest).build());
}
/**
*
* Lists the tags (metadata key/value pairs) which you have assigned to the resource.
*
*
* @param listTagsForResourceRequest
* @return Result of the ListTagsForResource operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.ListTagsForResource
* @see AWS API Documentation
*/
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException,
SdkClientException, Iot1ClickProjectsException {
throw new UnsupportedOperationException();
}
/**
*
* Lists the tags (metadata key/value pairs) which you have assigned to the resource.
*
*
*
* This is a convenience which creates an instance of the {@link ListTagsForResourceRequest.Builder} avoiding the
* need to create one manually via {@link ListTagsForResourceRequest#builder()}
*
*
* @param listTagsForResourceRequest
* A {@link Consumer} that will call methods on {@link ListTagsForResourceRequest.Builder} to create a
* request.
* @return Result of the ListTagsForResource operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.ListTagsForResource
* @see AWS API Documentation
*/
default ListTagsForResourceResponse listTagsForResource(
Consumer listTagsForResourceRequest) throws InternalFailureException,
InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException,
Iot1ClickProjectsException {
return listTagsForResource(ListTagsForResourceRequest.builder().applyMutation(listTagsForResourceRequest).build());
}
/**
*
* 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.
*
*
* @param tagResourceRequest
* @return Result of the TagResource operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.TagResource
* @see AWS API Documentation
*/
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws InternalFailureException,
InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException,
Iot1ClickProjectsException {
throw new UnsupportedOperationException();
}
/**
*
* 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 {@link TagResourceRequest.Builder} avoiding the need to
* create one manually via {@link TagResourceRequest#builder()}
*
*
* @param tagResourceRequest
* A {@link Consumer} that will call methods on {@link TagResourceRequest.Builder} to create a request.
* @return Result of the TagResource operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.TagResource
* @see AWS API Documentation
*/
default TagResourceResponse tagResource(Consumer tagResourceRequest)
throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException,
SdkClientException, Iot1ClickProjectsException {
return tagResource(TagResourceRequest.builder().applyMutation(tagResourceRequest).build());
}
/**
*
* Removes one or more tags (metadata key/value pairs) from a resource.
*
*
* @param untagResourceRequest
* @return Result of the UntagResource operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.UntagResource
* @see AWS API Documentation
*/
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws InternalFailureException,
InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException,
Iot1ClickProjectsException {
throw new UnsupportedOperationException();
}
/**
*
* Removes one or more tags (metadata key/value pairs) from a resource.
*
*
*
* This is a convenience which creates an instance of the {@link UntagResourceRequest.Builder} avoiding the need to
* create one manually via {@link UntagResourceRequest#builder()}
*
*
* @param untagResourceRequest
* A {@link Consumer} that will call methods on {@link UntagResourceRequest.Builder} to create a request.
* @return Result of the UntagResource operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.UntagResource
* @see AWS API Documentation
*/
default UntagResourceResponse untagResource(Consumer untagResourceRequest)
throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, AwsServiceException,
SdkClientException, Iot1ClickProjectsException {
return untagResource(UntagResourceRequest.builder().applyMutation(untagResourceRequest).build());
}
/**
*
* Updates a placement with the given attributes. To clear an attribute, pass an empty value (i.e., "").
*
*
* @param updatePlacementRequest
* @return Result of the UpdatePlacement operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws TooManyRequestsException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.UpdatePlacement
* @see AWS API Documentation
*/
default UpdatePlacementResponse updatePlacement(UpdatePlacementRequest updatePlacementRequest)
throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, TooManyRequestsException,
AwsServiceException, SdkClientException, Iot1ClickProjectsException {
throw new UnsupportedOperationException();
}
/**
*
* 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 {@link UpdatePlacementRequest.Builder} avoiding the need
* to create one manually via {@link UpdatePlacementRequest#builder()}
*
*
* @param updatePlacementRequest
* A {@link Consumer} that will call methods on {@link UpdatePlacementRequest.Builder} to create a request.
* @return Result of the UpdatePlacement operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws TooManyRequestsException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.UpdatePlacement
* @see AWS API Documentation
*/
default UpdatePlacementResponse updatePlacement(Consumer updatePlacementRequest)
throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, TooManyRequestsException,
AwsServiceException, SdkClientException, Iot1ClickProjectsException {
return updatePlacement(UpdatePlacementRequest.builder().applyMutation(updatePlacementRequest).build());
}
/**
*
* 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., ""
).
*
*
* @param updateProjectRequest
* @return Result of the UpdateProject operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws TooManyRequestsException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.UpdateProject
* @see AWS API Documentation
*/
default UpdateProjectResponse updateProject(UpdateProjectRequest updateProjectRequest) throws InternalFailureException,
InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException,
SdkClientException, Iot1ClickProjectsException {
throw new UnsupportedOperationException();
}
/**
*
* 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 {@link UpdateProjectRequest.Builder} avoiding the need to
* create one manually via {@link UpdateProjectRequest#builder()}
*
*
* @param updateProjectRequest
* A {@link Consumer} that will call methods on {@link UpdateProjectRequest.Builder} to create a request.
* @return Result of the UpdateProject operation returned by the service.
* @throws InternalFailureException
* @throws InvalidRequestException
* @throws ResourceNotFoundException
* @throws TooManyRequestsException
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws Iot1ClickProjectsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample Iot1ClickProjectsClient.UpdateProject
* @see AWS API Documentation
*/
default UpdateProjectResponse updateProject(Consumer updateProjectRequest)
throws InternalFailureException, InvalidRequestException, ResourceNotFoundException, TooManyRequestsException,
AwsServiceException, SdkClientException, Iot1ClickProjectsException {
return updateProject(UpdateProjectRequest.builder().applyMutation(updateProjectRequest).build());
}
/**
* Create a {@link Iot1ClickProjectsClient} with the region loaded from the
* {@link software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain} and credentials loaded from the
* {@link software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider}.
*/
static Iot1ClickProjectsClient create() {
return builder().build();
}
/**
* Create a builder that can be used to configure and create a {@link Iot1ClickProjectsClient}.
*/
static Iot1ClickProjectsClientBuilder builder() {
return new DefaultIot1ClickProjectsClientBuilder();
}
static ServiceMetadata serviceMetadata() {
return ServiceMetadata.of(SERVICE_METADATA_ID);
}
@Override
default Iot1ClickProjectsServiceClientConfiguration serviceClientConfiguration() {
throw new UnsupportedOperationException();
}
}