Skip to content

Commit d993e47

Browse files
feat(aws-android-sdk-connect): update models to latest (#3218)
Co-authored-by: gpanshu <[email protected]>
1 parent ba52427 commit d993e47

26 files changed

+7366
-0
lines changed

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

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2333,6 +2333,50 @@ GetFederationTokenResult getFederationToken(GetFederationTokenRequest getFederat
23332333
GetMetricDataResult getMetricData(GetMetricDataRequest getMetricDataRequest)
23342334
throws AmazonClientException, AmazonServiceException;
23352335

2336+
/**
2337+
* <p>
2338+
* Gets metric data from the specified Amazon Connect instance.
2339+
* </p>
2340+
* <p>
2341+
* <code>GetMetricDataV2</code> offers more features than <a href=
2342+
* "https://docs.aws.amazon.com/connect/latest/APIReference/API_GetMetricData.html"
2343+
* >GetMetricData</a>, the previous version of this API. It has new metrics,
2344+
* offers filtering at a metric level, and offers the ability to filter and
2345+
* group data by channels, queues, routing profiles, agents, and agent
2346+
* hierarchy levels. It can retrieve historical data for last the 14 days,
2347+
* in 24-hour intervals.
2348+
* </p>
2349+
* <p>
2350+
* For a description of the historical metrics that are supported by
2351+
* <code>GetMetricDataV2</code> and <code>GetMetricData</code>, see <a href=
2352+
* "https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html"
2353+
* >Historical metrics definitions</a> in the <i>Amazon Connect
2354+
* Administrator's Guide</i>.
2355+
* </p>
2356+
* <p>
2357+
* This API is not available in the Amazon Web Services GovCloud (US)
2358+
* Regions.
2359+
* </p>
2360+
*
2361+
* @param getMetricDataV2Request
2362+
* @return getMetricDataV2Result The response from the GetMetricDataV2
2363+
* service method, as returned by Amazon Connect.
2364+
* @throws InvalidRequestException
2365+
* @throws InvalidParameterException
2366+
* @throws InternalServiceException
2367+
* @throws ThrottlingException
2368+
* @throws ResourceNotFoundException
2369+
* @throws AmazonClientException If any internal errors are encountered
2370+
* inside the client while attempting to make the request or
2371+
* handle the response. For example if a network connection is
2372+
* not available.
2373+
* @throws AmazonServiceException If an error response is returned by Amazon
2374+
* Connect indicating either a problem with the data in the
2375+
* request, or a server side issue.
2376+
*/
2377+
GetMetricDataV2Result getMetricDataV2(GetMetricDataV2Request getMetricDataV2Request)
2378+
throws AmazonClientException, AmazonServiceException;
2379+
23362380
/**
23372381
* <p>
23382382
* Gets details about a specific task template in the specified Amazon

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

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5057,6 +5057,100 @@ Future<GetMetricDataResult> getMetricDataAsync(GetMetricDataRequest getMetricDat
50575057
AsyncHandler<GetMetricDataRequest, GetMetricDataResult> asyncHandler)
50585058
throws AmazonServiceException, AmazonClientException;
50595059

5060+
/**
5061+
* <p>
5062+
* Gets metric data from the specified Amazon Connect instance.
5063+
* </p>
5064+
* <p>
5065+
* <code>GetMetricDataV2</code> offers more features than <a href=
5066+
* "https://docs.aws.amazon.com/connect/latest/APIReference/API_GetMetricData.html"
5067+
* >GetMetricData</a>, the previous version of this API. It has new metrics,
5068+
* offers filtering at a metric level, and offers the ability to filter and
5069+
* group data by channels, queues, routing profiles, agents, and agent
5070+
* hierarchy levels. It can retrieve historical data for last the 14 days,
5071+
* in 24-hour intervals.
5072+
* </p>
5073+
* <p>
5074+
* For a description of the historical metrics that are supported by
5075+
* <code>GetMetricDataV2</code> and <code>GetMetricData</code>, see <a href=
5076+
* "https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html"
5077+
* >Historical metrics definitions</a> in the <i>Amazon Connect
5078+
* Administrator's Guide</i>.
5079+
* </p>
5080+
* <p>
5081+
* This API is not available in the Amazon Web Services GovCloud (US)
5082+
* Regions.
5083+
* </p>
5084+
*
5085+
* @param getMetricDataV2Request
5086+
* @return A Java Future object containing the response from the
5087+
* GetMetricDataV2 service method, as returned by Amazon Connect.
5088+
* @throws InvalidRequestException
5089+
* @throws InvalidParameterException
5090+
* @throws InternalServiceException
5091+
* @throws ThrottlingException
5092+
* @throws ResourceNotFoundException
5093+
* @throws AmazonClientException If any internal errors are encountered
5094+
* inside the client while attempting to make the request or
5095+
* handle the response. For example if a network connection is
5096+
* not available.
5097+
* @throws AmazonServiceException If an error response is returned by Amazon
5098+
* Connect indicating either a problem with the data in the
5099+
* request, or a server side issue.
5100+
*/
5101+
Future<GetMetricDataV2Result> getMetricDataV2Async(GetMetricDataV2Request getMetricDataV2Request)
5102+
throws AmazonServiceException, AmazonClientException;
5103+
5104+
/**
5105+
* <p>
5106+
* Gets metric data from the specified Amazon Connect instance.
5107+
* </p>
5108+
* <p>
5109+
* <code>GetMetricDataV2</code> offers more features than <a href=
5110+
* "https://docs.aws.amazon.com/connect/latest/APIReference/API_GetMetricData.html"
5111+
* >GetMetricData</a>, the previous version of this API. It has new metrics,
5112+
* offers filtering at a metric level, and offers the ability to filter and
5113+
* group data by channels, queues, routing profiles, agents, and agent
5114+
* hierarchy levels. It can retrieve historical data for last the 14 days,
5115+
* in 24-hour intervals.
5116+
* </p>
5117+
* <p>
5118+
* For a description of the historical metrics that are supported by
5119+
* <code>GetMetricDataV2</code> and <code>GetMetricData</code>, see <a href=
5120+
* "https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html"
5121+
* >Historical metrics definitions</a> in the <i>Amazon Connect
5122+
* Administrator's Guide</i>.
5123+
* </p>
5124+
* <p>
5125+
* This API is not available in the Amazon Web Services GovCloud (US)
5126+
* Regions.
5127+
* </p>
5128+
*
5129+
* @param getMetricDataV2Request
5130+
* @param asyncHandler Asynchronous callback handler for events in the
5131+
* life-cycle of the request. Users could provide the
5132+
* implementation of the four callback methods in this interface
5133+
* to process the operation result or handle the exception.
5134+
* @return A Java Future object containing the response from the
5135+
* GetMetricDataV2 service method, as returned by Amazon Connect.
5136+
* @throws InvalidRequestException
5137+
* @throws InvalidParameterException
5138+
* @throws InternalServiceException
5139+
* @throws ThrottlingException
5140+
* @throws ResourceNotFoundException
5141+
* @throws AmazonClientException If any internal errors are encountered
5142+
* inside the client while attempting to make the request or
5143+
* handle the response. For example if a network connection is
5144+
* not available.
5145+
* @throws AmazonServiceException If an error response is returned by Amazon
5146+
* Connect indicating either a problem with the data in the
5147+
* request, or a server side issue.
5148+
*/
5149+
Future<GetMetricDataV2Result> getMetricDataV2Async(
5150+
GetMetricDataV2Request getMetricDataV2Request,
5151+
AsyncHandler<GetMetricDataV2Request, GetMetricDataV2Result> asyncHandler)
5152+
throws AmazonServiceException, AmazonClientException;
5153+
50605154
/**
50615155
* <p>
50625156
* Gets details about a specific task template in the specified Amazon

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

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6541,6 +6541,117 @@ public GetMetricDataResult call() throws Exception {
65416541
});
65426542
}
65436543

6544+
/**
6545+
* <p>
6546+
* Gets metric data from the specified Amazon Connect instance.
6547+
* </p>
6548+
* <p>
6549+
* <code>GetMetricDataV2</code> offers more features than <a href=
6550+
* "https://docs.aws.amazon.com/connect/latest/APIReference/API_GetMetricData.html"
6551+
* >GetMetricData</a>, the previous version of this API. It has new metrics,
6552+
* offers filtering at a metric level, and offers the ability to filter and
6553+
* group data by channels, queues, routing profiles, agents, and agent
6554+
* hierarchy levels. It can retrieve historical data for last the 14 days,
6555+
* in 24-hour intervals.
6556+
* </p>
6557+
* <p>
6558+
* For a description of the historical metrics that are supported by
6559+
* <code>GetMetricDataV2</code> and <code>GetMetricData</code>, see <a href=
6560+
* "https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html"
6561+
* >Historical metrics definitions</a> in the <i>Amazon Connect
6562+
* Administrator's Guide</i>.
6563+
* </p>
6564+
* <p>
6565+
* This API is not available in the Amazon Web Services GovCloud (US)
6566+
* Regions.
6567+
* </p>
6568+
*
6569+
* @param getMetricDataV2Request
6570+
* @return A Java Future object containing the response from the
6571+
* GetMetricDataV2 service method, as returned by Amazon Connect.
6572+
* @throws InvalidRequestException
6573+
* @throws InvalidParameterException
6574+
* @throws InternalServiceException
6575+
* @throws ThrottlingException
6576+
* @throws ResourceNotFoundException
6577+
* @throws AmazonClientException If any internal errors are encountered
6578+
* inside the client while attempting to make the request or
6579+
* handle the response. For example if a network connection is
6580+
* not available.
6581+
* @throws AmazonServiceException If an error response is returned by Amazon
6582+
* Connect indicating either a problem with the data in the
6583+
* request, or a server side issue.
6584+
*/
6585+
public Future<GetMetricDataV2Result> getMetricDataV2Async(
6586+
final GetMetricDataV2Request getMetricDataV2Request) throws AmazonServiceException,
6587+
AmazonClientException {
6588+
return executorService.submit(new Callable<GetMetricDataV2Result>() {
6589+
public GetMetricDataV2Result call() throws Exception {
6590+
return getMetricDataV2(getMetricDataV2Request);
6591+
}
6592+
});
6593+
}
6594+
6595+
/**
6596+
* <p>
6597+
* Gets metric data from the specified Amazon Connect instance.
6598+
* </p>
6599+
* <p>
6600+
* <code>GetMetricDataV2</code> offers more features than <a href=
6601+
* "https://docs.aws.amazon.com/connect/latest/APIReference/API_GetMetricData.html"
6602+
* >GetMetricData</a>, the previous version of this API. It has new metrics,
6603+
* offers filtering at a metric level, and offers the ability to filter and
6604+
* group data by channels, queues, routing profiles, agents, and agent
6605+
* hierarchy levels. It can retrieve historical data for last the 14 days,
6606+
* in 24-hour intervals.
6607+
* </p>
6608+
* <p>
6609+
* For a description of the historical metrics that are supported by
6610+
* <code>GetMetricDataV2</code> and <code>GetMetricData</code>, see <a href=
6611+
* "https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html"
6612+
* >Historical metrics definitions</a> in the <i>Amazon Connect
6613+
* Administrator's Guide</i>.
6614+
* </p>
6615+
* <p>
6616+
* This API is not available in the Amazon Web Services GovCloud (US)
6617+
* Regions.
6618+
* </p>
6619+
*
6620+
* @param getMetricDataV2Request
6621+
* @return A Java Future object containing the response from the
6622+
* GetMetricDataV2 service method, as returned by Amazon Connect.
6623+
* @throws InvalidRequestException
6624+
* @throws InvalidParameterException
6625+
* @throws InternalServiceException
6626+
* @throws ThrottlingException
6627+
* @throws ResourceNotFoundException
6628+
* @throws AmazonClientException If any internal errors are encountered
6629+
* inside the client while attempting to make the request or
6630+
* handle the response. For example if a network connection is
6631+
* not available.
6632+
* @throws AmazonServiceException If an error response is returned by Amazon
6633+
* Connect indicating either a problem with the data in the
6634+
* request, or a server side issue.
6635+
*/
6636+
public Future<GetMetricDataV2Result> getMetricDataV2Async(
6637+
final GetMetricDataV2Request getMetricDataV2Request,
6638+
final AsyncHandler<GetMetricDataV2Request, GetMetricDataV2Result> asyncHandler)
6639+
throws AmazonServiceException, AmazonClientException {
6640+
return executorService.submit(new Callable<GetMetricDataV2Result>() {
6641+
public GetMetricDataV2Result call() throws Exception {
6642+
GetMetricDataV2Result result = null;
6643+
try {
6644+
result = getMetricDataV2(getMetricDataV2Request);
6645+
} catch (Exception ex) {
6646+
asyncHandler.onError(ex);
6647+
throw ex;
6648+
}
6649+
asyncHandler.onSuccess(getMetricDataV2Request, result);
6650+
return result;
6651+
}
6652+
});
6653+
}
6654+
65446655
/**
65456656
* <p>
65466657
* Gets details about a specific task template in the specified Amazon

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

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4532,6 +4532,76 @@ public GetMetricDataResult getMetricData(GetMetricDataRequest getMetricDataReque
45324532
}
45334533
}
45344534

4535+
/**
4536+
* <p>
4537+
* Gets metric data from the specified Amazon Connect instance.
4538+
* </p>
4539+
* <p>
4540+
* <code>GetMetricDataV2</code> offers more features than <a href=
4541+
* "https://docs.aws.amazon.com/connect/latest/APIReference/API_GetMetricData.html"
4542+
* >GetMetricData</a>, the previous version of this API. It has new metrics,
4543+
* offers filtering at a metric level, and offers the ability to filter and
4544+
* group data by channels, queues, routing profiles, agents, and agent
4545+
* hierarchy levels. It can retrieve historical data for last the 14 days,
4546+
* in 24-hour intervals.
4547+
* </p>
4548+
* <p>
4549+
* For a description of the historical metrics that are supported by
4550+
* <code>GetMetricDataV2</code> and <code>GetMetricData</code>, see <a href=
4551+
* "https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html"
4552+
* >Historical metrics definitions</a> in the <i>Amazon Connect
4553+
* Administrator's Guide</i>.
4554+
* </p>
4555+
* <p>
4556+
* This API is not available in the Amazon Web Services GovCloud (US)
4557+
* Regions.
4558+
* </p>
4559+
*
4560+
* @param getMetricDataV2Request
4561+
* @return getMetricDataV2Result The response from the GetMetricDataV2
4562+
* service method, as returned by Amazon Connect.
4563+
* @throws InvalidRequestException
4564+
* @throws InvalidParameterException
4565+
* @throws InternalServiceException
4566+
* @throws ThrottlingException
4567+
* @throws ResourceNotFoundException
4568+
* @throws AmazonClientException If any internal errors are encountered
4569+
* inside the client while attempting to make the request or
4570+
* handle the response. For example if a network connection is
4571+
* not available.
4572+
* @throws AmazonServiceException If an error response is returned by Amazon
4573+
* Connect indicating either a problem with the data in the
4574+
* request, or a server side issue.
4575+
*/
4576+
public GetMetricDataV2Result getMetricDataV2(GetMetricDataV2Request getMetricDataV2Request)
4577+
throws AmazonServiceException, AmazonClientException {
4578+
ExecutionContext executionContext = createExecutionContext(getMetricDataV2Request);
4579+
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
4580+
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
4581+
Request<GetMetricDataV2Request> request = null;
4582+
Response<GetMetricDataV2Result> response = null;
4583+
try {
4584+
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
4585+
try {
4586+
request = new GetMetricDataV2RequestMarshaller().marshall(getMetricDataV2Request);
4587+
// Binds the request metrics to the current request.
4588+
request.setAWSRequestMetrics(awsRequestMetrics);
4589+
} finally {
4590+
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
4591+
}
4592+
Unmarshaller<GetMetricDataV2Result, JsonUnmarshallerContext> unmarshaller = new GetMetricDataV2ResultJsonUnmarshaller();
4593+
JsonResponseHandler<GetMetricDataV2Result> responseHandler = new JsonResponseHandler<GetMetricDataV2Result>(
4594+
unmarshaller);
4595+
4596+
response = invoke(request, responseHandler, executionContext);
4597+
4598+
return response.getAwsResponse();
4599+
} finally {
4600+
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
4601+
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
4602+
}
4603+
}
4604+
45354605
/**
45364606
* <p>
45374607
* Gets details about a specific task template in the specified Amazon

0 commit comments

Comments
 (0)