Skip to content

Commit 3013f83

Browse files
awsmobilesdksdhuka
andauthored
feat(aws-android-sdk-connect): update models to latest (#3053)
Co-authored-by: Saijad Dhuka <[email protected]>
1 parent e1ff6b5 commit 3013f83

File tree

9 files changed

+739
-8
lines changed

9 files changed

+739
-8
lines changed

aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/AmazonConnect.java

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2070,6 +2070,37 @@ void disassociateRoutingProfileQueues(
20702070
void disassociateSecurityKey(DisassociateSecurityKeyRequest disassociateSecurityKeyRequest)
20712071
throws AmazonClientException, AmazonServiceException;
20722072

2073+
/**
2074+
* <p>
2075+
* Dismisses contacts from an agent’s CCP and returns the agent to an
2076+
* available state, which allows the agent to receive a new routed contact.
2077+
* Contacts can only be dismissed if they are in a <code>MISSED</code>,
2078+
* <code>ERROR</code>, <code>ENDED</code>, or <code>REJECTED</code> state in
2079+
* the <a href=
2080+
* "https://docs.aws.amazon.com/connect/latest/adminguide/about-contact-states.html"
2081+
* >Agent Event Stream</a>.
2082+
* </p>
2083+
*
2084+
* @param dismissUserContactRequest
2085+
* @return dismissUserContactResult The response from the DismissUserContact
2086+
* service method, as returned by Amazon Connect.
2087+
* @throws InvalidRequestException
2088+
* @throws InvalidParameterException
2089+
* @throws ResourceNotFoundException
2090+
* @throws ThrottlingException
2091+
* @throws AccessDeniedException
2092+
* @throws InternalServiceException
2093+
* @throws AmazonClientException If any internal errors are encountered
2094+
* inside the client while attempting to make the request or
2095+
* handle the response. For example if a network connection is
2096+
* not available.
2097+
* @throws AmazonServiceException If an error response is returned by Amazon
2098+
* Connect indicating either a problem with the data in the
2099+
* request, or a server side issue.
2100+
*/
2101+
DismissUserContactResult dismissUserContact(DismissUserContactRequest dismissUserContactRequest)
2102+
throws AmazonClientException, AmazonServiceException;
2103+
20732104
/**
20742105
* <p>
20752106
* Retrieves the contact attributes for the specified contact.
@@ -4739,7 +4770,9 @@ UpdateTaskTemplateResult updateTaskTemplate(UpdateTaskTemplateRequest updateTask
47394770
/**
47404771
* <p>
47414772
* Updates the traffic distribution for a given traffic distribution group.
4742-
* For more information about updating a traffic distribution group see <a
4773+
* </p>
4774+
* <p>
4775+
* For more information about updating a traffic distribution group, see <a
47434776
* href=
47444777
* "https://docs.aws.amazon.com/connect/latest/adminguide/update-telephony-traffic-distribution.html"
47454778
* >Update telephony traffic distribution across Amazon Web Services Regions

aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/AmazonConnectAsync.java

Lines changed: 75 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4471,6 +4471,75 @@ Future<Void> disassociateSecurityKeyAsync(
44714471
AsyncHandler<DisassociateSecurityKeyRequest, Void> asyncHandler)
44724472
throws AmazonServiceException, AmazonClientException;
44734473

4474+
/**
4475+
* <p>
4476+
* Dismisses contacts from an agent’s CCP and returns the agent to an
4477+
* available state, which allows the agent to receive a new routed contact.
4478+
* Contacts can only be dismissed if they are in a <code>MISSED</code>,
4479+
* <code>ERROR</code>, <code>ENDED</code>, or <code>REJECTED</code> state in
4480+
* the <a href=
4481+
* "https://docs.aws.amazon.com/connect/latest/adminguide/about-contact-states.html"
4482+
* >Agent Event Stream</a>.
4483+
* </p>
4484+
*
4485+
* @param dismissUserContactRequest
4486+
* @return A Java Future object containing the response from the
4487+
* DismissUserContact service method, as returned by Amazon Connect.
4488+
* @throws InvalidRequestException
4489+
* @throws InvalidParameterException
4490+
* @throws ResourceNotFoundException
4491+
* @throws ThrottlingException
4492+
* @throws AccessDeniedException
4493+
* @throws InternalServiceException
4494+
* @throws AmazonClientException If any internal errors are encountered
4495+
* inside the client while attempting to make the request or
4496+
* handle the response. For example if a network connection is
4497+
* not available.
4498+
* @throws AmazonServiceException If an error response is returned by Amazon
4499+
* Connect indicating either a problem with the data in the
4500+
* request, or a server side issue.
4501+
*/
4502+
Future<DismissUserContactResult> dismissUserContactAsync(
4503+
DismissUserContactRequest dismissUserContactRequest) throws AmazonServiceException,
4504+
AmazonClientException;
4505+
4506+
/**
4507+
* <p>
4508+
* Dismisses contacts from an agent’s CCP and returns the agent to an
4509+
* available state, which allows the agent to receive a new routed contact.
4510+
* Contacts can only be dismissed if they are in a <code>MISSED</code>,
4511+
* <code>ERROR</code>, <code>ENDED</code>, or <code>REJECTED</code> state in
4512+
* the <a href=
4513+
* "https://docs.aws.amazon.com/connect/latest/adminguide/about-contact-states.html"
4514+
* >Agent Event Stream</a>.
4515+
* </p>
4516+
*
4517+
* @param dismissUserContactRequest
4518+
* @param asyncHandler Asynchronous callback handler for events in the
4519+
* life-cycle of the request. Users could provide the
4520+
* implementation of the four callback methods in this interface
4521+
* to process the operation result or handle the exception.
4522+
* @return A Java Future object containing the response from the
4523+
* DismissUserContact service method, as returned by Amazon Connect.
4524+
* @throws InvalidRequestException
4525+
* @throws InvalidParameterException
4526+
* @throws ResourceNotFoundException
4527+
* @throws ThrottlingException
4528+
* @throws AccessDeniedException
4529+
* @throws InternalServiceException
4530+
* @throws AmazonClientException If any internal errors are encountered
4531+
* inside the client while attempting to make the request or
4532+
* handle the response. For example if a network connection is
4533+
* not available.
4534+
* @throws AmazonServiceException If an error response is returned by Amazon
4535+
* Connect indicating either a problem with the data in the
4536+
* request, or a server side issue.
4537+
*/
4538+
Future<DismissUserContactResult> dismissUserContactAsync(
4539+
DismissUserContactRequest dismissUserContactRequest,
4540+
AsyncHandler<DismissUserContactRequest, DismissUserContactResult> asyncHandler)
4541+
throws AmazonServiceException, AmazonClientException;
4542+
44744543
/**
44754544
* <p>
44764545
* Retrieves the contact attributes for the specified contact.
@@ -10408,7 +10477,9 @@ Future<UpdateTaskTemplateResult> updateTaskTemplateAsync(
1040810477
/**
1040910478
* <p>
1041010479
* Updates the traffic distribution for a given traffic distribution group.
10411-
* For more information about updating a traffic distribution group see <a
10480+
* </p>
10481+
* <p>
10482+
* For more information about updating a traffic distribution group, see <a
1041210483
* href=
1041310484
* "https://docs.aws.amazon.com/connect/latest/adminguide/update-telephony-traffic-distribution.html"
1041410485
* >Update telephony traffic distribution across Amazon Web Services Regions
@@ -10440,7 +10511,9 @@ Future<UpdateTrafficDistributionResult> updateTrafficDistributionAsync(
1044010511
/**
1044110512
* <p>
1044210513
* Updates the traffic distribution for a given traffic distribution group.
10443-
* For more information about updating a traffic distribution group see <a
10514+
* </p>
10515+
* <p>
10516+
* For more information about updating a traffic distribution group, see <a
1044410517
* href=
1044510518
* "https://docs.aws.amazon.com/connect/latest/adminguide/update-telephony-traffic-distribution.html"
1044610519
* >Update telephony traffic distribution across Amazon Web Services Regions

aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/AmazonConnectAsyncClient.java

Lines changed: 91 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5809,6 +5809,91 @@ public Void call() throws Exception {
58095809
});
58105810
}
58115811

5812+
/**
5813+
* <p>
5814+
* Dismisses contacts from an agent’s CCP and returns the agent to an
5815+
* available state, which allows the agent to receive a new routed contact.
5816+
* Contacts can only be dismissed if they are in a <code>MISSED</code>,
5817+
* <code>ERROR</code>, <code>ENDED</code>, or <code>REJECTED</code> state in
5818+
* the <a href=
5819+
* "https://docs.aws.amazon.com/connect/latest/adminguide/about-contact-states.html"
5820+
* >Agent Event Stream</a>.
5821+
* </p>
5822+
*
5823+
* @param dismissUserContactRequest
5824+
* @return A Java Future object containing the response from the
5825+
* DismissUserContact service method, as returned by Amazon Connect.
5826+
* @throws InvalidRequestException
5827+
* @throws InvalidParameterException
5828+
* @throws ResourceNotFoundException
5829+
* @throws ThrottlingException
5830+
* @throws AccessDeniedException
5831+
* @throws InternalServiceException
5832+
* @throws AmazonClientException If any internal errors are encountered
5833+
* inside the client while attempting to make the request or
5834+
* handle the response. For example if a network connection is
5835+
* not available.
5836+
* @throws AmazonServiceException If an error response is returned by Amazon
5837+
* Connect indicating either a problem with the data in the
5838+
* request, or a server side issue.
5839+
*/
5840+
public Future<DismissUserContactResult> dismissUserContactAsync(
5841+
final DismissUserContactRequest dismissUserContactRequest)
5842+
throws AmazonServiceException, AmazonClientException {
5843+
return executorService.submit(new Callable<DismissUserContactResult>() {
5844+
public DismissUserContactResult call() throws Exception {
5845+
return dismissUserContact(dismissUserContactRequest);
5846+
}
5847+
});
5848+
}
5849+
5850+
/**
5851+
* <p>
5852+
* Dismisses contacts from an agent’s CCP and returns the agent to an
5853+
* available state, which allows the agent to receive a new routed contact.
5854+
* Contacts can only be dismissed if they are in a <code>MISSED</code>,
5855+
* <code>ERROR</code>, <code>ENDED</code>, or <code>REJECTED</code> state in
5856+
* the <a href=
5857+
* "https://docs.aws.amazon.com/connect/latest/adminguide/about-contact-states.html"
5858+
* >Agent Event Stream</a>.
5859+
* </p>
5860+
*
5861+
* @param dismissUserContactRequest
5862+
* @return A Java Future object containing the response from the
5863+
* DismissUserContact service method, as returned by Amazon Connect.
5864+
* @throws InvalidRequestException
5865+
* @throws InvalidParameterException
5866+
* @throws ResourceNotFoundException
5867+
* @throws ThrottlingException
5868+
* @throws AccessDeniedException
5869+
* @throws InternalServiceException
5870+
* @throws AmazonClientException If any internal errors are encountered
5871+
* inside the client while attempting to make the request or
5872+
* handle the response. For example if a network connection is
5873+
* not available.
5874+
* @throws AmazonServiceException If an error response is returned by Amazon
5875+
* Connect indicating either a problem with the data in the
5876+
* request, or a server side issue.
5877+
*/
5878+
public Future<DismissUserContactResult> dismissUserContactAsync(
5879+
final DismissUserContactRequest dismissUserContactRequest,
5880+
final AsyncHandler<DismissUserContactRequest, DismissUserContactResult> asyncHandler)
5881+
throws AmazonServiceException, AmazonClientException {
5882+
return executorService.submit(new Callable<DismissUserContactResult>() {
5883+
public DismissUserContactResult call() throws Exception {
5884+
DismissUserContactResult result = null;
5885+
try {
5886+
result = dismissUserContact(dismissUserContactRequest);
5887+
} catch (Exception ex) {
5888+
asyncHandler.onError(ex);
5889+
throw ex;
5890+
}
5891+
asyncHandler.onSuccess(dismissUserContactRequest, result);
5892+
return result;
5893+
}
5894+
});
5895+
}
5896+
58125897
/**
58135898
* <p>
58145899
* Retrieves the contact attributes for the specified contact.
@@ -13164,7 +13249,9 @@ public UpdateTaskTemplateResult call() throws Exception {
1316413249
/**
1316513250
* <p>
1316613251
* Updates the traffic distribution for a given traffic distribution group.
13167-
* For more information about updating a traffic distribution group see <a
13252+
* </p>
13253+
* <p>
13254+
* For more information about updating a traffic distribution group, see <a
1316813255
* href=
1316913256
* "https://docs.aws.amazon.com/connect/latest/adminguide/update-telephony-traffic-distribution.html"
1317013257
* >Update telephony traffic distribution across Amazon Web Services Regions
@@ -13202,7 +13289,9 @@ public UpdateTrafficDistributionResult call() throws Exception {
1320213289
/**
1320313290
* <p>
1320413291
* Updates the traffic distribution for a given traffic distribution group.
13205-
* For more information about updating a traffic distribution group see <a
13292+
* </p>
13293+
* <p>
13294+
* For more information about updating a traffic distribution group, see <a
1320613295
* href=
1320713296
* "https://docs.aws.amazon.com/connect/latest/adminguide/update-telephony-traffic-distribution.html"
1320813297
* >Update telephony traffic distribution across Amazon Web Services Regions

aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/AmazonConnectClient.java

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4026,6 +4026,65 @@ public void disassociateSecurityKey(
40264026
}
40274027
}
40284028

4029+
/**
4030+
* <p>
4031+
* Dismisses contacts from an agent’s CCP and returns the agent to an
4032+
* available state, which allows the agent to receive a new routed contact.
4033+
* Contacts can only be dismissed if they are in a <code>MISSED</code>,
4034+
* <code>ERROR</code>, <code>ENDED</code>, or <code>REJECTED</code> state in
4035+
* the <a href=
4036+
* "https://docs.aws.amazon.com/connect/latest/adminguide/about-contact-states.html"
4037+
* >Agent Event Stream</a>.
4038+
* </p>
4039+
*
4040+
* @param dismissUserContactRequest
4041+
* @return dismissUserContactResult The response from the DismissUserContact
4042+
* service method, as returned by Amazon Connect.
4043+
* @throws InvalidRequestException
4044+
* @throws InvalidParameterException
4045+
* @throws ResourceNotFoundException
4046+
* @throws ThrottlingException
4047+
* @throws AccessDeniedException
4048+
* @throws InternalServiceException
4049+
* @throws AmazonClientException If any internal errors are encountered
4050+
* inside the client while attempting to make the request or
4051+
* handle the response. For example if a network connection is
4052+
* not available.
4053+
* @throws AmazonServiceException If an error response is returned by Amazon
4054+
* Connect indicating either a problem with the data in the
4055+
* request, or a server side issue.
4056+
*/
4057+
public DismissUserContactResult dismissUserContact(
4058+
DismissUserContactRequest dismissUserContactRequest)
4059+
throws AmazonServiceException, AmazonClientException {
4060+
ExecutionContext executionContext = createExecutionContext(dismissUserContactRequest);
4061+
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
4062+
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
4063+
Request<DismissUserContactRequest> request = null;
4064+
Response<DismissUserContactResult> response = null;
4065+
try {
4066+
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
4067+
try {
4068+
request = new DismissUserContactRequestMarshaller()
4069+
.marshall(dismissUserContactRequest);
4070+
// Binds the request metrics to the current request.
4071+
request.setAWSRequestMetrics(awsRequestMetrics);
4072+
} finally {
4073+
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
4074+
}
4075+
Unmarshaller<DismissUserContactResult, JsonUnmarshallerContext> unmarshaller = new DismissUserContactResultJsonUnmarshaller();
4076+
JsonResponseHandler<DismissUserContactResult> responseHandler = new JsonResponseHandler<DismissUserContactResult>(
4077+
unmarshaller);
4078+
4079+
response = invoke(request, responseHandler, executionContext);
4080+
4081+
return response.getAwsResponse();
4082+
} finally {
4083+
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
4084+
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
4085+
}
4086+
}
4087+
40294088
/**
40304089
* <p>
40314090
* Retrieves the contact attributes for the specified contact.
@@ -8899,7 +8958,9 @@ public UpdateTaskTemplateResult updateTaskTemplate(
88998958
/**
89008959
* <p>
89018960
* Updates the traffic distribution for a given traffic distribution group.
8902-
* For more information about updating a traffic distribution group see <a
8961+
* </p>
8962+
* <p>
8963+
* For more information about updating a traffic distribution group, see <a
89038964
* href=
89048965
* "https://docs.aws.amazon.com/connect/latest/adminguide/update-telephony-traffic-distribution.html"
89058966
* >Update telephony traffic distribution across Amazon Web Services Regions

0 commit comments

Comments
 (0)