@@ -989,13 +989,18 @@ public okhttp3.Call getFeedAsync(String feedId, final ApiCallback<Feed> callback
989989 * Build call for getFeedDocument
990990 *
991991 * @param feedDocumentId The identifier of the feed document. (required)
992+ * @param enableContentEncodingUrlHeader When `true`, the Content-Encoding header on the returned URL is
993+ * set to `gzip` instead of the default `identity` when `compressionAlgorithm` is
994+ * `GZIP`. This allows automatic decompression by HTTP clients. (optional)
992995 * @param progressRequestListener Progress request listener
993996 * @return Call to execute
994997 * @throws ApiException If fail to serialize the request body object
995998 * @throws LWAException If calls to fetch LWA access token fails
996999 */
9971000 private okhttp3 .Call getFeedDocumentCall (
998- String feedDocumentId , final ProgressRequestBody .ProgressRequestListener progressRequestListener )
1001+ String feedDocumentId ,
1002+ Boolean enableContentEncodingUrlHeader ,
1003+ final ProgressRequestBody .ProgressRequestListener progressRequestListener )
9991004 throws ApiException , LWAException {
10001005 Object localVarPostBody = null ;
10011006
@@ -1012,6 +1017,9 @@ private okhttp3.Call getFeedDocumentCall(
10121017
10131018 List <Pair > localVarQueryParams = new ArrayList <Pair >();
10141019 List <Pair > localVarCollectionQueryParams = new ArrayList <Pair >();
1020+ if (enableContentEncodingUrlHeader != null )
1021+ localVarQueryParams .addAll (
1022+ apiClient .parameterToPair ("enableContentEncodingUrlHeader" , enableContentEncodingUrlHeader ));
10151023
10161024 Map <String , String > localVarHeaderParams = new HashMap <String , String >();
10171025
@@ -1038,15 +1046,17 @@ private okhttp3.Call getFeedDocumentCall(
10381046 }
10391047
10401048 private okhttp3 .Call getFeedDocumentValidateBeforeCall (
1041- String feedDocumentId , final ProgressRequestBody .ProgressRequestListener progressRequestListener )
1049+ String feedDocumentId ,
1050+ Boolean enableContentEncodingUrlHeader ,
1051+ final ProgressRequestBody .ProgressRequestListener progressRequestListener )
10421052 throws ApiException , LWAException {
10431053 // verify the required parameter 'feedDocumentId' is set
10441054 if (feedDocumentId == null ) {
10451055 throw new ApiException (
10461056 "Missing the required parameter 'feedDocumentId' when calling getFeedDocument(Async)" );
10471057 }
10481058
1049- return getFeedDocumentCall (feedDocumentId , progressRequestListener );
1059+ return getFeedDocumentCall (feedDocumentId , enableContentEncodingUrlHeader , progressRequestListener );
10501060 }
10511061
10521062 /**
@@ -1059,14 +1069,19 @@ private okhttp3.Call getFeedDocumentValidateBeforeCall(
10591069 * API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
10601070 *
10611071 * @param feedDocumentId The identifier of the feed document. (required)
1072+ * @param enableContentEncodingUrlHeader When `true`, the Content-Encoding header on the returned URL is
1073+ * set to `gzip` instead of the default `identity` when `compressionAlgorithm` is
1074+ * `GZIP`. This allows automatic decompression by HTTP clients. (optional)
10621075 * @param restrictedDataToken Restricted Data Token (optional)
10631076 * @return FeedDocument
10641077 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
10651078 * @throws LWAException If calls to fetch LWA access token fails
10661079 */
1067- public FeedDocument getFeedDocument (String feedDocumentId , String restrictedDataToken )
1080+ public FeedDocument getFeedDocument (
1081+ String feedDocumentId , Boolean enableContentEncodingUrlHeader , String restrictedDataToken )
10681082 throws ApiException , LWAException {
1069- ApiResponse <FeedDocument > resp = getFeedDocumentWithHttpInfo (feedDocumentId , restrictedDataToken );
1083+ ApiResponse <FeedDocument > resp =
1084+ getFeedDocumentWithHttpInfo (feedDocumentId , enableContentEncodingUrlHeader , restrictedDataToken );
10701085 return resp .getData ();
10711086 }
10721087
@@ -1080,12 +1095,17 @@ public FeedDocument getFeedDocument(String feedDocumentId, String restrictedData
10801095 * API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
10811096 *
10821097 * @param feedDocumentId The identifier of the feed document. (required)
1098+ * @param enableContentEncodingUrlHeader When `true`, the Content-Encoding header on the returned URL is
1099+ * set to `gzip` instead of the default `identity` when `compressionAlgorithm` is
1100+ * `GZIP`. This allows automatic decompression by HTTP clients. (optional)
10831101 * @return FeedDocument
10841102 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
10851103 * @throws LWAException If calls to fetch LWA access token fails
10861104 */
1087- public FeedDocument getFeedDocument (String feedDocumentId ) throws ApiException , LWAException {
1088- ApiResponse <FeedDocument > resp = getFeedDocumentWithHttpInfo (feedDocumentId , null );
1105+ public FeedDocument getFeedDocument (String feedDocumentId , Boolean enableContentEncodingUrlHeader )
1106+ throws ApiException , LWAException {
1107+ ApiResponse <FeedDocument > resp =
1108+ getFeedDocumentWithHttpInfo (feedDocumentId , enableContentEncodingUrlHeader , null );
10891109 return resp .getData ();
10901110 }
10911111
@@ -1099,14 +1119,18 @@ public FeedDocument getFeedDocument(String feedDocumentId) throws ApiException,
10991119 * API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
11001120 *
11011121 * @param feedDocumentId The identifier of the feed document. (required)
1122+ * @param enableContentEncodingUrlHeader When `true`, the Content-Encoding header on the returned URL is
1123+ * set to `gzip` instead of the default `identity` when `compressionAlgorithm` is
1124+ * `GZIP`. This allows automatic decompression by HTTP clients. (optional)
11021125 * @param restrictedDataToken Restricted Data Token (optional)
11031126 * @return ApiResponse<FeedDocument>
11041127 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
11051128 * @throws LWAException If calls to fetch LWA access token fails
11061129 */
1107- public ApiResponse <FeedDocument > getFeedDocumentWithHttpInfo (String feedDocumentId , String restrictedDataToken )
1130+ public ApiResponse <FeedDocument > getFeedDocumentWithHttpInfo (
1131+ String feedDocumentId , Boolean enableContentEncodingUrlHeader , String restrictedDataToken )
11081132 throws ApiException , LWAException {
1109- okhttp3 .Call call = getFeedDocumentValidateBeforeCall (feedDocumentId , null );
1133+ okhttp3 .Call call = getFeedDocumentValidateBeforeCall (feedDocumentId , enableContentEncodingUrlHeader , null );
11101134
11111135 if (restrictedDataToken != null ) {
11121136 okhttp3 .Request request = call .request ();
@@ -1130,13 +1154,16 @@ public ApiResponse<FeedDocument> getFeedDocumentWithHttpInfo(String feedDocument
11301154 * API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
11311155 *
11321156 * @param feedDocumentId The identifier of the feed document. (required)
1157+ * @param enableContentEncodingUrlHeader When `true`, the Content-Encoding header on the returned URL is
1158+ * set to `gzip` instead of the default `identity` when `compressionAlgorithm` is
1159+ * `GZIP`. This allows automatic decompression by HTTP clients. (optional)
11331160 * @return ApiResponse<FeedDocument>
11341161 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
11351162 * @throws LWAException If calls to fetch LWA access token fails
11361163 */
1137- public ApiResponse <FeedDocument > getFeedDocumentWithHttpInfo (String feedDocumentId )
1138- throws ApiException , LWAException {
1139- return getFeedDocumentWithHttpInfo (feedDocumentId , null );
1164+ public ApiResponse <FeedDocument > getFeedDocumentWithHttpInfo (
1165+ String feedDocumentId , Boolean enableContentEncodingUrlHeader ) throws ApiException , LWAException {
1166+ return getFeedDocumentWithHttpInfo (feedDocumentId , enableContentEncodingUrlHeader , null );
11401167 }
11411168
11421169 /**
@@ -1149,14 +1176,18 @@ public ApiResponse<FeedDocument> getFeedDocumentWithHttpInfo(String feedDocument
11491176 * API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
11501177 *
11511178 * @param feedDocumentId The identifier of the feed document. (required)
1179+ * @param enableContentEncodingUrlHeader When `true`, the Content-Encoding header on the returned URL is
1180+ * set to `gzip` instead of the default `identity` when `compressionAlgorithm` is
1181+ * `GZIP`. This allows automatic decompression by HTTP clients. (optional)
11521182 * @param callback The callback to be executed when the API call finishes
11531183 * @return The request call
11541184 * @throws ApiException If fail to process the API call, e.g. serializing the request body object
11551185 * @throws LWAException If calls to fetch LWA access token fails
11561186 */
1157- public okhttp3 .Call getFeedDocumentAsync (String feedDocumentId , final ApiCallback <FeedDocument > callback )
1187+ public okhttp3 .Call getFeedDocumentAsync (
1188+ String feedDocumentId , Boolean enableContentEncodingUrlHeader , final ApiCallback <FeedDocument > callback )
11581189 throws ApiException , LWAException {
1159- return getFeedDocumentAsync (feedDocumentId , callback , null );
1190+ return getFeedDocumentAsync (feedDocumentId , enableContentEncodingUrlHeader , callback , null );
11601191 }
11611192 /**
11621193 * (asynchronously) Returns the information required for retrieving a feed document's contents. **Usage Plan:**
@@ -1168,14 +1199,20 @@ public okhttp3.Call getFeedDocumentAsync(String feedDocumentId, final ApiCallbac
11681199 * API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
11691200 *
11701201 * @param feedDocumentId The identifier of the feed document. (required)
1202+ * @param enableContentEncodingUrlHeader When `true`, the Content-Encoding header on the returned URL is
1203+ * set to `gzip` instead of the default `identity` when `compressionAlgorithm` is
1204+ * `GZIP`. This allows automatic decompression by HTTP clients. (optional)
11711205 * @param callback The callback to be executed when the API call finishes
11721206 * @param restrictedDataToken Restricted Data Token (optional)
11731207 * @return The request call
11741208 * @throws ApiException If fail to process the API call, e.g. serializing the request body object
11751209 * @throws LWAException If calls to fetch LWA access token fails
11761210 */
11771211 public okhttp3 .Call getFeedDocumentAsync (
1178- String feedDocumentId , final ApiCallback <FeedDocument > callback , String restrictedDataToken )
1212+ String feedDocumentId ,
1213+ Boolean enableContentEncodingUrlHeader ,
1214+ final ApiCallback <FeedDocument > callback ,
1215+ String restrictedDataToken )
11791216 throws ApiException , LWAException {
11801217
11811218 ProgressRequestBody .ProgressRequestListener progressRequestListener = null ;
@@ -1184,7 +1221,8 @@ public okhttp3.Call getFeedDocumentAsync(
11841221 progressRequestListener = callback ::onUploadProgress ;
11851222 }
11861223
1187- okhttp3 .Call call = getFeedDocumentValidateBeforeCall (feedDocumentId , progressRequestListener );
1224+ okhttp3 .Call call = getFeedDocumentValidateBeforeCall (
1225+ feedDocumentId , enableContentEncodingUrlHeader , progressRequestListener );
11881226
11891227 if (restrictedDataToken != null ) {
11901228 okhttp3 .Request request = call .request ();
0 commit comments