All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.dataexchange.DataExchangeClient Maven / Gradle / Ivy

Go to download

The AWS Java SDK for DataExchange module holds the client classes that are used for communicating with DataExchange.

There is a newer version: 2.28.5
Show newest version
/*
 * 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.dataexchange;

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.dataexchange.model.AccessDeniedException;
import software.amazon.awssdk.services.dataexchange.model.CancelJobRequest;
import software.amazon.awssdk.services.dataexchange.model.CancelJobResponse;
import software.amazon.awssdk.services.dataexchange.model.ConflictException;
import software.amazon.awssdk.services.dataexchange.model.CreateDataSetRequest;
import software.amazon.awssdk.services.dataexchange.model.CreateDataSetResponse;
import software.amazon.awssdk.services.dataexchange.model.CreateEventActionRequest;
import software.amazon.awssdk.services.dataexchange.model.CreateEventActionResponse;
import software.amazon.awssdk.services.dataexchange.model.CreateJobRequest;
import software.amazon.awssdk.services.dataexchange.model.CreateJobResponse;
import software.amazon.awssdk.services.dataexchange.model.CreateRevisionRequest;
import software.amazon.awssdk.services.dataexchange.model.CreateRevisionResponse;
import software.amazon.awssdk.services.dataexchange.model.DataExchangeException;
import software.amazon.awssdk.services.dataexchange.model.DeleteAssetRequest;
import software.amazon.awssdk.services.dataexchange.model.DeleteAssetResponse;
import software.amazon.awssdk.services.dataexchange.model.DeleteDataSetRequest;
import software.amazon.awssdk.services.dataexchange.model.DeleteDataSetResponse;
import software.amazon.awssdk.services.dataexchange.model.DeleteEventActionRequest;
import software.amazon.awssdk.services.dataexchange.model.DeleteEventActionResponse;
import software.amazon.awssdk.services.dataexchange.model.DeleteRevisionRequest;
import software.amazon.awssdk.services.dataexchange.model.DeleteRevisionResponse;
import software.amazon.awssdk.services.dataexchange.model.GetAssetRequest;
import software.amazon.awssdk.services.dataexchange.model.GetAssetResponse;
import software.amazon.awssdk.services.dataexchange.model.GetDataSetRequest;
import software.amazon.awssdk.services.dataexchange.model.GetDataSetResponse;
import software.amazon.awssdk.services.dataexchange.model.GetEventActionRequest;
import software.amazon.awssdk.services.dataexchange.model.GetEventActionResponse;
import software.amazon.awssdk.services.dataexchange.model.GetJobRequest;
import software.amazon.awssdk.services.dataexchange.model.GetJobResponse;
import software.amazon.awssdk.services.dataexchange.model.GetRevisionRequest;
import software.amazon.awssdk.services.dataexchange.model.GetRevisionResponse;
import software.amazon.awssdk.services.dataexchange.model.InternalServerException;
import software.amazon.awssdk.services.dataexchange.model.ListDataSetRevisionsRequest;
import software.amazon.awssdk.services.dataexchange.model.ListDataSetRevisionsResponse;
import software.amazon.awssdk.services.dataexchange.model.ListDataSetsRequest;
import software.amazon.awssdk.services.dataexchange.model.ListDataSetsResponse;
import software.amazon.awssdk.services.dataexchange.model.ListEventActionsRequest;
import software.amazon.awssdk.services.dataexchange.model.ListEventActionsResponse;
import software.amazon.awssdk.services.dataexchange.model.ListJobsRequest;
import software.amazon.awssdk.services.dataexchange.model.ListJobsResponse;
import software.amazon.awssdk.services.dataexchange.model.ListRevisionAssetsRequest;
import software.amazon.awssdk.services.dataexchange.model.ListRevisionAssetsResponse;
import software.amazon.awssdk.services.dataexchange.model.ListTagsForResourceRequest;
import software.amazon.awssdk.services.dataexchange.model.ListTagsForResourceResponse;
import software.amazon.awssdk.services.dataexchange.model.ResourceNotFoundException;
import software.amazon.awssdk.services.dataexchange.model.RevokeRevisionRequest;
import software.amazon.awssdk.services.dataexchange.model.RevokeRevisionResponse;
import software.amazon.awssdk.services.dataexchange.model.SendDataSetNotificationRequest;
import software.amazon.awssdk.services.dataexchange.model.SendDataSetNotificationResponse;
import software.amazon.awssdk.services.dataexchange.model.ServiceLimitExceededException;
import software.amazon.awssdk.services.dataexchange.model.StartJobRequest;
import software.amazon.awssdk.services.dataexchange.model.StartJobResponse;
import software.amazon.awssdk.services.dataexchange.model.TagResourceRequest;
import software.amazon.awssdk.services.dataexchange.model.TagResourceResponse;
import software.amazon.awssdk.services.dataexchange.model.ThrottlingException;
import software.amazon.awssdk.services.dataexchange.model.UntagResourceRequest;
import software.amazon.awssdk.services.dataexchange.model.UntagResourceResponse;
import software.amazon.awssdk.services.dataexchange.model.UpdateAssetRequest;
import software.amazon.awssdk.services.dataexchange.model.UpdateAssetResponse;
import software.amazon.awssdk.services.dataexchange.model.UpdateDataSetRequest;
import software.amazon.awssdk.services.dataexchange.model.UpdateDataSetResponse;
import software.amazon.awssdk.services.dataexchange.model.UpdateEventActionRequest;
import software.amazon.awssdk.services.dataexchange.model.UpdateEventActionResponse;
import software.amazon.awssdk.services.dataexchange.model.UpdateRevisionRequest;
import software.amazon.awssdk.services.dataexchange.model.UpdateRevisionResponse;
import software.amazon.awssdk.services.dataexchange.model.ValidationException;
import software.amazon.awssdk.services.dataexchange.paginators.ListDataSetRevisionsIterable;
import software.amazon.awssdk.services.dataexchange.paginators.ListDataSetsIterable;
import software.amazon.awssdk.services.dataexchange.paginators.ListEventActionsIterable;
import software.amazon.awssdk.services.dataexchange.paginators.ListJobsIterable;
import software.amazon.awssdk.services.dataexchange.paginators.ListRevisionAssetsIterable;

/**
 * Service client for accessing AWS Data Exchange. This can be created using the static {@link #builder()} method.
 *
 * 

* AWS Data Exchange is a service that makes it easy for AWS customers to exchange data in the cloud. You can use the * AWS Data Exchange APIs to create, update, manage, and access file-based data set in the AWS Cloud. *

*

* As a subscriber, you can view and access the data sets that you have an entitlement to through a subscription. You * can use the APIs to download or copy your entitled data sets to Amazon Simple Storage Service (Amazon S3) for use * across a variety of AWS analytics and machine learning services. *

*

* As a provider, you can create and manage your data sets that you would like to publish to a product. Being able to * package and provide your data sets into products requires a few steps to determine eligibility. For more information, * visit the AWS Data Exchange User Guide. *

*

* A data set is a collection of data that can be changed or updated over time. Data sets can be updated using * revisions, which represent a new version or incremental change to a data set. A revision contains one or more assets. * An asset in AWS Data Exchange is a piece of data that can be stored as an Amazon S3 object, Redshift datashare, API * Gateway API, AWS Lake Formation data permission, or Amazon S3 data access. The asset can be a structured data file, * an image file, or some other data file. Jobs are asynchronous import or export operations used to create or copy * assets. *

*/ @Generated("software.amazon.awssdk:codegen") @SdkPublicApi @ThreadSafe public interface DataExchangeClient extends AwsClient { String SERVICE_NAME = "dataexchange"; /** * Value for looking up the service's metadata from the * {@link software.amazon.awssdk.regions.ServiceMetadataProvider}. */ String SERVICE_METADATA_ID = "dataexchange"; /** *

* This operation cancels a job. Jobs can be cancelled only when they are in the WAITING state. *

* * @param cancelJobRequest * @return Result of the CancelJob operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.CancelJob * @see AWS API * Documentation */ default CancelJobResponse cancelJob(CancelJobRequest cancelJobRequest) throws ResourceNotFoundException, ThrottlingException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation cancels a job. Jobs can be cancelled only when they are in the WAITING state. *

*
*

* This is a convenience which creates an instance of the {@link CancelJobRequest.Builder} avoiding the need to * create one manually via {@link CancelJobRequest#builder()} *

* * @param cancelJobRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.CancelJobRequest.Builder} to create a request. * @return Result of the CancelJob operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.CancelJob * @see AWS API * Documentation */ default CancelJobResponse cancelJob(Consumer cancelJobRequest) throws ResourceNotFoundException, ThrottlingException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return cancelJob(CancelJobRequest.builder().applyMutation(cancelJobRequest).build()); } /** *

* This operation creates a data set. *

* * @param createDataSetRequest * @return Result of the CreateDataSet operation returned by the service. * @throws ServiceLimitExceededException * The request has exceeded the quotas imposed by the service. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.CreateDataSet * @see AWS * API Documentation */ default CreateDataSetResponse createDataSet(CreateDataSetRequest createDataSetRequest) throws ServiceLimitExceededException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation creates a data set. *

*
*

* This is a convenience which creates an instance of the {@link CreateDataSetRequest.Builder} avoiding the need to * create one manually via {@link CreateDataSetRequest#builder()} *

* * @param createDataSetRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.CreateDataSetRequest.Builder} to create a * request. * @return Result of the CreateDataSet operation returned by the service. * @throws ServiceLimitExceededException * The request has exceeded the quotas imposed by the service. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.CreateDataSet * @see AWS * API Documentation */ default CreateDataSetResponse createDataSet(Consumer createDataSetRequest) throws ServiceLimitExceededException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return createDataSet(CreateDataSetRequest.builder().applyMutation(createDataSetRequest).build()); } /** *

* This operation creates an event action. *

* * @param createEventActionRequest * @return Result of the CreateEventAction operation returned by the service. * @throws ServiceLimitExceededException * The request has exceeded the quotas imposed by the service. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.CreateEventAction * @see AWS API Documentation */ default CreateEventActionResponse createEventAction(CreateEventActionRequest createEventActionRequest) throws ServiceLimitExceededException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation creates an event action. *

*
*

* This is a convenience which creates an instance of the {@link CreateEventActionRequest.Builder} avoiding the need * to create one manually via {@link CreateEventActionRequest#builder()} *

* * @param createEventActionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.CreateEventActionRequest.Builder} to create a * request. * @return Result of the CreateEventAction operation returned by the service. * @throws ServiceLimitExceededException * The request has exceeded the quotas imposed by the service. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.CreateEventAction * @see AWS API Documentation */ default CreateEventActionResponse createEventAction(Consumer createEventActionRequest) throws ServiceLimitExceededException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return createEventAction(CreateEventActionRequest.builder().applyMutation(createEventActionRequest).build()); } /** *

* This operation creates a job. *

* * @param createJobRequest * @return Result of the CreateJob operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.CreateJob * @see AWS API * Documentation */ default CreateJobResponse createJob(CreateJobRequest createJobRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation creates a job. *

*
*

* This is a convenience which creates an instance of the {@link CreateJobRequest.Builder} avoiding the need to * create one manually via {@link CreateJobRequest#builder()} *

* * @param createJobRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.CreateJobRequest.Builder} to create a request. * @return Result of the CreateJob operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.CreateJob * @see AWS API * Documentation */ default CreateJobResponse createJob(Consumer createJobRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return createJob(CreateJobRequest.builder().applyMutation(createJobRequest).build()); } /** *

* This operation creates a revision for a data set. *

* * @param createRevisionRequest * @return Result of the CreateRevision operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.CreateRevision * @see AWS * API Documentation */ default CreateRevisionResponse createRevision(CreateRevisionRequest createRevisionRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation creates a revision for a data set. *

*
*

* This is a convenience which creates an instance of the {@link CreateRevisionRequest.Builder} avoiding the need to * create one manually via {@link CreateRevisionRequest#builder()} *

* * @param createRevisionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.CreateRevisionRequest.Builder} to create a * request. * @return Result of the CreateRevision operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.CreateRevision * @see AWS * API Documentation */ default CreateRevisionResponse createRevision(Consumer createRevisionRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return createRevision(CreateRevisionRequest.builder().applyMutation(createRevisionRequest).build()); } /** *

* This operation deletes an asset. *

* * @param deleteAssetRequest * @return Result of the DeleteAsset operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.DeleteAsset * @see AWS API * Documentation */ default DeleteAssetResponse deleteAsset(DeleteAssetRequest deleteAssetRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation deletes an asset. *

*
*

* This is a convenience which creates an instance of the {@link DeleteAssetRequest.Builder} avoiding the need to * create one manually via {@link DeleteAssetRequest#builder()} *

* * @param deleteAssetRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.DeleteAssetRequest.Builder} to create a request. * @return Result of the DeleteAsset operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.DeleteAsset * @see AWS API * Documentation */ default DeleteAssetResponse deleteAsset(Consumer deleteAssetRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return deleteAsset(DeleteAssetRequest.builder().applyMutation(deleteAssetRequest).build()); } /** *

* This operation deletes a data set. *

* * @param deleteDataSetRequest * @return Result of the DeleteDataSet operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.DeleteDataSet * @see AWS * API Documentation */ default DeleteDataSetResponse deleteDataSet(DeleteDataSetRequest deleteDataSetRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation deletes a data set. *

*
*

* This is a convenience which creates an instance of the {@link DeleteDataSetRequest.Builder} avoiding the need to * create one manually via {@link DeleteDataSetRequest#builder()} *

* * @param deleteDataSetRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.DeleteDataSetRequest.Builder} to create a * request. * @return Result of the DeleteDataSet operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.DeleteDataSet * @see AWS * API Documentation */ default DeleteDataSetResponse deleteDataSet(Consumer deleteDataSetRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return deleteDataSet(DeleteDataSetRequest.builder().applyMutation(deleteDataSetRequest).build()); } /** *

* This operation deletes the event action. *

* * @param deleteEventActionRequest * @return Result of the DeleteEventAction operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.DeleteEventAction * @see AWS API Documentation */ default DeleteEventActionResponse deleteEventAction(DeleteEventActionRequest deleteEventActionRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation deletes the event action. *

*
*

* This is a convenience which creates an instance of the {@link DeleteEventActionRequest.Builder} avoiding the need * to create one manually via {@link DeleteEventActionRequest#builder()} *

* * @param deleteEventActionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.DeleteEventActionRequest.Builder} to create a * request. * @return Result of the DeleteEventAction operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.DeleteEventAction * @see AWS API Documentation */ default DeleteEventActionResponse deleteEventAction(Consumer deleteEventActionRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return deleteEventAction(DeleteEventActionRequest.builder().applyMutation(deleteEventActionRequest).build()); } /** *

* This operation deletes a revision. *

* * @param deleteRevisionRequest * @return Result of the DeleteRevision operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.DeleteRevision * @see AWS * API Documentation */ default DeleteRevisionResponse deleteRevision(DeleteRevisionRequest deleteRevisionRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation deletes a revision. *

*
*

* This is a convenience which creates an instance of the {@link DeleteRevisionRequest.Builder} avoiding the need to * create one manually via {@link DeleteRevisionRequest#builder()} *

* * @param deleteRevisionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.DeleteRevisionRequest.Builder} to create a * request. * @return Result of the DeleteRevision operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.DeleteRevision * @see AWS * API Documentation */ default DeleteRevisionResponse deleteRevision(Consumer deleteRevisionRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return deleteRevision(DeleteRevisionRequest.builder().applyMutation(deleteRevisionRequest).build()); } /** *

* This operation returns information about an asset. *

* * @param getAssetRequest * @return Result of the GetAsset operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.GetAsset * @see AWS API * Documentation */ default GetAssetResponse getAsset(GetAssetRequest getAssetRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation returns information about an asset. *

*
*

* This is a convenience which creates an instance of the {@link GetAssetRequest.Builder} avoiding the need to * create one manually via {@link GetAssetRequest#builder()} *

* * @param getAssetRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.GetAssetRequest.Builder} to create a request. * @return Result of the GetAsset operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.GetAsset * @see AWS API * Documentation */ default GetAssetResponse getAsset(Consumer getAssetRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return getAsset(GetAssetRequest.builder().applyMutation(getAssetRequest).build()); } /** *

* This operation returns information about a data set. *

* * @param getDataSetRequest * @return Result of the GetDataSet operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.GetDataSet * @see AWS API * Documentation */ default GetDataSetResponse getDataSet(GetDataSetRequest getDataSetRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation returns information about a data set. *

*
*

* This is a convenience which creates an instance of the {@link GetDataSetRequest.Builder} avoiding the need to * create one manually via {@link GetDataSetRequest#builder()} *

* * @param getDataSetRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.GetDataSetRequest.Builder} to create a request. * @return Result of the GetDataSet operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.GetDataSet * @see AWS API * Documentation */ default GetDataSetResponse getDataSet(Consumer getDataSetRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return getDataSet(GetDataSetRequest.builder().applyMutation(getDataSetRequest).build()); } /** *

* This operation retrieves information about an event action. *

* * @param getEventActionRequest * @return Result of the GetEventAction operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.GetEventAction * @see AWS * API Documentation */ default GetEventActionResponse getEventAction(GetEventActionRequest getEventActionRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation retrieves information about an event action. *

*
*

* This is a convenience which creates an instance of the {@link GetEventActionRequest.Builder} avoiding the need to * create one manually via {@link GetEventActionRequest#builder()} *

* * @param getEventActionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.GetEventActionRequest.Builder} to create a * request. * @return Result of the GetEventAction operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.GetEventAction * @see AWS * API Documentation */ default GetEventActionResponse getEventAction(Consumer getEventActionRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return getEventAction(GetEventActionRequest.builder().applyMutation(getEventActionRequest).build()); } /** *

* This operation returns information about a job. *

* * @param getJobRequest * @return Result of the GetJob operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.GetJob * @see AWS API * Documentation */ default GetJobResponse getJob(GetJobRequest getJobRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation returns information about a job. *

*
*

* This is a convenience which creates an instance of the {@link GetJobRequest.Builder} avoiding the need to create * one manually via {@link GetJobRequest#builder()} *

* * @param getJobRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.GetJobRequest.Builder} to create a request. * @return Result of the GetJob operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.GetJob * @see AWS API * Documentation */ default GetJobResponse getJob(Consumer getJobRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return getJob(GetJobRequest.builder().applyMutation(getJobRequest).build()); } /** *

* This operation returns information about a revision. *

* * @param getRevisionRequest * @return Result of the GetRevision operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.GetRevision * @see AWS API * Documentation */ default GetRevisionResponse getRevision(GetRevisionRequest getRevisionRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation returns information about a revision. *

*
*

* This is a convenience which creates an instance of the {@link GetRevisionRequest.Builder} avoiding the need to * create one manually via {@link GetRevisionRequest#builder()} *

* * @param getRevisionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.GetRevisionRequest.Builder} to create a request. * @return Result of the GetRevision operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.GetRevision * @see AWS API * Documentation */ default GetRevisionResponse getRevision(Consumer getRevisionRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return getRevision(GetRevisionRequest.builder().applyMutation(getRevisionRequest).build()); } /** *

* This operation lists a data set's revisions sorted by CreatedAt in descending order. *

* * @param listDataSetRevisionsRequest * @return Result of the ListDataSetRevisions operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.ListDataSetRevisions * @see AWS API Documentation */ default ListDataSetRevisionsResponse listDataSetRevisions(ListDataSetRevisionsRequest listDataSetRevisionsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation lists a data set's revisions sorted by CreatedAt in descending order. *

*
*

* This is a convenience which creates an instance of the {@link ListDataSetRevisionsRequest.Builder} avoiding the * need to create one manually via {@link ListDataSetRevisionsRequest#builder()} *

* * @param listDataSetRevisionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.ListDataSetRevisionsRequest.Builder} to create a * request. * @return Result of the ListDataSetRevisions operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.ListDataSetRevisions * @see AWS API Documentation */ default ListDataSetRevisionsResponse listDataSetRevisions( Consumer listDataSetRevisionsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return listDataSetRevisions(ListDataSetRevisionsRequest.builder().applyMutation(listDataSetRevisionsRequest).build()); } /** *

* This is a variant of * {@link #listDataSetRevisions(software.amazon.awssdk.services.dataexchange.model.ListDataSetRevisionsRequest)} * 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.dataexchange.paginators.ListDataSetRevisionsIterable responses = client.listDataSetRevisionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.dataexchange.paginators.ListDataSetRevisionsIterable responses = client
     *             .listDataSetRevisionsPaginator(request);
     *     for (software.amazon.awssdk.services.dataexchange.model.ListDataSetRevisionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.dataexchange.paginators.ListDataSetRevisionsIterable responses = client.listDataSetRevisionsPaginator(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 #listDataSetRevisions(software.amazon.awssdk.services.dataexchange.model.ListDataSetRevisionsRequest)} * operation. *

* * @param listDataSetRevisionsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.ListDataSetRevisions * @see AWS API Documentation */ default ListDataSetRevisionsIterable listDataSetRevisionsPaginator(ListDataSetRevisionsRequest listDataSetRevisionsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return new ListDataSetRevisionsIterable(this, listDataSetRevisionsRequest); } /** *

* This is a variant of * {@link #listDataSetRevisions(software.amazon.awssdk.services.dataexchange.model.ListDataSetRevisionsRequest)} * 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.dataexchange.paginators.ListDataSetRevisionsIterable responses = client.listDataSetRevisionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.dataexchange.paginators.ListDataSetRevisionsIterable responses = client
     *             .listDataSetRevisionsPaginator(request);
     *     for (software.amazon.awssdk.services.dataexchange.model.ListDataSetRevisionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.dataexchange.paginators.ListDataSetRevisionsIterable responses = client.listDataSetRevisionsPaginator(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 #listDataSetRevisions(software.amazon.awssdk.services.dataexchange.model.ListDataSetRevisionsRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link ListDataSetRevisionsRequest.Builder} avoiding the * need to create one manually via {@link ListDataSetRevisionsRequest#builder()} *

* * @param listDataSetRevisionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.ListDataSetRevisionsRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.ListDataSetRevisions * @see AWS API Documentation */ default ListDataSetRevisionsIterable listDataSetRevisionsPaginator( Consumer listDataSetRevisionsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return listDataSetRevisionsPaginator(ListDataSetRevisionsRequest.builder().applyMutation(listDataSetRevisionsRequest) .build()); } /** *

* This operation lists your data sets. When listing by origin OWNED, results are sorted by CreatedAt in descending * order. When listing by origin ENTITLED, there is no order and the maxResults parameter is ignored. *

* * @param listDataSetsRequest * @return Result of the ListDataSets operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.ListDataSets * @see AWS API * Documentation */ default ListDataSetsResponse listDataSets(ListDataSetsRequest listDataSetsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation lists your data sets. When listing by origin OWNED, results are sorted by CreatedAt in descending * order. When listing by origin ENTITLED, there is no order and the maxResults parameter is ignored. *

*
*

* This is a convenience which creates an instance of the {@link ListDataSetsRequest.Builder} avoiding the need to * create one manually via {@link ListDataSetsRequest#builder()} *

* * @param listDataSetsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.ListDataSetsRequest.Builder} to create a * request. * @return Result of the ListDataSets operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.ListDataSets * @see AWS API * Documentation */ default ListDataSetsResponse listDataSets(Consumer listDataSetsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return listDataSets(ListDataSetsRequest.builder().applyMutation(listDataSetsRequest).build()); } /** *

* This is a variant of * {@link #listDataSets(software.amazon.awssdk.services.dataexchange.model.ListDataSetsRequest)} 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.dataexchange.paginators.ListDataSetsIterable responses = client.listDataSetsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.dataexchange.paginators.ListDataSetsIterable responses = client
     *             .listDataSetsPaginator(request);
     *     for (software.amazon.awssdk.services.dataexchange.model.ListDataSetsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.dataexchange.paginators.ListDataSetsIterable responses = client.listDataSetsPaginator(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 #listDataSets(software.amazon.awssdk.services.dataexchange.model.ListDataSetsRequest)} operation. *

* * @param listDataSetsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.ListDataSets * @see AWS API * Documentation */ default ListDataSetsIterable listDataSetsPaginator(ListDataSetsRequest listDataSetsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return new ListDataSetsIterable(this, listDataSetsRequest); } /** *

* This is a variant of * {@link #listDataSets(software.amazon.awssdk.services.dataexchange.model.ListDataSetsRequest)} 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.dataexchange.paginators.ListDataSetsIterable responses = client.listDataSetsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.dataexchange.paginators.ListDataSetsIterable responses = client
     *             .listDataSetsPaginator(request);
     *     for (software.amazon.awssdk.services.dataexchange.model.ListDataSetsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.dataexchange.paginators.ListDataSetsIterable responses = client.listDataSetsPaginator(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 #listDataSets(software.amazon.awssdk.services.dataexchange.model.ListDataSetsRequest)} operation. *

*
*

* This is a convenience which creates an instance of the {@link ListDataSetsRequest.Builder} avoiding the need to * create one manually via {@link ListDataSetsRequest#builder()} *

* * @param listDataSetsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.ListDataSetsRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.ListDataSets * @see AWS API * Documentation */ default ListDataSetsIterable listDataSetsPaginator(Consumer listDataSetsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return listDataSetsPaginator(ListDataSetsRequest.builder().applyMutation(listDataSetsRequest).build()); } /** *

* This operation lists your event actions. *

* * @param listEventActionsRequest * @return Result of the ListEventActions operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.ListEventActions * @see AWS * API Documentation */ default ListEventActionsResponse listEventActions(ListEventActionsRequest listEventActionsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation lists your event actions. *

*
*

* This is a convenience which creates an instance of the {@link ListEventActionsRequest.Builder} avoiding the need * to create one manually via {@link ListEventActionsRequest#builder()} *

* * @param listEventActionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.ListEventActionsRequest.Builder} to create a * request. * @return Result of the ListEventActions operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.ListEventActions * @see AWS * API Documentation */ default ListEventActionsResponse listEventActions(Consumer listEventActionsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return listEventActions(ListEventActionsRequest.builder().applyMutation(listEventActionsRequest).build()); } /** *

* This is a variant of * {@link #listEventActions(software.amazon.awssdk.services.dataexchange.model.ListEventActionsRequest)} 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.dataexchange.paginators.ListEventActionsIterable responses = client.listEventActionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.dataexchange.paginators.ListEventActionsIterable responses = client
     *             .listEventActionsPaginator(request);
     *     for (software.amazon.awssdk.services.dataexchange.model.ListEventActionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.dataexchange.paginators.ListEventActionsIterable responses = client.listEventActionsPaginator(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 #listEventActions(software.amazon.awssdk.services.dataexchange.model.ListEventActionsRequest)} * operation. *

* * @param listEventActionsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.ListEventActions * @see AWS * API Documentation */ default ListEventActionsIterable listEventActionsPaginator(ListEventActionsRequest listEventActionsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return new ListEventActionsIterable(this, listEventActionsRequest); } /** *

* This is a variant of * {@link #listEventActions(software.amazon.awssdk.services.dataexchange.model.ListEventActionsRequest)} 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.dataexchange.paginators.ListEventActionsIterable responses = client.listEventActionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.dataexchange.paginators.ListEventActionsIterable responses = client
     *             .listEventActionsPaginator(request);
     *     for (software.amazon.awssdk.services.dataexchange.model.ListEventActionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.dataexchange.paginators.ListEventActionsIterable responses = client.listEventActionsPaginator(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 #listEventActions(software.amazon.awssdk.services.dataexchange.model.ListEventActionsRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link ListEventActionsRequest.Builder} avoiding the need * to create one manually via {@link ListEventActionsRequest#builder()} *

* * @param listEventActionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.ListEventActionsRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.ListEventActions * @see AWS * API Documentation */ default ListEventActionsIterable listEventActionsPaginator(Consumer listEventActionsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return listEventActionsPaginator(ListEventActionsRequest.builder().applyMutation(listEventActionsRequest).build()); } /** *

* This operation lists your jobs sorted by CreatedAt in descending order. *

* * @param listJobsRequest * @return Result of the ListJobs operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.ListJobs * @see AWS API * Documentation */ default ListJobsResponse listJobs(ListJobsRequest listJobsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation lists your jobs sorted by CreatedAt in descending order. *

*
*

* This is a convenience which creates an instance of the {@link ListJobsRequest.Builder} avoiding the need to * create one manually via {@link ListJobsRequest#builder()} *

* * @param listJobsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.ListJobsRequest.Builder} to create a request. * @return Result of the ListJobs operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.ListJobs * @see AWS API * Documentation */ default ListJobsResponse listJobs(Consumer listJobsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return listJobs(ListJobsRequest.builder().applyMutation(listJobsRequest).build()); } /** *

* This is a variant of {@link #listJobs(software.amazon.awssdk.services.dataexchange.model.ListJobsRequest)} * 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.dataexchange.paginators.ListJobsIterable responses = client.listJobsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.dataexchange.paginators.ListJobsIterable responses = client.listJobsPaginator(request);
     *     for (software.amazon.awssdk.services.dataexchange.model.ListJobsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.dataexchange.paginators.ListJobsIterable responses = client.listJobsPaginator(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 #listJobs(software.amazon.awssdk.services.dataexchange.model.ListJobsRequest)} operation. *

* * @param listJobsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.ListJobs * @see AWS API * Documentation */ default ListJobsIterable listJobsPaginator(ListJobsRequest listJobsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return new ListJobsIterable(this, listJobsRequest); } /** *

* This is a variant of {@link #listJobs(software.amazon.awssdk.services.dataexchange.model.ListJobsRequest)} * 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.dataexchange.paginators.ListJobsIterable responses = client.listJobsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.dataexchange.paginators.ListJobsIterable responses = client.listJobsPaginator(request);
     *     for (software.amazon.awssdk.services.dataexchange.model.ListJobsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.dataexchange.paginators.ListJobsIterable responses = client.listJobsPaginator(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 #listJobs(software.amazon.awssdk.services.dataexchange.model.ListJobsRequest)} operation. *

*
*

* This is a convenience which creates an instance of the {@link ListJobsRequest.Builder} avoiding the need to * create one manually via {@link ListJobsRequest#builder()} *

* * @param listJobsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.ListJobsRequest.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.ListJobs * @see AWS API * Documentation */ default ListJobsIterable listJobsPaginator(Consumer listJobsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return listJobsPaginator(ListJobsRequest.builder().applyMutation(listJobsRequest).build()); } /** *

* This operation lists a revision's assets sorted alphabetically in descending order. *

* * @param listRevisionAssetsRequest * @return Result of the ListRevisionAssets operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.ListRevisionAssets * @see AWS API Documentation */ default ListRevisionAssetsResponse listRevisionAssets(ListRevisionAssetsRequest listRevisionAssetsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation lists a revision's assets sorted alphabetically in descending order. *

*
*

* This is a convenience which creates an instance of the {@link ListRevisionAssetsRequest.Builder} avoiding the * need to create one manually via {@link ListRevisionAssetsRequest#builder()} *

* * @param listRevisionAssetsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.ListRevisionAssetsRequest.Builder} to create a * request. * @return Result of the ListRevisionAssets operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.ListRevisionAssets * @see AWS API Documentation */ default ListRevisionAssetsResponse listRevisionAssets(Consumer listRevisionAssetsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return listRevisionAssets(ListRevisionAssetsRequest.builder().applyMutation(listRevisionAssetsRequest).build()); } /** *

* This is a variant of * {@link #listRevisionAssets(software.amazon.awssdk.services.dataexchange.model.ListRevisionAssetsRequest)} * 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.dataexchange.paginators.ListRevisionAssetsIterable responses = client.listRevisionAssetsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.dataexchange.paginators.ListRevisionAssetsIterable responses = client
     *             .listRevisionAssetsPaginator(request);
     *     for (software.amazon.awssdk.services.dataexchange.model.ListRevisionAssetsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.dataexchange.paginators.ListRevisionAssetsIterable responses = client.listRevisionAssetsPaginator(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 #listRevisionAssets(software.amazon.awssdk.services.dataexchange.model.ListRevisionAssetsRequest)} * operation. *

* * @param listRevisionAssetsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.ListRevisionAssets * @see AWS API Documentation */ default ListRevisionAssetsIterable listRevisionAssetsPaginator(ListRevisionAssetsRequest listRevisionAssetsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return new ListRevisionAssetsIterable(this, listRevisionAssetsRequest); } /** *

* This is a variant of * {@link #listRevisionAssets(software.amazon.awssdk.services.dataexchange.model.ListRevisionAssetsRequest)} * 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.dataexchange.paginators.ListRevisionAssetsIterable responses = client.listRevisionAssetsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.dataexchange.paginators.ListRevisionAssetsIterable responses = client
     *             .listRevisionAssetsPaginator(request);
     *     for (software.amazon.awssdk.services.dataexchange.model.ListRevisionAssetsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.dataexchange.paginators.ListRevisionAssetsIterable responses = client.listRevisionAssetsPaginator(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 #listRevisionAssets(software.amazon.awssdk.services.dataexchange.model.ListRevisionAssetsRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link ListRevisionAssetsRequest.Builder} avoiding the * need to create one manually via {@link ListRevisionAssetsRequest#builder()} *

* * @param listRevisionAssetsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.ListRevisionAssetsRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.ListRevisionAssets * @see AWS API Documentation */ default ListRevisionAssetsIterable listRevisionAssetsPaginator( Consumer listRevisionAssetsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return listRevisionAssetsPaginator(ListRevisionAssetsRequest.builder().applyMutation(listRevisionAssetsRequest).build()); } /** *

* This operation lists the tags on the resource. *

* * @param listTagsForResourceRequest * @return Result of the ListTagsForResource operation returned by the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.ListTagsForResource * @see AWS API Documentation */ default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation lists the tags on 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 software.amazon.awssdk.services.dataexchange.model.ListTagsForResourceRequest.Builder} to create a * request. * @return Result of the ListTagsForResource operation returned by the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.ListTagsForResource * @see AWS API Documentation */ default ListTagsForResourceResponse listTagsForResource( Consumer listTagsForResourceRequest) throws AwsServiceException, SdkClientException, DataExchangeException { return listTagsForResource(ListTagsForResourceRequest.builder().applyMutation(listTagsForResourceRequest).build()); } /** *

* This operation revokes subscribers' access to a revision. *

* * @param revokeRevisionRequest * @return Result of the RevokeRevision operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.RevokeRevision * @see AWS * API Documentation */ default RevokeRevisionResponse revokeRevision(RevokeRevisionRequest revokeRevisionRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation revokes subscribers' access to a revision. *

*
*

* This is a convenience which creates an instance of the {@link RevokeRevisionRequest.Builder} avoiding the need to * create one manually via {@link RevokeRevisionRequest#builder()} *

* * @param revokeRevisionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.RevokeRevisionRequest.Builder} to create a * request. * @return Result of the RevokeRevision operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.RevokeRevision * @see AWS * API Documentation */ default RevokeRevisionResponse revokeRevision(Consumer revokeRevisionRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return revokeRevision(RevokeRevisionRequest.builder().applyMutation(revokeRevisionRequest).build()); } /** *

* The type of event associated with the data set. *

* * @param sendDataSetNotificationRequest * @return Result of the SendDataSetNotification operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.SendDataSetNotification * @see AWS API Documentation */ default SendDataSetNotificationResponse sendDataSetNotification(SendDataSetNotificationRequest sendDataSetNotificationRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* The type of event associated with the data set. *

*
*

* This is a convenience which creates an instance of the {@link SendDataSetNotificationRequest.Builder} avoiding * the need to create one manually via {@link SendDataSetNotificationRequest#builder()} *

* * @param sendDataSetNotificationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.SendDataSetNotificationRequest.Builder} to * create a request. * @return Result of the SendDataSetNotification operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.SendDataSetNotification * @see AWS API Documentation */ default SendDataSetNotificationResponse sendDataSetNotification( Consumer sendDataSetNotificationRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return sendDataSetNotification(SendDataSetNotificationRequest.builder().applyMutation(sendDataSetNotificationRequest) .build()); } /** *

* This operation starts a job. *

* * @param startJobRequest * @return Result of the StartJob operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.StartJob * @see AWS API * Documentation */ default StartJobResponse startJob(StartJobRequest startJobRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation starts a job. *

*
*

* This is a convenience which creates an instance of the {@link StartJobRequest.Builder} avoiding the need to * create one manually via {@link StartJobRequest#builder()} *

* * @param startJobRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.StartJobRequest.Builder} to create a request. * @return Result of the StartJob operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.StartJob * @see AWS API * Documentation */ default StartJobResponse startJob(Consumer startJobRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return startJob(StartJobRequest.builder().applyMutation(startJobRequest).build()); } /** *

* This operation tags a resource. *

* * @param tagResourceRequest * @return Result of the TagResource operation returned by the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.TagResource * @see AWS API * Documentation */ default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation tags a resource. *

*
*

* 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 software.amazon.awssdk.services.dataexchange.model.TagResourceRequest.Builder} to create a request. * @return Result of the TagResource operation returned by the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.TagResource * @see AWS API * Documentation */ default TagResourceResponse tagResource(Consumer tagResourceRequest) throws AwsServiceException, SdkClientException, DataExchangeException { return tagResource(TagResourceRequest.builder().applyMutation(tagResourceRequest).build()); } /** *

* This operation removes one or more tags from a resource. *

* * @param untagResourceRequest * @return Result of the UntagResource operation returned by the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.UntagResource * @see AWS * API Documentation */ default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation removes one or more tags 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 software.amazon.awssdk.services.dataexchange.model.UntagResourceRequest.Builder} to create a * request. * @return Result of the UntagResource operation returned by the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.UntagResource * @see AWS * API Documentation */ default UntagResourceResponse untagResource(Consumer untagResourceRequest) throws AwsServiceException, SdkClientException, DataExchangeException { return untagResource(UntagResourceRequest.builder().applyMutation(untagResourceRequest).build()); } /** *

* This operation updates an asset. *

* * @param updateAssetRequest * @return Result of the UpdateAsset operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.UpdateAsset * @see AWS API * Documentation */ default UpdateAssetResponse updateAsset(UpdateAssetRequest updateAssetRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation updates an asset. *

*
*

* This is a convenience which creates an instance of the {@link UpdateAssetRequest.Builder} avoiding the need to * create one manually via {@link UpdateAssetRequest#builder()} *

* * @param updateAssetRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.UpdateAssetRequest.Builder} to create a request. * @return Result of the UpdateAsset operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.UpdateAsset * @see AWS API * Documentation */ default UpdateAssetResponse updateAsset(Consumer updateAssetRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return updateAsset(UpdateAssetRequest.builder().applyMutation(updateAssetRequest).build()); } /** *

* This operation updates a data set. *

* * @param updateDataSetRequest * @return Result of the UpdateDataSet operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.UpdateDataSet * @see AWS * API Documentation */ default UpdateDataSetResponse updateDataSet(UpdateDataSetRequest updateDataSetRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation updates a data set. *

*
*

* This is a convenience which creates an instance of the {@link UpdateDataSetRequest.Builder} avoiding the need to * create one manually via {@link UpdateDataSetRequest#builder()} *

* * @param updateDataSetRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.UpdateDataSetRequest.Builder} to create a * request. * @return Result of the UpdateDataSet operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.UpdateDataSet * @see AWS * API Documentation */ default UpdateDataSetResponse updateDataSet(Consumer updateDataSetRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return updateDataSet(UpdateDataSetRequest.builder().applyMutation(updateDataSetRequest).build()); } /** *

* This operation updates the event action. *

* * @param updateEventActionRequest * @return Result of the UpdateEventAction operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.UpdateEventAction * @see AWS API Documentation */ default UpdateEventActionResponse updateEventAction(UpdateEventActionRequest updateEventActionRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation updates the event action. *

*
*

* This is a convenience which creates an instance of the {@link UpdateEventActionRequest.Builder} avoiding the need * to create one manually via {@link UpdateEventActionRequest#builder()} *

* * @param updateEventActionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.UpdateEventActionRequest.Builder} to create a * request. * @return Result of the UpdateEventAction operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.UpdateEventAction * @see AWS API Documentation */ default UpdateEventActionResponse updateEventAction(Consumer updateEventActionRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return updateEventAction(UpdateEventActionRequest.builder().applyMutation(updateEventActionRequest).build()); } /** *

* This operation updates a revision. *

* * @param updateRevisionRequest * @return Result of the UpdateRevision operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.UpdateRevision * @see AWS * API Documentation */ default UpdateRevisionResponse updateRevision(UpdateRevisionRequest updateRevisionRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { throw new UnsupportedOperationException(); } /** *

* This operation updates a revision. *

*
*

* This is a convenience which creates an instance of the {@link UpdateRevisionRequest.Builder} avoiding the need to * create one manually via {@link UpdateRevisionRequest#builder()} *

* * @param updateRevisionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.dataexchange.model.UpdateRevisionRequest.Builder} to create a * request. * @return Result of the UpdateRevision operation returned by the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws ThrottlingException * The limit on the number of requests per second was exceeded. * @throws AccessDeniedException * Access to the resource is denied. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * The request was invalid. * @throws InternalServerException * An exception occurred with the service. * @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 DataExchangeException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DataExchangeClient.UpdateRevision * @see AWS * API Documentation */ default UpdateRevisionResponse updateRevision(Consumer updateRevisionRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, DataExchangeException { return updateRevision(UpdateRevisionRequest.builder().applyMutation(updateRevisionRequest).build()); } /** * Create a {@link DataExchangeClient} 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 DataExchangeClient create() { return builder().build(); } /** * Create a builder that can be used to configure and create a {@link DataExchangeClient}. */ static DataExchangeClientBuilder builder() { return new DefaultDataExchangeClientBuilder(); } static ServiceMetadata serviceMetadata() { return ServiceMetadata.of(SERVICE_METADATA_ID); } @Override default DataExchangeServiceClientConfiguration serviceClientConfiguration() { throw new UnsupportedOperationException(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy