Skip to content

Commit 79889a6

Browse files
authored
feat(aws-android-sdk-kinesisvideo-archivedmedia): update models to latest (#2884)
1 parent aae329c commit 79889a6

File tree

88 files changed

+2836
-78
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+2836
-78
lines changed

aws-android-sdk-kinesisvideo-archivedmedia/src/main/java/com/amazonaws/services/kinesisvideoarchivedmedia/AWSKinesisVideoArchivedMedia.java

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.
@@ -697,6 +697,30 @@ GetHLSStreamingSessionURLResult getHLSStreamingSessionURL(
697697
GetHLSStreamingSessionURLRequest getHLSStreamingSessionURLRequest)
698698
throws AmazonClientException, AmazonServiceException;
699699

700+
/**
701+
* <p>
702+
* Retrieves a list of Images corresponding to each timestamp for a given
703+
* time range, sampling interval, and image format configuration.
704+
* </p>
705+
*
706+
* @param getImagesRequest
707+
* @return getImagesResult The response from the GetImages service method,
708+
* as returned by Amazon Kinesis Video Streams Archived Media.
709+
* @throws ResourceNotFoundException
710+
* @throws InvalidArgumentException
711+
* @throws ClientLimitExceededException
712+
* @throws NotAuthorizedException
713+
* @throws AmazonClientException If any internal errors are encountered
714+
* inside the client while attempting to make the request or
715+
* handle the response. For example if a network connection is
716+
* not available.
717+
* @throws AmazonServiceException If an error response is returned by Amazon
718+
* Kinesis Video Streams Archived Media indicating either a
719+
* problem with the data in the request, or a server side issue.
720+
*/
721+
GetImagesResult getImages(GetImagesRequest getImagesRequest) throws AmazonClientException,
722+
AmazonServiceException;
723+
700724
/**
701725
* <p>
702726
* Gets media for a list of fragments (specified by fragment number) from

aws-android-sdk-kinesisvideo-archivedmedia/src/main/java/com/amazonaws/services/kinesisvideoarchivedmedia/AWSKinesisVideoArchivedMediaClient.java

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.
@@ -1052,6 +1052,56 @@ public GetHLSStreamingSessionURLResult getHLSStreamingSessionURL(
10521052
}
10531053
}
10541054

1055+
/**
1056+
* <p>
1057+
* Retrieves a list of Images corresponding to each timestamp for a given
1058+
* time range, sampling interval, and image format configuration.
1059+
* </p>
1060+
*
1061+
* @param getImagesRequest
1062+
* @return getImagesResult The response from the GetImages service method,
1063+
* as returned by Amazon Kinesis Video Streams Archived Media.
1064+
* @throws ResourceNotFoundException
1065+
* @throws InvalidArgumentException
1066+
* @throws ClientLimitExceededException
1067+
* @throws NotAuthorizedException
1068+
* @throws AmazonClientException If any internal errors are encountered
1069+
* inside the client while attempting to make the request or
1070+
* handle the response. For example if a network connection is
1071+
* not available.
1072+
* @throws AmazonServiceException If an error response is returned by Amazon
1073+
* Kinesis Video Streams Archived Media indicating either a
1074+
* problem with the data in the request, or a server side issue.
1075+
*/
1076+
public GetImagesResult getImages(GetImagesRequest getImagesRequest)
1077+
throws AmazonServiceException, AmazonClientException {
1078+
ExecutionContext executionContext = createExecutionContext(getImagesRequest);
1079+
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1080+
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1081+
Request<GetImagesRequest> request = null;
1082+
Response<GetImagesResult> response = null;
1083+
try {
1084+
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1085+
try {
1086+
request = new GetImagesRequestMarshaller().marshall(getImagesRequest);
1087+
// Binds the request metrics to the current request.
1088+
request.setAWSRequestMetrics(awsRequestMetrics);
1089+
} finally {
1090+
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1091+
}
1092+
Unmarshaller<GetImagesResult, JsonUnmarshallerContext> unmarshaller = new GetImagesResultJsonUnmarshaller();
1093+
JsonResponseHandler<GetImagesResult> responseHandler = new JsonResponseHandler<GetImagesResult>(
1094+
unmarshaller);
1095+
1096+
response = invoke(request, responseHandler, executionContext);
1097+
1098+
return response.getAwsResponse();
1099+
} finally {
1100+
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
1101+
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
1102+
}
1103+
}
1104+
10551105
/**
10561106
* <p>
10571107
* Gets media for a list of fragments (specified by fragment number) from

aws-android-sdk-kinesisvideo-archivedmedia/src/main/java/com/amazonaws/services/kinesisvideoarchivedmedia/model/ClientLimitExceededException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.

aws-android-sdk-kinesisvideo-archivedmedia/src/main/java/com/amazonaws/services/kinesisvideoarchivedmedia/model/ClipFragmentSelector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.

aws-android-sdk-kinesisvideo-archivedmedia/src/main/java/com/amazonaws/services/kinesisvideoarchivedmedia/model/ClipFragmentSelectorType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.

aws-android-sdk-kinesisvideo-archivedmedia/src/main/java/com/amazonaws/services/kinesisvideoarchivedmedia/model/ClipTimestampRange.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.

aws-android-sdk-kinesisvideo-archivedmedia/src/main/java/com/amazonaws/services/kinesisvideoarchivedmedia/model/ContainerFormat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.

aws-android-sdk-kinesisvideo-archivedmedia/src/main/java/com/amazonaws/services/kinesisvideoarchivedmedia/model/DASHDisplayFragmentNumber.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.

aws-android-sdk-kinesisvideo-archivedmedia/src/main/java/com/amazonaws/services/kinesisvideoarchivedmedia/model/DASHDisplayFragmentTimestamp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.

aws-android-sdk-kinesisvideo-archivedmedia/src/main/java/com/amazonaws/services/kinesisvideoarchivedmedia/model/DASHFragmentSelector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)