Skip to content

Commit

Permalink
feat(aws-android-sdk-connect): update models to latest (#3218)
Browse files Browse the repository at this point in the history
Co-authored-by: gpanshu <[email protected]>
  • Loading branch information
awsmobilesdk and gpanshu authored Mar 13, 2023
1 parent ba52427 commit d993e47
Show file tree
Hide file tree
Showing 26 changed files with 7,366 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2333,6 +2333,50 @@ GetFederationTokenResult getFederationToken(GetFederationTokenRequest getFederat
GetMetricDataResult getMetricData(GetMetricDataRequest getMetricDataRequest)
throws AmazonClientException, AmazonServiceException;

/**
* <p>
* Gets metric data from the specified Amazon Connect instance.
* </p>
* <p>
* <code>GetMetricDataV2</code> offers more features than <a href=
* "https://docs.aws.amazon.com/connect/latest/APIReference/API_GetMetricData.html"
* >GetMetricData</a>, the previous version of this API. It has new metrics,
* offers filtering at a metric level, and offers the ability to filter and
* group data by channels, queues, routing profiles, agents, and agent
* hierarchy levels. It can retrieve historical data for last the 14 days,
* in 24-hour intervals.
* </p>
* <p>
* For a description of the historical metrics that are supported by
* <code>GetMetricDataV2</code> and <code>GetMetricData</code>, see <a href=
* "https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html"
* >Historical metrics definitions</a> in the <i>Amazon Connect
* Administrator's Guide</i>.
* </p>
* <p>
* This API is not available in the Amazon Web Services GovCloud (US)
* Regions.
* </p>
*
* @param getMetricDataV2Request
* @return getMetricDataV2Result The response from the GetMetricDataV2
* service method, as returned by Amazon Connect.
* @throws InvalidRequestException
* @throws InvalidParameterException
* @throws InternalServiceException
* @throws ThrottlingException
* @throws ResourceNotFoundException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* Connect indicating either a problem with the data in the
* request, or a server side issue.
*/
GetMetricDataV2Result getMetricDataV2(GetMetricDataV2Request getMetricDataV2Request)
throws AmazonClientException, AmazonServiceException;

/**
* <p>
* Gets details about a specific task template in the specified Amazon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5057,6 +5057,100 @@ Future<GetMetricDataResult> getMetricDataAsync(GetMetricDataRequest getMetricDat
AsyncHandler<GetMetricDataRequest, GetMetricDataResult> asyncHandler)
throws AmazonServiceException, AmazonClientException;

/**
* <p>
* Gets metric data from the specified Amazon Connect instance.
* </p>
* <p>
* <code>GetMetricDataV2</code> offers more features than <a href=
* "https://docs.aws.amazon.com/connect/latest/APIReference/API_GetMetricData.html"
* >GetMetricData</a>, the previous version of this API. It has new metrics,
* offers filtering at a metric level, and offers the ability to filter and
* group data by channels, queues, routing profiles, agents, and agent
* hierarchy levels. It can retrieve historical data for last the 14 days,
* in 24-hour intervals.
* </p>
* <p>
* For a description of the historical metrics that are supported by
* <code>GetMetricDataV2</code> and <code>GetMetricData</code>, see <a href=
* "https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html"
* >Historical metrics definitions</a> in the <i>Amazon Connect
* Administrator's Guide</i>.
* </p>
* <p>
* This API is not available in the Amazon Web Services GovCloud (US)
* Regions.
* </p>
*
* @param getMetricDataV2Request
* @return A Java Future object containing the response from the
* GetMetricDataV2 service method, as returned by Amazon Connect.
* @throws InvalidRequestException
* @throws InvalidParameterException
* @throws InternalServiceException
* @throws ThrottlingException
* @throws ResourceNotFoundException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* Connect indicating either a problem with the data in the
* request, or a server side issue.
*/
Future<GetMetricDataV2Result> getMetricDataV2Async(GetMetricDataV2Request getMetricDataV2Request)
throws AmazonServiceException, AmazonClientException;

/**
* <p>
* Gets metric data from the specified Amazon Connect instance.
* </p>
* <p>
* <code>GetMetricDataV2</code> offers more features than <a href=
* "https://docs.aws.amazon.com/connect/latest/APIReference/API_GetMetricData.html"
* >GetMetricData</a>, the previous version of this API. It has new metrics,
* offers filtering at a metric level, and offers the ability to filter and
* group data by channels, queues, routing profiles, agents, and agent
* hierarchy levels. It can retrieve historical data for last the 14 days,
* in 24-hour intervals.
* </p>
* <p>
* For a description of the historical metrics that are supported by
* <code>GetMetricDataV2</code> and <code>GetMetricData</code>, see <a href=
* "https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html"
* >Historical metrics definitions</a> in the <i>Amazon Connect
* Administrator's Guide</i>.
* </p>
* <p>
* This API is not available in the Amazon Web Services GovCloud (US)
* Regions.
* </p>
*
* @param getMetricDataV2Request
* @param asyncHandler Asynchronous callback handler for events in the
* life-cycle of the request. Users could provide the
* implementation of the four callback methods in this interface
* to process the operation result or handle the exception.
* @return A Java Future object containing the response from the
* GetMetricDataV2 service method, as returned by Amazon Connect.
* @throws InvalidRequestException
* @throws InvalidParameterException
* @throws InternalServiceException
* @throws ThrottlingException
* @throws ResourceNotFoundException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* Connect indicating either a problem with the data in the
* request, or a server side issue.
*/
Future<GetMetricDataV2Result> getMetricDataV2Async(
GetMetricDataV2Request getMetricDataV2Request,
AsyncHandler<GetMetricDataV2Request, GetMetricDataV2Result> asyncHandler)
throws AmazonServiceException, AmazonClientException;

/**
* <p>
* Gets details about a specific task template in the specified Amazon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6541,6 +6541,117 @@ public GetMetricDataResult call() throws Exception {
});
}

/**
* <p>
* Gets metric data from the specified Amazon Connect instance.
* </p>
* <p>
* <code>GetMetricDataV2</code> offers more features than <a href=
* "https://docs.aws.amazon.com/connect/latest/APIReference/API_GetMetricData.html"
* >GetMetricData</a>, the previous version of this API. It has new metrics,
* offers filtering at a metric level, and offers the ability to filter and
* group data by channels, queues, routing profiles, agents, and agent
* hierarchy levels. It can retrieve historical data for last the 14 days,
* in 24-hour intervals.
* </p>
* <p>
* For a description of the historical metrics that are supported by
* <code>GetMetricDataV2</code> and <code>GetMetricData</code>, see <a href=
* "https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html"
* >Historical metrics definitions</a> in the <i>Amazon Connect
* Administrator's Guide</i>.
* </p>
* <p>
* This API is not available in the Amazon Web Services GovCloud (US)
* Regions.
* </p>
*
* @param getMetricDataV2Request
* @return A Java Future object containing the response from the
* GetMetricDataV2 service method, as returned by Amazon Connect.
* @throws InvalidRequestException
* @throws InvalidParameterException
* @throws InternalServiceException
* @throws ThrottlingException
* @throws ResourceNotFoundException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* Connect indicating either a problem with the data in the
* request, or a server side issue.
*/
public Future<GetMetricDataV2Result> getMetricDataV2Async(
final GetMetricDataV2Request getMetricDataV2Request) throws AmazonServiceException,
AmazonClientException {
return executorService.submit(new Callable<GetMetricDataV2Result>() {
public GetMetricDataV2Result call() throws Exception {
return getMetricDataV2(getMetricDataV2Request);
}
});
}

/**
* <p>
* Gets metric data from the specified Amazon Connect instance.
* </p>
* <p>
* <code>GetMetricDataV2</code> offers more features than <a href=
* "https://docs.aws.amazon.com/connect/latest/APIReference/API_GetMetricData.html"
* >GetMetricData</a>, the previous version of this API. It has new metrics,
* offers filtering at a metric level, and offers the ability to filter and
* group data by channels, queues, routing profiles, agents, and agent
* hierarchy levels. It can retrieve historical data for last the 14 days,
* in 24-hour intervals.
* </p>
* <p>
* For a description of the historical metrics that are supported by
* <code>GetMetricDataV2</code> and <code>GetMetricData</code>, see <a href=
* "https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html"
* >Historical metrics definitions</a> in the <i>Amazon Connect
* Administrator's Guide</i>.
* </p>
* <p>
* This API is not available in the Amazon Web Services GovCloud (US)
* Regions.
* </p>
*
* @param getMetricDataV2Request
* @return A Java Future object containing the response from the
* GetMetricDataV2 service method, as returned by Amazon Connect.
* @throws InvalidRequestException
* @throws InvalidParameterException
* @throws InternalServiceException
* @throws ThrottlingException
* @throws ResourceNotFoundException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* Connect indicating either a problem with the data in the
* request, or a server side issue.
*/
public Future<GetMetricDataV2Result> getMetricDataV2Async(
final GetMetricDataV2Request getMetricDataV2Request,
final AsyncHandler<GetMetricDataV2Request, GetMetricDataV2Result> asyncHandler)
throws AmazonServiceException, AmazonClientException {
return executorService.submit(new Callable<GetMetricDataV2Result>() {
public GetMetricDataV2Result call() throws Exception {
GetMetricDataV2Result result = null;
try {
result = getMetricDataV2(getMetricDataV2Request);
} catch (Exception ex) {
asyncHandler.onError(ex);
throw ex;
}
asyncHandler.onSuccess(getMetricDataV2Request, result);
return result;
}
});
}

/**
* <p>
* Gets details about a specific task template in the specified Amazon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4532,6 +4532,76 @@ public GetMetricDataResult getMetricData(GetMetricDataRequest getMetricDataReque
}
}

/**
* <p>
* Gets metric data from the specified Amazon Connect instance.
* </p>
* <p>
* <code>GetMetricDataV2</code> offers more features than <a href=
* "https://docs.aws.amazon.com/connect/latest/APIReference/API_GetMetricData.html"
* >GetMetricData</a>, the previous version of this API. It has new metrics,
* offers filtering at a metric level, and offers the ability to filter and
* group data by channels, queues, routing profiles, agents, and agent
* hierarchy levels. It can retrieve historical data for last the 14 days,
* in 24-hour intervals.
* </p>
* <p>
* For a description of the historical metrics that are supported by
* <code>GetMetricDataV2</code> and <code>GetMetricData</code>, see <a href=
* "https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html"
* >Historical metrics definitions</a> in the <i>Amazon Connect
* Administrator's Guide</i>.
* </p>
* <p>
* This API is not available in the Amazon Web Services GovCloud (US)
* Regions.
* </p>
*
* @param getMetricDataV2Request
* @return getMetricDataV2Result The response from the GetMetricDataV2
* service method, as returned by Amazon Connect.
* @throws InvalidRequestException
* @throws InvalidParameterException
* @throws InternalServiceException
* @throws ThrottlingException
* @throws ResourceNotFoundException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* Connect indicating either a problem with the data in the
* request, or a server side issue.
*/
public GetMetricDataV2Result getMetricDataV2(GetMetricDataV2Request getMetricDataV2Request)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(getMetricDataV2Request);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request<GetMetricDataV2Request> request = null;
Response<GetMetricDataV2Result> response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetMetricDataV2RequestMarshaller().marshall(getMetricDataV2Request);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller<GetMetricDataV2Result, JsonUnmarshallerContext> unmarshaller = new GetMetricDataV2ResultJsonUnmarshaller();
JsonResponseHandler<GetMetricDataV2Result> responseHandler = new JsonResponseHandler<GetMetricDataV2Result>(
unmarshaller);

response = invoke(request, responseHandler, executionContext);

return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}

/**
* <p>
* Gets details about a specific task template in the specified Amazon
Expand Down
Loading

0 comments on commit d993e47

Please sign in to comment.