Interface ConnectCampaignsClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.
Provide APIs to create and manage Amazon Connect Campaigns.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that can be used to configure and create aConnectCampaignsClient
.static ConnectCampaignsClient
create()
Create aConnectCampaignsClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default CreateCampaignResponse
createCampaign
(Consumer<CreateCampaignRequest.Builder> createCampaignRequest) Creates a campaign for the specified Amazon Connect account.default CreateCampaignResponse
createCampaign
(CreateCampaignRequest createCampaignRequest) Creates a campaign for the specified Amazon Connect account.default DeleteCampaignResponse
deleteCampaign
(Consumer<DeleteCampaignRequest.Builder> deleteCampaignRequest) Deletes a campaign from the specified Amazon Connect account.default DeleteCampaignResponse
deleteCampaign
(DeleteCampaignRequest deleteCampaignRequest) Deletes a campaign from the specified Amazon Connect account.deleteConnectInstanceConfig
(Consumer<DeleteConnectInstanceConfigRequest.Builder> deleteConnectInstanceConfigRequest) Deletes a connect instance config from the specified AWS account.deleteConnectInstanceConfig
(DeleteConnectInstanceConfigRequest deleteConnectInstanceConfigRequest) Deletes a connect instance config from the specified AWS account.deleteInstanceOnboardingJob
(Consumer<DeleteInstanceOnboardingJobRequest.Builder> deleteInstanceOnboardingJobRequest) Delete the Connect Campaigns onboarding job for the specified Amazon Connect instance.deleteInstanceOnboardingJob
(DeleteInstanceOnboardingJobRequest deleteInstanceOnboardingJobRequest) Delete the Connect Campaigns onboarding job for the specified Amazon Connect instance.default DescribeCampaignResponse
describeCampaign
(Consumer<DescribeCampaignRequest.Builder> describeCampaignRequest) Describes the specific campaign.default DescribeCampaignResponse
describeCampaign
(DescribeCampaignRequest describeCampaignRequest) Describes the specific campaign.default GetCampaignStateResponse
getCampaignState
(Consumer<GetCampaignStateRequest.Builder> getCampaignStateRequest) Get state of a campaign for the specified Amazon Connect account.default GetCampaignStateResponse
getCampaignState
(GetCampaignStateRequest getCampaignStateRequest) Get state of a campaign for the specified Amazon Connect account.default GetCampaignStateBatchResponse
getCampaignStateBatch
(Consumer<GetCampaignStateBatchRequest.Builder> getCampaignStateBatchRequest) Get state of campaigns for the specified Amazon Connect account.default GetCampaignStateBatchResponse
getCampaignStateBatch
(GetCampaignStateBatchRequest getCampaignStateBatchRequest) Get state of campaigns for the specified Amazon Connect account.default GetConnectInstanceConfigResponse
getConnectInstanceConfig
(Consumer<GetConnectInstanceConfigRequest.Builder> getConnectInstanceConfigRequest) Get the specific Connect instance config.default GetConnectInstanceConfigResponse
getConnectInstanceConfig
(GetConnectInstanceConfigRequest getConnectInstanceConfigRequest) Get the specific Connect instance config.getInstanceOnboardingJobStatus
(Consumer<GetInstanceOnboardingJobStatusRequest.Builder> getInstanceOnboardingJobStatusRequest) Get the specific instance onboarding job status.getInstanceOnboardingJobStatus
(GetInstanceOnboardingJobStatusRequest getInstanceOnboardingJobStatusRequest) Get the specific instance onboarding job status.default ListCampaignsResponse
listCampaigns
(Consumer<ListCampaignsRequest.Builder> listCampaignsRequest) Provides summary information about the campaigns under the specified Amazon Connect account.default ListCampaignsResponse
listCampaigns
(ListCampaignsRequest listCampaignsRequest) Provides summary information about the campaigns under the specified Amazon Connect account.default ListCampaignsIterable
listCampaignsPaginator
(Consumer<ListCampaignsRequest.Builder> listCampaignsRequest) This is a variant oflistCampaigns(software.amazon.awssdk.services.connectcampaigns.model.ListCampaignsRequest)
operation.default ListCampaignsIterable
listCampaignsPaginator
(ListCampaignsRequest listCampaignsRequest) This is a variant oflistCampaigns(software.amazon.awssdk.services.connectcampaigns.model.ListCampaignsRequest)
operation.default ListTagsForResourceResponse
listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) List tags for a resource.default ListTagsForResourceResponse
listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) List tags for a resource.default PauseCampaignResponse
pauseCampaign
(Consumer<PauseCampaignRequest.Builder> pauseCampaignRequest) Pauses a campaign for the specified Amazon Connect account.default PauseCampaignResponse
pauseCampaign
(PauseCampaignRequest pauseCampaignRequest) Pauses a campaign for the specified Amazon Connect account.default PutDialRequestBatchResponse
putDialRequestBatch
(Consumer<PutDialRequestBatchRequest.Builder> putDialRequestBatchRequest) Creates dials requests for the specified campaign Amazon Connect account.default PutDialRequestBatchResponse
putDialRequestBatch
(PutDialRequestBatchRequest putDialRequestBatchRequest) Creates dials requests for the specified campaign Amazon Connect account.default ResumeCampaignResponse
resumeCampaign
(Consumer<ResumeCampaignRequest.Builder> resumeCampaignRequest) Stops a campaign for the specified Amazon Connect account.default ResumeCampaignResponse
resumeCampaign
(ResumeCampaignRequest resumeCampaignRequest) Stops a campaign for the specified Amazon Connect account.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadata
default StartCampaignResponse
startCampaign
(Consumer<StartCampaignRequest.Builder> startCampaignRequest) Starts a campaign for the specified Amazon Connect account.default StartCampaignResponse
startCampaign
(StartCampaignRequest startCampaignRequest) Starts a campaign for the specified Amazon Connect account.startInstanceOnboardingJob
(Consumer<StartInstanceOnboardingJobRequest.Builder> startInstanceOnboardingJobRequest) Onboard the specific Amazon Connect instance to Connect Campaigns.startInstanceOnboardingJob
(StartInstanceOnboardingJobRequest startInstanceOnboardingJobRequest) Onboard the specific Amazon Connect instance to Connect Campaigns.default StopCampaignResponse
stopCampaign
(Consumer<StopCampaignRequest.Builder> stopCampaignRequest) Stops a campaign for the specified Amazon Connect account.default StopCampaignResponse
stopCampaign
(StopCampaignRequest stopCampaignRequest) Stops a campaign for the specified Amazon Connect account.default TagResourceResponse
tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) Tag a resource.default TagResourceResponse
tagResource
(TagResourceRequest tagResourceRequest) Tag a resource.default UntagResourceResponse
untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Untag a resource.default UntagResourceResponse
untagResource
(UntagResourceRequest untagResourceRequest) Untag a resource.updateCampaignDialerConfig
(Consumer<UpdateCampaignDialerConfigRequest.Builder> updateCampaignDialerConfigRequest) Updates the dialer config of a campaign.updateCampaignDialerConfig
(UpdateCampaignDialerConfigRequest updateCampaignDialerConfigRequest) Updates the dialer config of a campaign.default UpdateCampaignNameResponse
updateCampaignName
(Consumer<UpdateCampaignNameRequest.Builder> updateCampaignNameRequest) Updates the name of a campaign.default UpdateCampaignNameResponse
updateCampaignName
(UpdateCampaignNameRequest updateCampaignNameRequest) Updates the name of a campaign.updateCampaignOutboundCallConfig
(Consumer<UpdateCampaignOutboundCallConfigRequest.Builder> updateCampaignOutboundCallConfigRequest) Updates the outbound call config of a campaign.updateCampaignOutboundCallConfig
(UpdateCampaignOutboundCallConfigRequest updateCampaignOutboundCallConfigRequest) Updates the outbound call config of a campaign.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
createCampaign
default CreateCampaignResponse createCampaign(CreateCampaignRequest createCampaignRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException, AccessDeniedException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Creates a campaign for the specified Amazon Connect account. This API is idempotent.
- Parameters:
createCampaignRequest
- The request for Create Campaign API.- Returns:
- Result of the CreateCampaign operation returned by the service.
- See Also:
-
createCampaign
default CreateCampaignResponse createCampaign(Consumer<CreateCampaignRequest.Builder> createCampaignRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException, AccessDeniedException, ServiceQuotaExceededException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Creates a campaign for the specified Amazon Connect account. This API is idempotent.
This is a convenience which creates an instance of the
CreateCampaignRequest.Builder
avoiding the need to create one manually viaCreateCampaignRequest.builder()
- Parameters:
createCampaignRequest
- AConsumer
that will call methods onCreateCampaignRequest.Builder
to create a request. The request for Create Campaign API.- Returns:
- Result of the CreateCampaign operation returned by the service.
- See Also:
-
deleteCampaign
default DeleteCampaignResponse deleteCampaign(DeleteCampaignRequest deleteCampaignRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, ConnectCampaignsException Deletes a campaign from the specified Amazon Connect account.
- Parameters:
deleteCampaignRequest
- DeleteCampaignRequest- Returns:
- Result of the DeleteCampaign operation returned by the service.
- See Also:
-
deleteCampaign
default DeleteCampaignResponse deleteCampaign(Consumer<DeleteCampaignRequest.Builder> deleteCampaignRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, ConnectCampaignsException Deletes a campaign from the specified Amazon Connect account.
This is a convenience which creates an instance of the
DeleteCampaignRequest.Builder
avoiding the need to create one manually viaDeleteCampaignRequest.builder()
- Parameters:
deleteCampaignRequest
- AConsumer
that will call methods onDeleteCampaignRequest.Builder
to create a request. DeleteCampaignRequest- Returns:
- Result of the DeleteCampaign operation returned by the service.
- See Also:
-
deleteConnectInstanceConfig
default DeleteConnectInstanceConfigResponse deleteConnectInstanceConfig(DeleteConnectInstanceConfigRequest deleteConnectInstanceConfigRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException, InvalidStateException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Deletes a connect instance config from the specified AWS account.
- Parameters:
deleteConnectInstanceConfigRequest
- DeleteCampaignRequest- Returns:
- Result of the DeleteConnectInstanceConfig operation returned by the service.
- See Also:
-
deleteConnectInstanceConfig
default DeleteConnectInstanceConfigResponse deleteConnectInstanceConfig(Consumer<DeleteConnectInstanceConfigRequest.Builder> deleteConnectInstanceConfigRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException, InvalidStateException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Deletes a connect instance config from the specified AWS account.
This is a convenience which creates an instance of the
DeleteConnectInstanceConfigRequest.Builder
avoiding the need to create one manually viaDeleteConnectInstanceConfigRequest.builder()
- Parameters:
deleteConnectInstanceConfigRequest
- AConsumer
that will call methods onDeleteConnectInstanceConfigRequest.Builder
to create a request. DeleteCampaignRequest- Returns:
- Result of the DeleteConnectInstanceConfig operation returned by the service.
- See Also:
-
deleteInstanceOnboardingJob
default DeleteInstanceOnboardingJobResponse deleteInstanceOnboardingJob(DeleteInstanceOnboardingJobRequest deleteInstanceOnboardingJobRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException, InvalidStateException, AwsServiceException, SdkClientException, ConnectCampaignsException Delete the Connect Campaigns onboarding job for the specified Amazon Connect instance.
- Parameters:
deleteInstanceOnboardingJobRequest
- The request for DeleteInstanceOnboardingJob API.- Returns:
- Result of the DeleteInstanceOnboardingJob operation returned by the service.
- See Also:
-
deleteInstanceOnboardingJob
default DeleteInstanceOnboardingJobResponse deleteInstanceOnboardingJob(Consumer<DeleteInstanceOnboardingJobRequest.Builder> deleteInstanceOnboardingJobRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException, InvalidStateException, AwsServiceException, SdkClientException, ConnectCampaignsException Delete the Connect Campaigns onboarding job for the specified Amazon Connect instance.
This is a convenience which creates an instance of the
DeleteInstanceOnboardingJobRequest.Builder
avoiding the need to create one manually viaDeleteInstanceOnboardingJobRequest.builder()
- Parameters:
deleteInstanceOnboardingJobRequest
- AConsumer
that will call methods onDeleteInstanceOnboardingJobRequest.Builder
to create a request. The request for DeleteInstanceOnboardingJob API.- Returns:
- Result of the DeleteInstanceOnboardingJob operation returned by the service.
- See Also:
-
describeCampaign
default DescribeCampaignResponse describeCampaign(DescribeCampaignRequest describeCampaignRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, ConnectCampaignsException Describes the specific campaign.
- Parameters:
describeCampaignRequest
- DescribeCampaignRequests- Returns:
- Result of the DescribeCampaign operation returned by the service.
- See Also:
-
describeCampaign
default DescribeCampaignResponse describeCampaign(Consumer<DescribeCampaignRequest.Builder> describeCampaignRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, ConnectCampaignsException Describes the specific campaign.
This is a convenience which creates an instance of the
DescribeCampaignRequest.Builder
avoiding the need to create one manually viaDescribeCampaignRequest.builder()
- Parameters:
describeCampaignRequest
- AConsumer
that will call methods onDescribeCampaignRequest.Builder
to create a request. DescribeCampaignRequests- Returns:
- Result of the DescribeCampaign operation returned by the service.
- See Also:
-
getCampaignState
default GetCampaignStateResponse getCampaignState(GetCampaignStateRequest getCampaignStateRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Get state of a campaign for the specified Amazon Connect account.
- Parameters:
getCampaignStateRequest
- GetCampaignStateRequest- Returns:
- Result of the GetCampaignState operation returned by the service.
- See Also:
-
getCampaignState
default GetCampaignStateResponse getCampaignState(Consumer<GetCampaignStateRequest.Builder> getCampaignStateRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Get state of a campaign for the specified Amazon Connect account.
This is a convenience which creates an instance of the
GetCampaignStateRequest.Builder
avoiding the need to create one manually viaGetCampaignStateRequest.builder()
- Parameters:
getCampaignStateRequest
- AConsumer
that will call methods onGetCampaignStateRequest.Builder
to create a request. GetCampaignStateRequest- Returns:
- Result of the GetCampaignState operation returned by the service.
- See Also:
-
getCampaignStateBatch
default GetCampaignStateBatchResponse getCampaignStateBatch(GetCampaignStateBatchRequest getCampaignStateBatchRequest) throws InternalServerException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Get state of campaigns for the specified Amazon Connect account.
- Parameters:
getCampaignStateBatchRequest
- GetCampaignStateBatchRequest- Returns:
- Result of the GetCampaignStateBatch operation returned by the service.
- See Also:
-
getCampaignStateBatch
default GetCampaignStateBatchResponse getCampaignStateBatch(Consumer<GetCampaignStateBatchRequest.Builder> getCampaignStateBatchRequest) throws InternalServerException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Get state of campaigns for the specified Amazon Connect account.
This is a convenience which creates an instance of the
GetCampaignStateBatchRequest.Builder
avoiding the need to create one manually viaGetCampaignStateBatchRequest.builder()
- Parameters:
getCampaignStateBatchRequest
- AConsumer
that will call methods onGetCampaignStateBatchRequest.Builder
to create a request. GetCampaignStateBatchRequest- Returns:
- Result of the GetCampaignStateBatch operation returned by the service.
- See Also:
-
getConnectInstanceConfig
default GetConnectInstanceConfigResponse getConnectInstanceConfig(GetConnectInstanceConfigRequest getConnectInstanceConfigRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, ConnectCampaignsException Get the specific Connect instance config.
- Parameters:
getConnectInstanceConfigRequest
- GetConnectInstanceConfigRequest- Returns:
- Result of the GetConnectInstanceConfig operation returned by the service.
- See Also:
-
getConnectInstanceConfig
default GetConnectInstanceConfigResponse getConnectInstanceConfig(Consumer<GetConnectInstanceConfigRequest.Builder> getConnectInstanceConfigRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, ConnectCampaignsException Get the specific Connect instance config.
This is a convenience which creates an instance of the
GetConnectInstanceConfigRequest.Builder
avoiding the need to create one manually viaGetConnectInstanceConfigRequest.builder()
- Parameters:
getConnectInstanceConfigRequest
- AConsumer
that will call methods onGetConnectInstanceConfigRequest.Builder
to create a request. GetConnectInstanceConfigRequest- Returns:
- Result of the GetConnectInstanceConfig operation returned by the service.
- See Also:
-
getInstanceOnboardingJobStatus
default GetInstanceOnboardingJobStatusResponse getInstanceOnboardingJobStatus(GetInstanceOnboardingJobStatusRequest getInstanceOnboardingJobStatusRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, ConnectCampaignsException Get the specific instance onboarding job status.
- Parameters:
getInstanceOnboardingJobStatusRequest
- GetInstanceOnboardingJobStatusRequest- Returns:
- Result of the GetInstanceOnboardingJobStatus operation returned by the service.
- See Also:
-
getInstanceOnboardingJobStatus
default GetInstanceOnboardingJobStatusResponse getInstanceOnboardingJobStatus(Consumer<GetInstanceOnboardingJobStatusRequest.Builder> getInstanceOnboardingJobStatusRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, ConnectCampaignsException Get the specific instance onboarding job status.
This is a convenience which creates an instance of the
GetInstanceOnboardingJobStatusRequest.Builder
avoiding the need to create one manually viaGetInstanceOnboardingJobStatusRequest.builder()
- Parameters:
getInstanceOnboardingJobStatusRequest
- AConsumer
that will call methods onGetInstanceOnboardingJobStatusRequest.Builder
to create a request. GetInstanceOnboardingJobStatusRequest- Returns:
- Result of the GetInstanceOnboardingJobStatus operation returned by the service.
- See Also:
-
listCampaigns
default ListCampaignsResponse listCampaigns(ListCampaignsRequest listCampaignsRequest) throws InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, ConnectCampaignsException Provides summary information about the campaigns under the specified Amazon Connect account.
- Parameters:
listCampaignsRequest
- ListCampaignsRequest- Returns:
- Result of the ListCampaigns operation returned by the service.
- See Also:
-
listCampaigns
default ListCampaignsResponse listCampaigns(Consumer<ListCampaignsRequest.Builder> listCampaignsRequest) throws InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, ConnectCampaignsException Provides summary information about the campaigns under the specified Amazon Connect account.
This is a convenience which creates an instance of the
ListCampaignsRequest.Builder
avoiding the need to create one manually viaListCampaignsRequest.builder()
- Parameters:
listCampaignsRequest
- AConsumer
that will call methods onListCampaignsRequest.Builder
to create a request. ListCampaignsRequest- Returns:
- Result of the ListCampaigns operation returned by the service.
- See Also:
-
listCampaignsPaginator
default ListCampaignsIterable listCampaignsPaginator(ListCampaignsRequest listCampaignsRequest) throws InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, ConnectCampaignsException This is a variant of
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 Streamsoftware.amazon.awssdk.services.connectcampaigns.paginators.ListCampaignsIterable responses = client.listCampaignsPaginator(request); responses.stream().forEach(....);
{ @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 directlysoftware.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
listCampaigns(software.amazon.awssdk.services.connectcampaigns.model.ListCampaignsRequest)
operation.- Parameters:
listCampaignsRequest
- ListCampaignsRequest- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listCampaignsPaginator
default ListCampaignsIterable listCampaignsPaginator(Consumer<ListCampaignsRequest.Builder> listCampaignsRequest) throws InternalServerException, ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, ConnectCampaignsException This is a variant of
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 Streamsoftware.amazon.awssdk.services.connectcampaigns.paginators.ListCampaignsIterable responses = client.listCampaignsPaginator(request); responses.stream().forEach(....);
{ @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 directlysoftware.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
listCampaigns(software.amazon.awssdk.services.connectcampaigns.model.ListCampaignsRequest)
operation.
This is a convenience which creates an instance of the
ListCampaignsRequest.Builder
avoiding the need to create one manually viaListCampaignsRequest.builder()
- Parameters:
listCampaignsRequest
- AConsumer
that will call methods onListCampaignsRequest.Builder
to create a request. ListCampaignsRequest- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException List tags for a resource.
- Parameters:
listTagsForResourceRequest
- ListTagsForResource- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException List tags for a resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builder
avoiding the need to create one manually viaListTagsForResourceRequest.builder()
- Parameters:
listTagsForResourceRequest
- AConsumer
that will call methods onListTagsForResourceRequest.Builder
to create a request. ListTagsForResource- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
pauseCampaign
default PauseCampaignResponse pauseCampaign(PauseCampaignRequest pauseCampaignRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException, InvalidCampaignStateException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Pauses a campaign for the specified Amazon Connect account.
- Parameters:
pauseCampaignRequest
- PauseCampaignRequest- Returns:
- Result of the PauseCampaign operation returned by the service.
- See Also:
-
pauseCampaign
default PauseCampaignResponse pauseCampaign(Consumer<PauseCampaignRequest.Builder> pauseCampaignRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException, InvalidCampaignStateException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Pauses a campaign for the specified Amazon Connect account.
This is a convenience which creates an instance of the
PauseCampaignRequest.Builder
avoiding the need to create one manually viaPauseCampaignRequest.builder()
- Parameters:
pauseCampaignRequest
- AConsumer
that will call methods onPauseCampaignRequest.Builder
to create a request. PauseCampaignRequest- Returns:
- Result of the PauseCampaign operation returned by the service.
- See Also:
-
putDialRequestBatch
default PutDialRequestBatchResponse putDialRequestBatch(PutDialRequestBatchRequest putDialRequestBatchRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException, InvalidCampaignStateException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Creates dials requests for the specified campaign Amazon Connect account. This API is idempotent.
- Parameters:
putDialRequestBatchRequest
- PutDialRequestBatchRequest- Returns:
- Result of the PutDialRequestBatch operation returned by the service.
- See Also:
-
putDialRequestBatch
default PutDialRequestBatchResponse putDialRequestBatch(Consumer<PutDialRequestBatchRequest.Builder> putDialRequestBatchRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException, InvalidCampaignStateException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Creates dials requests for the specified campaign Amazon Connect account. This API is idempotent.
This is a convenience which creates an instance of the
PutDialRequestBatchRequest.Builder
avoiding the need to create one manually viaPutDialRequestBatchRequest.builder()
- Parameters:
putDialRequestBatchRequest
- AConsumer
that will call methods onPutDialRequestBatchRequest.Builder
to create a request. PutDialRequestBatchRequest- Returns:
- Result of the PutDialRequestBatch operation returned by the service.
- See Also:
-
resumeCampaign
default ResumeCampaignResponse resumeCampaign(ResumeCampaignRequest resumeCampaignRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException, InvalidCampaignStateException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Stops a campaign for the specified Amazon Connect account.
- Parameters:
resumeCampaignRequest
- ResumeCampaignRequest- Returns:
- Result of the ResumeCampaign operation returned by the service.
- See Also:
-
resumeCampaign
default ResumeCampaignResponse resumeCampaign(Consumer<ResumeCampaignRequest.Builder> resumeCampaignRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException, InvalidCampaignStateException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Stops a campaign for the specified Amazon Connect account.
This is a convenience which creates an instance of the
ResumeCampaignRequest.Builder
avoiding the need to create one manually viaResumeCampaignRequest.builder()
- Parameters:
resumeCampaignRequest
- AConsumer
that will call methods onResumeCampaignRequest.Builder
to create a request. ResumeCampaignRequest- Returns:
- Result of the ResumeCampaign operation returned by the service.
- See Also:
-
startCampaign
default StartCampaignResponse startCampaign(StartCampaignRequest startCampaignRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException, InvalidCampaignStateException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Starts a campaign for the specified Amazon Connect account.
- Parameters:
startCampaignRequest
- StartCampaignRequest- Returns:
- Result of the StartCampaign operation returned by the service.
- See Also:
-
startCampaign
default StartCampaignResponse startCampaign(Consumer<StartCampaignRequest.Builder> startCampaignRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException, InvalidCampaignStateException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Starts a campaign for the specified Amazon Connect account.
This is a convenience which creates an instance of the
StartCampaignRequest.Builder
avoiding the need to create one manually viaStartCampaignRequest.builder()
- Parameters:
startCampaignRequest
- AConsumer
that will call methods onStartCampaignRequest.Builder
to create a request. StartCampaignRequest- Returns:
- Result of the StartCampaign operation returned by the service.
- See Also:
-
startInstanceOnboardingJob
default StartInstanceOnboardingJobResponse startInstanceOnboardingJob(StartInstanceOnboardingJobRequest startInstanceOnboardingJobRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Onboard the specific Amazon Connect instance to Connect Campaigns.
- Parameters:
startInstanceOnboardingJobRequest
- The request for StartInstanceOnboardingJob API.- Returns:
- Result of the StartInstanceOnboardingJob operation returned by the service.
- See Also:
-
startInstanceOnboardingJob
default StartInstanceOnboardingJobResponse startInstanceOnboardingJob(Consumer<StartInstanceOnboardingJobRequest.Builder> startInstanceOnboardingJobRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Onboard the specific Amazon Connect instance to Connect Campaigns.
This is a convenience which creates an instance of the
StartInstanceOnboardingJobRequest.Builder
avoiding the need to create one manually viaStartInstanceOnboardingJobRequest.builder()
- Parameters:
startInstanceOnboardingJobRequest
- AConsumer
that will call methods onStartInstanceOnboardingJobRequest.Builder
to create a request. The request for StartInstanceOnboardingJob API.- Returns:
- Result of the StartInstanceOnboardingJob operation returned by the service.
- See Also:
-
stopCampaign
default StopCampaignResponse stopCampaign(StopCampaignRequest stopCampaignRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException, InvalidCampaignStateException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Stops a campaign for the specified Amazon Connect account.
- Parameters:
stopCampaignRequest
- StopCampaignRequest- Returns:
- Result of the StopCampaign operation returned by the service.
- See Also:
-
stopCampaign
default StopCampaignResponse stopCampaign(Consumer<StopCampaignRequest.Builder> stopCampaignRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException, InvalidCampaignStateException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Stops a campaign for the specified Amazon Connect account.
This is a convenience which creates an instance of the
StopCampaignRequest.Builder
avoiding the need to create one manually viaStopCampaignRequest.builder()
- Parameters:
stopCampaignRequest
- AConsumer
that will call methods onStopCampaignRequest.Builder
to create a request. StopCampaignRequest- Returns:
- Result of the StopCampaign operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Tag a resource.
- Parameters:
tagResourceRequest
- TagResourceRequest- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Tag a resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builder
avoiding the need to create one manually viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to create a request. TagResourceRequest- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Untag a resource.
- Parameters:
untagResourceRequest
- UntagResourceRequest- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Untag a resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builder
avoiding the need to create one manually viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to create a request. UntagResourceRequest- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateCampaignDialerConfig
default UpdateCampaignDialerConfigResponse updateCampaignDialerConfig(UpdateCampaignDialerConfigRequest updateCampaignDialerConfigRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException, AccessDeniedException, AwsServiceException, SdkClientException, ConnectCampaignsException Updates the dialer config of a campaign. This API is idempotent.
- Parameters:
updateCampaignDialerConfigRequest
- UpdateCampaignDialerConfigRequest- Returns:
- Result of the UpdateCampaignDialerConfig operation returned by the service.
- See Also:
-
updateCampaignDialerConfig
default UpdateCampaignDialerConfigResponse updateCampaignDialerConfig(Consumer<UpdateCampaignDialerConfigRequest.Builder> updateCampaignDialerConfigRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException, AccessDeniedException, AwsServiceException, SdkClientException, ConnectCampaignsException Updates the dialer config of a campaign. This API is idempotent.
This is a convenience which creates an instance of the
UpdateCampaignDialerConfigRequest.Builder
avoiding the need to create one manually viaUpdateCampaignDialerConfigRequest.builder()
- Parameters:
updateCampaignDialerConfigRequest
- AConsumer
that will call methods onUpdateCampaignDialerConfigRequest.Builder
to create a request. UpdateCampaignDialerConfigRequest- Returns:
- Result of the UpdateCampaignDialerConfig operation returned by the service.
- See Also:
-
updateCampaignName
default UpdateCampaignNameResponse updateCampaignName(UpdateCampaignNameRequest updateCampaignNameRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException, AccessDeniedException, AwsServiceException, SdkClientException, ConnectCampaignsException Updates the name of a campaign. This API is idempotent.
- Parameters:
updateCampaignNameRequest
- UpdateCampaignNameRequest- Returns:
- Result of the UpdateCampaignName operation returned by the service.
- See Also:
-
updateCampaignName
default UpdateCampaignNameResponse updateCampaignName(Consumer<UpdateCampaignNameRequest.Builder> updateCampaignNameRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException, AccessDeniedException, AwsServiceException, SdkClientException, ConnectCampaignsException Updates the name of a campaign. This API is idempotent.
This is a convenience which creates an instance of the
UpdateCampaignNameRequest.Builder
avoiding the need to create one manually viaUpdateCampaignNameRequest.builder()
- Parameters:
updateCampaignNameRequest
- AConsumer
that will call methods onUpdateCampaignNameRequest.Builder
to create a request. UpdateCampaignNameRequest- Returns:
- Result of the UpdateCampaignName operation returned by the service.
- See Also:
-
updateCampaignOutboundCallConfig
default UpdateCampaignOutboundCallConfigResponse updateCampaignOutboundCallConfig(UpdateCampaignOutboundCallConfigRequest updateCampaignOutboundCallConfigRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Updates the outbound call config of a campaign. This API is idempotent.
- Parameters:
updateCampaignOutboundCallConfigRequest
- UpdateCampaignOutboundCallConfigRequest- Returns:
- Result of the UpdateCampaignOutboundCallConfig operation returned by the service.
- See Also:
-
updateCampaignOutboundCallConfig
default UpdateCampaignOutboundCallConfigResponse updateCampaignOutboundCallConfig(Consumer<UpdateCampaignOutboundCallConfigRequest.Builder> updateCampaignOutboundCallConfigRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, ConflictException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, ConnectCampaignsException Updates the outbound call config of a campaign. This API is idempotent.
This is a convenience which creates an instance of the
UpdateCampaignOutboundCallConfigRequest.Builder
avoiding the need to create one manually viaUpdateCampaignOutboundCallConfigRequest.builder()
- Parameters:
updateCampaignOutboundCallConfigRequest
- AConsumer
that will call methods onUpdateCampaignOutboundCallConfigRequest.Builder
to create a request. UpdateCampaignOutboundCallConfigRequest- Returns:
- Result of the UpdateCampaignOutboundCallConfig operation returned by the service.
- See Also:
-
create
Create aConnectCampaignsClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aConnectCampaignsClient
. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-