software.amazon.awssdk.services.connectcampaigns.ConnectCampaignsClient Maven / Gradle / Ivy
Show all versions of connectcampaigns Show documentation
/*
* 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.connectcampaigns;
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.connectcampaigns.model.AccessDeniedException;
import software.amazon.awssdk.services.connectcampaigns.model.ConflictException;
import software.amazon.awssdk.services.connectcampaigns.model.ConnectCampaignsException;
import software.amazon.awssdk.services.connectcampaigns.model.CreateCampaignRequest;
import software.amazon.awssdk.services.connectcampaigns.model.CreateCampaignResponse;
import software.amazon.awssdk.services.connectcampaigns.model.DeleteCampaignRequest;
import software.amazon.awssdk.services.connectcampaigns.model.DeleteCampaignResponse;
import software.amazon.awssdk.services.connectcampaigns.model.DeleteConnectInstanceConfigRequest;
import software.amazon.awssdk.services.connectcampaigns.model.DeleteConnectInstanceConfigResponse;
import software.amazon.awssdk.services.connectcampaigns.model.DeleteInstanceOnboardingJobRequest;
import software.amazon.awssdk.services.connectcampaigns.model.DeleteInstanceOnboardingJobResponse;
import software.amazon.awssdk.services.connectcampaigns.model.DescribeCampaignRequest;
import software.amazon.awssdk.services.connectcampaigns.model.DescribeCampaignResponse;
import software.amazon.awssdk.services.connectcampaigns.model.GetCampaignStateBatchRequest;
import software.amazon.awssdk.services.connectcampaigns.model.GetCampaignStateBatchResponse;
import software.amazon.awssdk.services.connectcampaigns.model.GetCampaignStateRequest;
import software.amazon.awssdk.services.connectcampaigns.model.GetCampaignStateResponse;
import software.amazon.awssdk.services.connectcampaigns.model.GetConnectInstanceConfigRequest;
import software.amazon.awssdk.services.connectcampaigns.model.GetConnectInstanceConfigResponse;
import software.amazon.awssdk.services.connectcampaigns.model.GetInstanceOnboardingJobStatusRequest;
import software.amazon.awssdk.services.connectcampaigns.model.GetInstanceOnboardingJobStatusResponse;
import software.amazon.awssdk.services.connectcampaigns.model.InternalServerException;
import software.amazon.awssdk.services.connectcampaigns.model.InvalidCampaignStateException;
import software.amazon.awssdk.services.connectcampaigns.model.InvalidStateException;
import software.amazon.awssdk.services.connectcampaigns.model.ListCampaignsRequest;
import software.amazon.awssdk.services.connectcampaigns.model.ListCampaignsResponse;
import software.amazon.awssdk.services.connectcampaigns.model.ListTagsForResourceRequest;
import software.amazon.awssdk.services.connectcampaigns.model.ListTagsForResourceResponse;
import software.amazon.awssdk.services.connectcampaigns.model.PauseCampaignRequest;
import software.amazon.awssdk.services.connectcampaigns.model.PauseCampaignResponse;
import software.amazon.awssdk.services.connectcampaigns.model.PutDialRequestBatchRequest;
import software.amazon.awssdk.services.connectcampaigns.model.PutDialRequestBatchResponse;
import software.amazon.awssdk.services.connectcampaigns.model.ResourceNotFoundException;
import software.amazon.awssdk.services.connectcampaigns.model.ResumeCampaignRequest;
import software.amazon.awssdk.services.connectcampaigns.model.ResumeCampaignResponse;
import software.amazon.awssdk.services.connectcampaigns.model.ServiceQuotaExceededException;
import software.amazon.awssdk.services.connectcampaigns.model.StartCampaignRequest;
import software.amazon.awssdk.services.connectcampaigns.model.StartCampaignResponse;
import software.amazon.awssdk.services.connectcampaigns.model.StartInstanceOnboardingJobRequest;
import software.amazon.awssdk.services.connectcampaigns.model.StartInstanceOnboardingJobResponse;
import software.amazon.awssdk.services.connectcampaigns.model.StopCampaignRequest;
import software.amazon.awssdk.services.connectcampaigns.model.StopCampaignResponse;
import software.amazon.awssdk.services.connectcampaigns.model.TagResourceRequest;
import software.amazon.awssdk.services.connectcampaigns.model.TagResourceResponse;
import software.amazon.awssdk.services.connectcampaigns.model.ThrottlingException;
import software.amazon.awssdk.services.connectcampaigns.model.UntagResourceRequest;
import software.amazon.awssdk.services.connectcampaigns.model.UntagResourceResponse;
import software.amazon.awssdk.services.connectcampaigns.model.UpdateCampaignDialerConfigRequest;
import software.amazon.awssdk.services.connectcampaigns.model.UpdateCampaignDialerConfigResponse;
import software.amazon.awssdk.services.connectcampaigns.model.UpdateCampaignNameRequest;
import software.amazon.awssdk.services.connectcampaigns.model.UpdateCampaignNameResponse;
import software.amazon.awssdk.services.connectcampaigns.model.UpdateCampaignOutboundCallConfigRequest;
import software.amazon.awssdk.services.connectcampaigns.model.UpdateCampaignOutboundCallConfigResponse;
import software.amazon.awssdk.services.connectcampaigns.model.ValidationException;
import software.amazon.awssdk.services.connectcampaigns.paginators.ListCampaignsIterable;
/**
* Service client for accessing AmazonConnectCampaignService. This can be created using the static {@link #builder()}
* method.
*
*
* Provide APIs to create and manage Amazon Connect Campaigns.
*
*/
@Generated("software.amazon.awssdk:codegen")
@SdkPublicApi
@ThreadSafe
public interface ConnectCampaignsClient extends AwsClient {
String SERVICE_NAME = "connect-campaigns";
/**
* Value for looking up the service's metadata from the
* {@link software.amazon.awssdk.regions.ServiceMetadataProvider}.
*/
String SERVICE_METADATA_ID = "connect-campaigns";
/**
*
* Creates a campaign for the specified Amazon Connect account. This API is idempotent.
*
*
* @param createCampaignRequest
* The request for Create Campaign API.
* @return Result of the CreateCampaign operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws ConflictException
* The request could not be processed because of conflict in the current state of the resource.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ServiceQuotaExceededException
* Request would cause a service quota to be exceeded.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.CreateCampaign
* @see AWS API Documentation
*/
default CreateCampaignResponse createCampaign(CreateCampaignRequest createCampaignRequest) throws InternalServerException,
ResourceNotFoundException, ValidationException, ConflictException, AccessDeniedException,
ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException,
ConnectCampaignsException {
throw new UnsupportedOperationException();
}
/**
*
* Creates a campaign for the specified Amazon Connect account. This API is idempotent.
*
*
*
* This is a convenience which creates an instance of the {@link CreateCampaignRequest.Builder} avoiding the need to
* create one manually via {@link CreateCampaignRequest#builder()}
*
*
* @param createCampaignRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.connectcampaigns.model.CreateCampaignRequest.Builder} to create a
* request. The request for Create Campaign API.
* @return Result of the CreateCampaign operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws ConflictException
* The request could not be processed because of conflict in the current state of the resource.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ServiceQuotaExceededException
* Request would cause a service quota to be exceeded.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.CreateCampaign
* @see AWS API Documentation
*/
default CreateCampaignResponse createCampaign(Consumer createCampaignRequest)
throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException,
AccessDeniedException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException,
ConnectCampaignsException {
return createCampaign(CreateCampaignRequest.builder().applyMutation(createCampaignRequest).build());
}
/**
*
* Deletes a campaign from the specified Amazon Connect account.
*
*
* @param deleteCampaignRequest
* DeleteCampaignRequest
* @return Result of the DeleteCampaign operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.DeleteCampaign
* @see AWS API Documentation
*/
default DeleteCampaignResponse deleteCampaign(DeleteCampaignRequest deleteCampaignRequest) throws InternalServerException,
ResourceNotFoundException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException,
ConnectCampaignsException {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a campaign from the specified Amazon Connect account.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteCampaignRequest.Builder} avoiding the need to
* create one manually via {@link DeleteCampaignRequest#builder()}
*
*
* @param deleteCampaignRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.connectcampaigns.model.DeleteCampaignRequest.Builder} to create a
* request. DeleteCampaignRequest
* @return Result of the DeleteCampaign operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.DeleteCampaign
* @see AWS API Documentation
*/
default DeleteCampaignResponse deleteCampaign(Consumer deleteCampaignRequest)
throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException,
AwsServiceException, SdkClientException, ConnectCampaignsException {
return deleteCampaign(DeleteCampaignRequest.builder().applyMutation(deleteCampaignRequest).build());
}
/**
*
* Deletes a connect instance config from the specified AWS account.
*
*
* @param deleteConnectInstanceConfigRequest
* DeleteCampaignRequest
* @return Result of the DeleteConnectInstanceConfig operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws InvalidStateException
* The request could not be processed because of conflict in the current state.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.DeleteConnectInstanceConfig
* @see AWS API Documentation
*/
default DeleteConnectInstanceConfigResponse deleteConnectInstanceConfig(
DeleteConnectInstanceConfigRequest deleteConnectInstanceConfigRequest) throws InternalServerException,
ResourceNotFoundException, ValidationException, AccessDeniedException, InvalidStateException, ThrottlingException,
AwsServiceException, SdkClientException, ConnectCampaignsException {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a connect instance config from the specified AWS account.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteConnectInstanceConfigRequest.Builder}
* avoiding the need to create one manually via {@link DeleteConnectInstanceConfigRequest#builder()}
*
*
* @param deleteConnectInstanceConfigRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.connectcampaigns.model.DeleteConnectInstanceConfigRequest.Builder}
* to create a request. DeleteCampaignRequest
* @return Result of the DeleteConnectInstanceConfig operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws InvalidStateException
* The request could not be processed because of conflict in the current state.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.DeleteConnectInstanceConfig
* @see AWS API Documentation
*/
default DeleteConnectInstanceConfigResponse deleteConnectInstanceConfig(
Consumer deleteConnectInstanceConfigRequest)
throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException,
InvalidStateException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException {
return deleteConnectInstanceConfig(DeleteConnectInstanceConfigRequest.builder()
.applyMutation(deleteConnectInstanceConfigRequest).build());
}
/**
*
* Delete the Connect Campaigns onboarding job for the specified Amazon Connect instance.
*
*
* @param deleteInstanceOnboardingJobRequest
* The request for DeleteInstanceOnboardingJob API.
* @return Result of the DeleteInstanceOnboardingJob operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws InvalidStateException
* The request could not be processed because of conflict in the current state.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.DeleteInstanceOnboardingJob
* @see AWS API Documentation
*/
default DeleteInstanceOnboardingJobResponse deleteInstanceOnboardingJob(
DeleteInstanceOnboardingJobRequest deleteInstanceOnboardingJobRequest) throws InternalServerException,
ResourceNotFoundException, ValidationException, AccessDeniedException, InvalidStateException, AwsServiceException,
SdkClientException, ConnectCampaignsException {
throw new UnsupportedOperationException();
}
/**
*
* Delete the Connect Campaigns onboarding job for the specified Amazon Connect instance.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteInstanceOnboardingJobRequest.Builder}
* avoiding the need to create one manually via {@link DeleteInstanceOnboardingJobRequest#builder()}
*
*
* @param deleteInstanceOnboardingJobRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.connectcampaigns.model.DeleteInstanceOnboardingJobRequest.Builder}
* to create a request. The request for DeleteInstanceOnboardingJob API.
* @return Result of the DeleteInstanceOnboardingJob operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws InvalidStateException
* The request could not be processed because of conflict in the current state.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.DeleteInstanceOnboardingJob
* @see AWS API Documentation
*/
default DeleteInstanceOnboardingJobResponse deleteInstanceOnboardingJob(
Consumer deleteInstanceOnboardingJobRequest)
throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException,
InvalidStateException, AwsServiceException, SdkClientException, ConnectCampaignsException {
return deleteInstanceOnboardingJob(DeleteInstanceOnboardingJobRequest.builder()
.applyMutation(deleteInstanceOnboardingJobRequest).build());
}
/**
*
* Describes the specific campaign.
*
*
* @param describeCampaignRequest
* DescribeCampaignRequests
* @return Result of the DescribeCampaign operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.DescribeCampaign
* @see AWS API Documentation
*/
default DescribeCampaignResponse describeCampaign(DescribeCampaignRequest describeCampaignRequest)
throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException,
AwsServiceException, SdkClientException, ConnectCampaignsException {
throw new UnsupportedOperationException();
}
/**
*
* Describes the specific campaign.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeCampaignRequest.Builder} avoiding the need
* to create one manually via {@link DescribeCampaignRequest#builder()}
*
*
* @param describeCampaignRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.connectcampaigns.model.DescribeCampaignRequest.Builder} to create a
* request. DescribeCampaignRequests
* @return Result of the DescribeCampaign operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.DescribeCampaign
* @see AWS API Documentation
*/
default DescribeCampaignResponse describeCampaign(Consumer describeCampaignRequest)
throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException,
AwsServiceException, SdkClientException, ConnectCampaignsException {
return describeCampaign(DescribeCampaignRequest.builder().applyMutation(describeCampaignRequest).build());
}
/**
*
* Get state of a campaign for the specified Amazon Connect account.
*
*
* @param getCampaignStateRequest
* GetCampaignStateRequest
* @return Result of the GetCampaignState operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.GetCampaignState
* @see AWS API Documentation
*/
default GetCampaignStateResponse getCampaignState(GetCampaignStateRequest getCampaignStateRequest)
throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException,
ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException {
throw new UnsupportedOperationException();
}
/**
*
* Get state of a campaign for the specified Amazon Connect account.
*
*
*
* This is a convenience which creates an instance of the {@link GetCampaignStateRequest.Builder} avoiding the need
* to create one manually via {@link GetCampaignStateRequest#builder()}
*
*
* @param getCampaignStateRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.connectcampaigns.model.GetCampaignStateRequest.Builder} to create a
* request. GetCampaignStateRequest
* @return Result of the GetCampaignState operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.GetCampaignState
* @see AWS API Documentation
*/
default GetCampaignStateResponse getCampaignState(Consumer getCampaignStateRequest)
throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException,
ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException {
return getCampaignState(GetCampaignStateRequest.builder().applyMutation(getCampaignStateRequest).build());
}
/**
*
* Get state of campaigns for the specified Amazon Connect account.
*
*
* @param getCampaignStateBatchRequest
* GetCampaignStateBatchRequest
* @return Result of the GetCampaignStateBatch operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.GetCampaignStateBatch
* @see AWS API Documentation
*/
default GetCampaignStateBatchResponse getCampaignStateBatch(GetCampaignStateBatchRequest getCampaignStateBatchRequest)
throws InternalServerException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException,
SdkClientException, ConnectCampaignsException {
throw new UnsupportedOperationException();
}
/**
*
* Get state of campaigns for the specified Amazon Connect account.
*
*
*
* This is a convenience which creates an instance of the {@link GetCampaignStateBatchRequest.Builder} avoiding the
* need to create one manually via {@link GetCampaignStateBatchRequest#builder()}
*
*
* @param getCampaignStateBatchRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.connectcampaigns.model.GetCampaignStateBatchRequest.Builder} to
* create a request. GetCampaignStateBatchRequest
* @return Result of the GetCampaignStateBatch operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.GetCampaignStateBatch
* @see AWS API Documentation
*/
default GetCampaignStateBatchResponse getCampaignStateBatch(
Consumer getCampaignStateBatchRequest) throws InternalServerException,
ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException,
ConnectCampaignsException {
return getCampaignStateBatch(GetCampaignStateBatchRequest.builder().applyMutation(getCampaignStateBatchRequest).build());
}
/**
*
* Get the specific Connect instance config.
*
*
* @param getConnectInstanceConfigRequest
* GetConnectInstanceConfigRequest
* @return Result of the GetConnectInstanceConfig operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.GetConnectInstanceConfig
* @see AWS API Documentation
*/
default GetConnectInstanceConfigResponse getConnectInstanceConfig(
GetConnectInstanceConfigRequest getConnectInstanceConfigRequest) throws InternalServerException,
ResourceNotFoundException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException,
ConnectCampaignsException {
throw new UnsupportedOperationException();
}
/**
*
* Get the specific Connect instance config.
*
*
*
* This is a convenience which creates an instance of the {@link GetConnectInstanceConfigRequest.Builder} avoiding
* the need to create one manually via {@link GetConnectInstanceConfigRequest#builder()}
*
*
* @param getConnectInstanceConfigRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.connectcampaigns.model.GetConnectInstanceConfigRequest.Builder} to
* create a request. GetConnectInstanceConfigRequest
* @return Result of the GetConnectInstanceConfig operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.GetConnectInstanceConfig
* @see AWS API Documentation
*/
default GetConnectInstanceConfigResponse getConnectInstanceConfig(
Consumer getConnectInstanceConfigRequest) throws InternalServerException,
ResourceNotFoundException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException,
ConnectCampaignsException {
return getConnectInstanceConfig(GetConnectInstanceConfigRequest.builder().applyMutation(getConnectInstanceConfigRequest)
.build());
}
/**
*
* Get the specific instance onboarding job status.
*
*
* @param getInstanceOnboardingJobStatusRequest
* GetInstanceOnboardingJobStatusRequest
* @return Result of the GetInstanceOnboardingJobStatus operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.GetInstanceOnboardingJobStatus
* @see AWS API Documentation
*/
default GetInstanceOnboardingJobStatusResponse getInstanceOnboardingJobStatus(
GetInstanceOnboardingJobStatusRequest getInstanceOnboardingJobStatusRequest) throws InternalServerException,
ResourceNotFoundException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException,
ConnectCampaignsException {
throw new UnsupportedOperationException();
}
/**
*
* Get the specific instance onboarding job status.
*
*
*
* This is a convenience which creates an instance of the {@link GetInstanceOnboardingJobStatusRequest.Builder}
* avoiding the need to create one manually via {@link GetInstanceOnboardingJobStatusRequest#builder()}
*
*
* @param getInstanceOnboardingJobStatusRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.connectcampaigns.model.GetInstanceOnboardingJobStatusRequest.Builder}
* to create a request. GetInstanceOnboardingJobStatusRequest
* @return Result of the GetInstanceOnboardingJobStatus operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.GetInstanceOnboardingJobStatus
* @see AWS API Documentation
*/
default GetInstanceOnboardingJobStatusResponse getInstanceOnboardingJobStatus(
Consumer getInstanceOnboardingJobStatusRequest)
throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException,
AwsServiceException, SdkClientException, ConnectCampaignsException {
return getInstanceOnboardingJobStatus(GetInstanceOnboardingJobStatusRequest.builder()
.applyMutation(getInstanceOnboardingJobStatusRequest).build());
}
/**
*
* Provides summary information about the campaigns under the specified Amazon Connect account.
*
*
* @param listCampaignsRequest
* ListCampaignsRequest
* @return Result of the ListCampaigns operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.ListCampaigns
* @see AWS API Documentation
*/
default ListCampaignsResponse listCampaigns(ListCampaignsRequest listCampaignsRequest) throws InternalServerException,
ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, ConnectCampaignsException {
throw new UnsupportedOperationException();
}
/**
*
* Provides summary information about the campaigns under the specified Amazon Connect account.
*
*
*
* This is a convenience which creates an instance of the {@link ListCampaignsRequest.Builder} avoiding the need to
* create one manually via {@link ListCampaignsRequest#builder()}
*
*
* @param listCampaignsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.connectcampaigns.model.ListCampaignsRequest.Builder} to create a
* request. ListCampaignsRequest
* @return Result of the ListCampaigns operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.ListCampaigns
* @see AWS API Documentation
*/
default ListCampaignsResponse listCampaigns(Consumer listCampaignsRequest)
throws InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException,
ConnectCampaignsException {
return listCampaigns(ListCampaignsRequest.builder().applyMutation(listCampaignsRequest).build());
}
/**
*
* This is a variant of
* {@link #listCampaigns(software.amazon.awssdk.services.connectcampaigns.model.ListCampaignsRequest)} 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.connectcampaigns.paginators.ListCampaignsIterable responses = client.listCampaignsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.connectcampaigns.paginators.ListCampaignsIterable responses = client
* .listCampaignsPaginator(request);
* for (software.amazon.awssdk.services.connectcampaigns.model.ListCampaignsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.connectcampaigns.paginators.ListCampaignsIterable responses = client.listCampaignsPaginator(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 #listCampaigns(software.amazon.awssdk.services.connectcampaigns.model.ListCampaignsRequest)}
* operation.
*
*
* @param listCampaignsRequest
* ListCampaignsRequest
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.ListCampaigns
* @see AWS API Documentation
*/
default ListCampaignsIterable listCampaignsPaginator(ListCampaignsRequest listCampaignsRequest)
throws InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException,
ConnectCampaignsException {
return new ListCampaignsIterable(this, listCampaignsRequest);
}
/**
*
* This is a variant of
* {@link #listCampaigns(software.amazon.awssdk.services.connectcampaigns.model.ListCampaignsRequest)} 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.connectcampaigns.paginators.ListCampaignsIterable responses = client.listCampaignsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.connectcampaigns.paginators.ListCampaignsIterable responses = client
* .listCampaignsPaginator(request);
* for (software.amazon.awssdk.services.connectcampaigns.model.ListCampaignsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.connectcampaigns.paginators.ListCampaignsIterable responses = client.listCampaignsPaginator(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 #listCampaigns(software.amazon.awssdk.services.connectcampaigns.model.ListCampaignsRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListCampaignsRequest.Builder} avoiding the need to
* create one manually via {@link ListCampaignsRequest#builder()}
*
*
* @param listCampaignsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.connectcampaigns.model.ListCampaignsRequest.Builder} to create a
* request. ListCampaignsRequest
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.ListCampaigns
* @see AWS API Documentation
*/
default ListCampaignsIterable listCampaignsPaginator(Consumer listCampaignsRequest)
throws InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException,
ConnectCampaignsException {
return listCampaignsPaginator(ListCampaignsRequest.builder().applyMutation(listCampaignsRequest).build());
}
/**
*
* List tags for a resource.
*
*
* @param listTagsForResourceRequest
* ListTagsForResource
* @return Result of the ListTagsForResource operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.ListTagsForResource
* @see AWS API Documentation
*/
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException,
ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException {
throw new UnsupportedOperationException();
}
/**
*
* List tags for a 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.connectcampaigns.model.ListTagsForResourceRequest.Builder} to
* create a request. ListTagsForResource
* @return Result of the ListTagsForResource operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.ListTagsForResource
* @see AWS API Documentation
*/
default ListTagsForResourceResponse listTagsForResource(
Consumer listTagsForResourceRequest) throws InternalServerException,
ResourceNotFoundException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException,
SdkClientException, ConnectCampaignsException {
return listTagsForResource(ListTagsForResourceRequest.builder().applyMutation(listTagsForResourceRequest).build());
}
/**
*
* Pauses a campaign for the specified Amazon Connect account.
*
*
* @param pauseCampaignRequest
* PauseCampaignRequest
* @return Result of the PauseCampaign operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws ConflictException
* The request could not be processed because of conflict in the current state of the resource.
* @throws InvalidCampaignStateException
* The request could not be processed because of conflict in the current state of the campaign.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.PauseCampaign
* @see AWS API Documentation
*/
default PauseCampaignResponse pauseCampaign(PauseCampaignRequest pauseCampaignRequest) throws InternalServerException,
ResourceNotFoundException, ValidationException, ConflictException, InvalidCampaignStateException,
AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException {
throw new UnsupportedOperationException();
}
/**
*
* Pauses a campaign for the specified Amazon Connect account.
*
*
*
* This is a convenience which creates an instance of the {@link PauseCampaignRequest.Builder} avoiding the need to
* create one manually via {@link PauseCampaignRequest#builder()}
*
*
* @param pauseCampaignRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.connectcampaigns.model.PauseCampaignRequest.Builder} to create a
* request. PauseCampaignRequest
* @return Result of the PauseCampaign operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws ConflictException
* The request could not be processed because of conflict in the current state of the resource.
* @throws InvalidCampaignStateException
* The request could not be processed because of conflict in the current state of the campaign.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.PauseCampaign
* @see AWS API Documentation
*/
default PauseCampaignResponse pauseCampaign(Consumer pauseCampaignRequest)
throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException,
InvalidCampaignStateException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException,
ConnectCampaignsException {
return pauseCampaign(PauseCampaignRequest.builder().applyMutation(pauseCampaignRequest).build());
}
/**
*
* Creates dials requests for the specified campaign Amazon Connect account. This API is idempotent.
*
*
* @param putDialRequestBatchRequest
* PutDialRequestBatchRequest
* @return Result of the PutDialRequestBatch operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws ConflictException
* The request could not be processed because of conflict in the current state of the resource.
* @throws InvalidCampaignStateException
* The request could not be processed because of conflict in the current state of the campaign.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.PutDialRequestBatch
* @see AWS API Documentation
*/
default PutDialRequestBatchResponse putDialRequestBatch(PutDialRequestBatchRequest putDialRequestBatchRequest)
throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException,
InvalidCampaignStateException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException,
ConnectCampaignsException {
throw new UnsupportedOperationException();
}
/**
*
* Creates dials requests for the specified campaign Amazon Connect account. This API is idempotent.
*
*
*
* This is a convenience which creates an instance of the {@link PutDialRequestBatchRequest.Builder} avoiding the
* need to create one manually via {@link PutDialRequestBatchRequest#builder()}
*
*
* @param putDialRequestBatchRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.connectcampaigns.model.PutDialRequestBatchRequest.Builder} to
* create a request. PutDialRequestBatchRequest
* @return Result of the PutDialRequestBatch operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws ConflictException
* The request could not be processed because of conflict in the current state of the resource.
* @throws InvalidCampaignStateException
* The request could not be processed because of conflict in the current state of the campaign.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.PutDialRequestBatch
* @see AWS API Documentation
*/
default PutDialRequestBatchResponse putDialRequestBatch(
Consumer putDialRequestBatchRequest) throws InternalServerException,
ResourceNotFoundException, ValidationException, ConflictException, InvalidCampaignStateException,
AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException {
return putDialRequestBatch(PutDialRequestBatchRequest.builder().applyMutation(putDialRequestBatchRequest).build());
}
/**
*
* Stops a campaign for the specified Amazon Connect account.
*
*
* @param resumeCampaignRequest
* ResumeCampaignRequest
* @return Result of the ResumeCampaign operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws ConflictException
* The request could not be processed because of conflict in the current state of the resource.
* @throws InvalidCampaignStateException
* The request could not be processed because of conflict in the current state of the campaign.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.ResumeCampaign
* @see AWS API Documentation
*/
default ResumeCampaignResponse resumeCampaign(ResumeCampaignRequest resumeCampaignRequest) throws InternalServerException,
ResourceNotFoundException, ValidationException, ConflictException, InvalidCampaignStateException,
AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException {
throw new UnsupportedOperationException();
}
/**
*
* Stops a campaign for the specified Amazon Connect account.
*
*
*
* This is a convenience which creates an instance of the {@link ResumeCampaignRequest.Builder} avoiding the need to
* create one manually via {@link ResumeCampaignRequest#builder()}
*
*
* @param resumeCampaignRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.connectcampaigns.model.ResumeCampaignRequest.Builder} to create a
* request. ResumeCampaignRequest
* @return Result of the ResumeCampaign operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws ConflictException
* The request could not be processed because of conflict in the current state of the resource.
* @throws InvalidCampaignStateException
* The request could not be processed because of conflict in the current state of the campaign.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.ResumeCampaign
* @see AWS API Documentation
*/
default ResumeCampaignResponse resumeCampaign(Consumer resumeCampaignRequest)
throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException,
InvalidCampaignStateException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException,
ConnectCampaignsException {
return resumeCampaign(ResumeCampaignRequest.builder().applyMutation(resumeCampaignRequest).build());
}
/**
*
* Starts a campaign for the specified Amazon Connect account.
*
*
* @param startCampaignRequest
* StartCampaignRequest
* @return Result of the StartCampaign operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws ConflictException
* The request could not be processed because of conflict in the current state of the resource.
* @throws InvalidCampaignStateException
* The request could not be processed because of conflict in the current state of the campaign.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.StartCampaign
* @see AWS API Documentation
*/
default StartCampaignResponse startCampaign(StartCampaignRequest startCampaignRequest) throws InternalServerException,
ResourceNotFoundException, ValidationException, ConflictException, InvalidCampaignStateException,
AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException {
throw new UnsupportedOperationException();
}
/**
*
* Starts a campaign for the specified Amazon Connect account.
*
*
*
* This is a convenience which creates an instance of the {@link StartCampaignRequest.Builder} avoiding the need to
* create one manually via {@link StartCampaignRequest#builder()}
*
*
* @param startCampaignRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.connectcampaigns.model.StartCampaignRequest.Builder} to create a
* request. StartCampaignRequest
* @return Result of the StartCampaign operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws ConflictException
* The request could not be processed because of conflict in the current state of the resource.
* @throws InvalidCampaignStateException
* The request could not be processed because of conflict in the current state of the campaign.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.StartCampaign
* @see AWS API Documentation
*/
default StartCampaignResponse startCampaign(Consumer startCampaignRequest)
throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException,
InvalidCampaignStateException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException,
ConnectCampaignsException {
return startCampaign(StartCampaignRequest.builder().applyMutation(startCampaignRequest).build());
}
/**
*
* Onboard the specific Amazon Connect instance to Connect Campaigns.
*
*
* @param startInstanceOnboardingJobRequest
* The request for StartInstanceOnboardingJob API.
* @return Result of the StartInstanceOnboardingJob operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws ConflictException
* The request could not be processed because of conflict in the current state of the resource.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.StartInstanceOnboardingJob
* @see AWS API Documentation
*/
default StartInstanceOnboardingJobResponse startInstanceOnboardingJob(
StartInstanceOnboardingJobRequest startInstanceOnboardingJobRequest) throws InternalServerException,
ResourceNotFoundException, ValidationException, ConflictException, AccessDeniedException, ThrottlingException,
AwsServiceException, SdkClientException, ConnectCampaignsException {
throw new UnsupportedOperationException();
}
/**
*
* Onboard the specific Amazon Connect instance to Connect Campaigns.
*
*
*
* This is a convenience which creates an instance of the {@link StartInstanceOnboardingJobRequest.Builder} avoiding
* the need to create one manually via {@link StartInstanceOnboardingJobRequest#builder()}
*
*
* @param startInstanceOnboardingJobRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.connectcampaigns.model.StartInstanceOnboardingJobRequest.Builder}
* to create a request. The request for StartInstanceOnboardingJob API.
* @return Result of the StartInstanceOnboardingJob operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws ConflictException
* The request could not be processed because of conflict in the current state of the resource.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.StartInstanceOnboardingJob
* @see AWS API Documentation
*/
default StartInstanceOnboardingJobResponse startInstanceOnboardingJob(
Consumer startInstanceOnboardingJobRequest)
throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException,
AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException {
return startInstanceOnboardingJob(StartInstanceOnboardingJobRequest.builder()
.applyMutation(startInstanceOnboardingJobRequest).build());
}
/**
*
* Stops a campaign for the specified Amazon Connect account.
*
*
* @param stopCampaignRequest
* StopCampaignRequest
* @return Result of the StopCampaign operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws ConflictException
* The request could not be processed because of conflict in the current state of the resource.
* @throws InvalidCampaignStateException
* The request could not be processed because of conflict in the current state of the campaign.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.StopCampaign
* @see AWS
* API Documentation
*/
default StopCampaignResponse stopCampaign(StopCampaignRequest stopCampaignRequest) throws InternalServerException,
ResourceNotFoundException, ValidationException, ConflictException, InvalidCampaignStateException,
AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException {
throw new UnsupportedOperationException();
}
/**
*
* Stops a campaign for the specified Amazon Connect account.
*
*
*
* This is a convenience which creates an instance of the {@link StopCampaignRequest.Builder} avoiding the need to
* create one manually via {@link StopCampaignRequest#builder()}
*
*
* @param stopCampaignRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.connectcampaigns.model.StopCampaignRequest.Builder} to create a
* request. StopCampaignRequest
* @return Result of the StopCampaign operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws ConflictException
* The request could not be processed because of conflict in the current state of the resource.
* @throws InvalidCampaignStateException
* The request could not be processed because of conflict in the current state of the campaign.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.StopCampaign
* @see AWS
* API Documentation
*/
default StopCampaignResponse stopCampaign(Consumer stopCampaignRequest)
throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException,
InvalidCampaignStateException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException,
ConnectCampaignsException {
return stopCampaign(StopCampaignRequest.builder().applyMutation(stopCampaignRequest).build());
}
/**
*
* Tag a resource.
*
*
* @param tagResourceRequest
* TagResourceRequest
* @return Result of the TagResource operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.TagResource
* @see AWS
* API Documentation
*/
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws InternalServerException,
ResourceNotFoundException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException,
SdkClientException, ConnectCampaignsException {
throw new UnsupportedOperationException();
}
/**
*
* Tag 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.connectcampaigns.model.TagResourceRequest.Builder} to create a
* request. TagResourceRequest
* @return Result of the TagResource operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.TagResource
* @see AWS
* API Documentation
*/
default TagResourceResponse tagResource(Consumer tagResourceRequest)
throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException,
ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException {
return tagResource(TagResourceRequest.builder().applyMutation(tagResourceRequest).build());
}
/**
*
* Untag a resource.
*
*
* @param untagResourceRequest
* UntagResourceRequest
* @return Result of the UntagResource operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.UntagResource
* @see AWS API Documentation
*/
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws InternalServerException,
ResourceNotFoundException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException,
SdkClientException, ConnectCampaignsException {
throw new UnsupportedOperationException();
}
/**
*
* Untag 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.connectcampaigns.model.UntagResourceRequest.Builder} to create a
* request. UntagResourceRequest
* @return Result of the UntagResource operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.UntagResource
* @see AWS API Documentation
*/
default UntagResourceResponse untagResource(Consumer untagResourceRequest)
throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException,
ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException {
return untagResource(UntagResourceRequest.builder().applyMutation(untagResourceRequest).build());
}
/**
*
* Updates the dialer config of a campaign. This API is idempotent.
*
*
* @param updateCampaignDialerConfigRequest
* UpdateCampaignDialerConfigRequest
* @return Result of the UpdateCampaignDialerConfig operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws ConflictException
* The request could not be processed because of conflict in the current state of the resource.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.UpdateCampaignDialerConfig
* @see AWS API Documentation
*/
default UpdateCampaignDialerConfigResponse updateCampaignDialerConfig(
UpdateCampaignDialerConfigRequest updateCampaignDialerConfigRequest) throws InternalServerException,
ResourceNotFoundException, ValidationException, ConflictException, AccessDeniedException, AwsServiceException,
SdkClientException, ConnectCampaignsException {
throw new UnsupportedOperationException();
}
/**
*
* Updates the dialer config of a campaign. This API is idempotent.
*
*
*
* This is a convenience which creates an instance of the {@link UpdateCampaignDialerConfigRequest.Builder} avoiding
* the need to create one manually via {@link UpdateCampaignDialerConfigRequest#builder()}
*
*
* @param updateCampaignDialerConfigRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.connectcampaigns.model.UpdateCampaignDialerConfigRequest.Builder}
* to create a request. UpdateCampaignDialerConfigRequest
* @return Result of the UpdateCampaignDialerConfig operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws ConflictException
* The request could not be processed because of conflict in the current state of the resource.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.UpdateCampaignDialerConfig
* @see AWS API Documentation
*/
default UpdateCampaignDialerConfigResponse updateCampaignDialerConfig(
Consumer updateCampaignDialerConfigRequest)
throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException,
AccessDeniedException, AwsServiceException, SdkClientException, ConnectCampaignsException {
return updateCampaignDialerConfig(UpdateCampaignDialerConfigRequest.builder()
.applyMutation(updateCampaignDialerConfigRequest).build());
}
/**
*
* Updates the name of a campaign. This API is idempotent.
*
*
* @param updateCampaignNameRequest
* UpdateCampaignNameRequest
* @return Result of the UpdateCampaignName operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws ConflictException
* The request could not be processed because of conflict in the current state of the resource.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.UpdateCampaignName
* @see AWS API Documentation
*/
default UpdateCampaignNameResponse updateCampaignName(UpdateCampaignNameRequest updateCampaignNameRequest)
throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException,
AccessDeniedException, AwsServiceException, SdkClientException, ConnectCampaignsException {
throw new UnsupportedOperationException();
}
/**
*
* Updates the name of a campaign. This API is idempotent.
*
*
*
* This is a convenience which creates an instance of the {@link UpdateCampaignNameRequest.Builder} avoiding the
* need to create one manually via {@link UpdateCampaignNameRequest#builder()}
*
*
* @param updateCampaignNameRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.connectcampaigns.model.UpdateCampaignNameRequest.Builder} to create
* a request. UpdateCampaignNameRequest
* @return Result of the UpdateCampaignName operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws ConflictException
* The request could not be processed because of conflict in the current state of the resource.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.UpdateCampaignName
* @see AWS API Documentation
*/
default UpdateCampaignNameResponse updateCampaignName(Consumer updateCampaignNameRequest)
throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException,
AccessDeniedException, AwsServiceException, SdkClientException, ConnectCampaignsException {
return updateCampaignName(UpdateCampaignNameRequest.builder().applyMutation(updateCampaignNameRequest).build());
}
/**
*
* Updates the outbound call config of a campaign. This API is idempotent.
*
*
* @param updateCampaignOutboundCallConfigRequest
* UpdateCampaignOutboundCallConfigRequest
* @return Result of the UpdateCampaignOutboundCallConfig operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws ConflictException
* The request could not be processed because of conflict in the current state of the resource.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.UpdateCampaignOutboundCallConfig
* @see AWS API Documentation
*/
default UpdateCampaignOutboundCallConfigResponse updateCampaignOutboundCallConfig(
UpdateCampaignOutboundCallConfigRequest updateCampaignOutboundCallConfigRequest) throws InternalServerException,
ResourceNotFoundException, ValidationException, ConflictException, AccessDeniedException, ThrottlingException,
AwsServiceException, SdkClientException, ConnectCampaignsException {
throw new UnsupportedOperationException();
}
/**
*
* Updates the outbound call config of a campaign. This API is idempotent.
*
*
*
* This is a convenience which creates an instance of the {@link UpdateCampaignOutboundCallConfigRequest.Builder}
* avoiding the need to create one manually via {@link UpdateCampaignOutboundCallConfigRequest#builder()}
*
*
* @param updateCampaignOutboundCallConfigRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.connectcampaigns.model.UpdateCampaignOutboundCallConfigRequest.Builder}
* to create a request. UpdateCampaignOutboundCallConfigRequest
* @return Result of the UpdateCampaignOutboundCallConfig operation returned by the service.
* @throws InternalServerException
* Request processing failed because of an error or failure with the service.
* @throws ResourceNotFoundException
* The specified resource was not found.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an AWS service.
* @throws ConflictException
* The request could not be processed because of conflict in the current state of the resource.
* @throws AccessDeniedException
* You do not have sufficient access to perform this action.
* @throws ThrottlingException
* The request was denied due to request throttling.
* @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 ConnectCampaignsException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample ConnectCampaignsClient.UpdateCampaignOutboundCallConfig
* @see AWS API Documentation
*/
default UpdateCampaignOutboundCallConfigResponse updateCampaignOutboundCallConfig(
Consumer updateCampaignOutboundCallConfigRequest)
throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException,
AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException {
return updateCampaignOutboundCallConfig(UpdateCampaignOutboundCallConfigRequest.builder()
.applyMutation(updateCampaignOutboundCallConfigRequest).build());
}
/**
* Create a {@link ConnectCampaignsClient} 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 ConnectCampaignsClient create() {
return builder().build();
}
/**
* Create a builder that can be used to configure and create a {@link ConnectCampaignsClient}.
*/
static ConnectCampaignsClientBuilder builder() {
return new DefaultConnectCampaignsClientBuilder();
}
static ServiceMetadata serviceMetadata() {
return ServiceMetadata.of(SERVICE_METADATA_ID);
}
@Override
default ConnectCampaignsServiceClientConfiguration serviceClientConfiguration() {
throw new UnsupportedOperationException();
}
}