Skip to content

Commit a21e3be

Browse files
authored
feat(aws-android-sdk-location): update models to latest (#3020)
1 parent f614ee2 commit a21e3be

22 files changed

+1436
-36
lines changed

aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/AmazonLocation.java

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,6 +1188,54 @@ GetMapStyleDescriptorResult getMapStyleDescriptor(
11881188
GetMapTileResult getMapTile(GetMapTileRequest getMapTileRequest) throws AmazonClientException,
11891189
AmazonServiceException;
11901190

1191+
/**
1192+
* <p>
1193+
* Finds a place by its unique ID. A <code>PlaceId</code> is returned by
1194+
* other search operations.
1195+
* </p>
1196+
* <note>
1197+
* <p>
1198+
* A PlaceId is valid only if all of the following are the same in the
1199+
* original search request and the call to <code>GetPlace</code>.
1200+
* </p>
1201+
* <ul>
1202+
* <li>
1203+
* <p>
1204+
* Customer AWS account
1205+
* </p>
1206+
* </li>
1207+
* <li>
1208+
* <p>
1209+
* AWS Region
1210+
* </p>
1211+
* </li>
1212+
* <li>
1213+
* <p>
1214+
* Data provider specified in the place index resource
1215+
* </p>
1216+
* </li>
1217+
* </ul>
1218+
* </note>
1219+
*
1220+
* @param getPlaceRequest
1221+
* @return getPlaceResult The response from the GetPlace service method, as
1222+
* returned by AWS Location service.
1223+
* @throws InternalServerException
1224+
* @throws ResourceNotFoundException
1225+
* @throws AccessDeniedException
1226+
* @throws ValidationException
1227+
* @throws ThrottlingException
1228+
* @throws AmazonClientException If any internal errors are encountered
1229+
* inside the client while attempting to make the request or
1230+
* handle the response. For example if a network connection is
1231+
* not available.
1232+
* @throws AmazonServiceException If an error response is returned by AWS
1233+
* Location service indicating either a problem with the data in
1234+
* the request, or a server side issue.
1235+
*/
1236+
GetPlaceResult getPlace(GetPlaceRequest getPlaceRequest) throws AmazonClientException,
1237+
AmazonServiceException;
1238+
11911239
/**
11921240
* <p>
11931241
* A batch request to retrieve all device positions.

aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/AmazonLocationClient.java

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2305,6 +2305,80 @@ public GetMapTileResult getMapTile(GetMapTileRequest getMapTileRequest)
23052305
}
23062306
}
23072307

2308+
/**
2309+
* <p>
2310+
* Finds a place by its unique ID. A <code>PlaceId</code> is returned by
2311+
* other search operations.
2312+
* </p>
2313+
* <note>
2314+
* <p>
2315+
* A PlaceId is valid only if all of the following are the same in the
2316+
* original search request and the call to <code>GetPlace</code>.
2317+
* </p>
2318+
* <ul>
2319+
* <li>
2320+
* <p>
2321+
* Customer AWS account
2322+
* </p>
2323+
* </li>
2324+
* <li>
2325+
* <p>
2326+
* AWS Region
2327+
* </p>
2328+
* </li>
2329+
* <li>
2330+
* <p>
2331+
* Data provider specified in the place index resource
2332+
* </p>
2333+
* </li>
2334+
* </ul>
2335+
* </note>
2336+
*
2337+
* @param getPlaceRequest
2338+
* @return getPlaceResult The response from the GetPlace service method, as
2339+
* returned by AWS Location service.
2340+
* @throws InternalServerException
2341+
* @throws ResourceNotFoundException
2342+
* @throws AccessDeniedException
2343+
* @throws ValidationException
2344+
* @throws ThrottlingException
2345+
* @throws AmazonClientException If any internal errors are encountered
2346+
* inside the client while attempting to make the request or
2347+
* handle the response. For example if a network connection is
2348+
* not available.
2349+
* @throws AmazonServiceException If an error response is returned by AWS
2350+
* Location service indicating either a problem with the data in
2351+
* the request, or a server side issue.
2352+
*/
2353+
public GetPlaceResult getPlace(GetPlaceRequest getPlaceRequest)
2354+
throws AmazonServiceException, AmazonClientException {
2355+
ExecutionContext executionContext = createExecutionContext(getPlaceRequest);
2356+
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
2357+
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
2358+
Request<GetPlaceRequest> request = null;
2359+
Response<GetPlaceResult> response = null;
2360+
try {
2361+
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
2362+
try {
2363+
request = new GetPlaceRequestMarshaller().marshall(getPlaceRequest);
2364+
// Binds the request metrics to the current request.
2365+
request.setAWSRequestMetrics(awsRequestMetrics);
2366+
} finally {
2367+
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
2368+
}
2369+
Unmarshaller<GetPlaceResult, JsonUnmarshallerContext> unmarshaller = new GetPlaceResultJsonUnmarshaller();
2370+
JsonResponseHandler<GetPlaceResult> responseHandler = new JsonResponseHandler<GetPlaceResult>(
2371+
unmarshaller);
2372+
2373+
response = invoke(request, responseHandler, executionContext);
2374+
2375+
return response.getAwsResponse();
2376+
} finally {
2377+
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
2378+
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
2379+
}
2380+
}
2381+
23082382
/**
23092383
* <p>
23102384
* A batch request to retrieve all device positions.

aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/CreateMapResult.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public class CreateMapResult implements Serializable {
4444
* <b>Constraints:</b><br/>
4545
* <b>Length: </b>0 - 1600<br/>
4646
* <b>Pattern:
47-
* </b>^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-
48-
* 9]+)*)?){2}:([^/].*)?$<br/>
47+
* </b>^arn(:[a-z0-9]+([.-][a-z0-9]+)*):geo(:([a-z0-9]+([.-][a-z0
48+
* -9]+)*))(:[0-9]+):((\*)|([-a-z]+[/][*-._\w]+))$<br/>
4949
*/
5050
private String mapArn;
5151

@@ -136,8 +136,8 @@ public CreateMapResult withCreateTime(java.util.Date createTime) {
136136
* <b>Constraints:</b><br/>
137137
* <b>Length: </b>0 - 1600<br/>
138138
* <b>Pattern:
139-
* </b>^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-
140-
* 9]+)*)?){2}:([^/].*)?$<br/>
139+
* </b>^arn(:[a-z0-9]+([.-][a-z0-9]+)*):geo(:([a-z0-9]+([.-][a-z0
140+
* -9]+)*))(:[0-9]+):((\*)|([-a-z]+[/][*-._\w]+))$<br/>
141141
*
142142
* @return <p>
143143
* The Amazon Resource Name (ARN) for the map resource. Used to
@@ -173,8 +173,8 @@ public String getMapArn() {
173173
* <b>Constraints:</b><br/>
174174
* <b>Length: </b>0 - 1600<br/>
175175
* <b>Pattern:
176-
* </b>^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-
177-
* 9]+)*)?){2}:([^/].*)?$<br/>
176+
* </b>^arn(:[a-z0-9]+([.-][a-z0-9]+)*):geo(:([a-z0-9]+([.-][a-z0
177+
* -9]+)*))(:[0-9]+):((\*)|([-a-z]+[/][*-._\w]+))$<br/>
178178
*
179179
* @param mapArn <p>
180180
* The Amazon Resource Name (ARN) for the map resource. Used to
@@ -213,8 +213,8 @@ public void setMapArn(String mapArn) {
213213
* <b>Constraints:</b><br/>
214214
* <b>Length: </b>0 - 1600<br/>
215215
* <b>Pattern:
216-
* </b>^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-
217-
* 9]+)*)?){2}:([^/].*)?$<br/>
216+
* </b>^arn(:[a-z0-9]+([.-][a-z0-9]+)*):geo(:([a-z0-9]+([.-][a-z0
217+
* -9]+)*))(:[0-9]+):((\*)|([-a-z]+[/][*-._\w]+))$<br/>
218218
*
219219
* @param mapArn <p>
220220
* The Amazon Resource Name (ARN) for the map resource. Used to

aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/DescribeMapResult.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ public class DescribeMapResult implements Serializable {
6868
* <b>Constraints:</b><br/>
6969
* <b>Length: </b>0 - 1600<br/>
7070
* <b>Pattern:
71-
* </b>^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-
72-
* 9]+)*)?){2}:([^/].*)?$<br/>
71+
* </b>^arn(:[a-z0-9]+([.-][a-z0-9]+)*):geo(:([a-z0-9]+([.-][a-z0
72+
* -9]+)*))(:[0-9]+):((\*)|([-a-z]+[/][*-._\w]+))$<br/>
7373
*/
7474
private String mapArn;
7575

@@ -334,8 +334,8 @@ public DescribeMapResult withDescription(String description) {
334334
* <b>Constraints:</b><br/>
335335
* <b>Length: </b>0 - 1600<br/>
336336
* <b>Pattern:
337-
* </b>^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-
338-
* 9]+)*)?){2}:([^/].*)?$<br/>
337+
* </b>^arn(:[a-z0-9]+([.-][a-z0-9]+)*):geo(:([a-z0-9]+([.-][a-z0
338+
* -9]+)*))(:[0-9]+):((\*)|([-a-z]+[/][*-._\w]+))$<br/>
339339
*
340340
* @return <p>
341341
* The Amazon Resource Name (ARN) for the map resource. Used to
@@ -371,8 +371,8 @@ public String getMapArn() {
371371
* <b>Constraints:</b><br/>
372372
* <b>Length: </b>0 - 1600<br/>
373373
* <b>Pattern:
374-
* </b>^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-
375-
* 9]+)*)?){2}:([^/].*)?$<br/>
374+
* </b>^arn(:[a-z0-9]+([.-][a-z0-9]+)*):geo(:([a-z0-9]+([.-][a-z0
375+
* -9]+)*))(:[0-9]+):((\*)|([-a-z]+[/][*-._\w]+))$<br/>
376376
*
377377
* @param mapArn <p>
378378
* The Amazon Resource Name (ARN) for the map resource. Used to
@@ -411,8 +411,8 @@ public void setMapArn(String mapArn) {
411411
* <b>Constraints:</b><br/>
412412
* <b>Length: </b>0 - 1600<br/>
413413
* <b>Pattern:
414-
* </b>^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-
415-
* 9]+)*)?){2}:([^/].*)?$<br/>
414+
* </b>^arn(:[a-z0-9]+([.-][a-z0-9]+)*):geo(:([a-z0-9]+([.-][a-z0
415+
* -9]+)*))(:[0-9]+):((\*)|([-a-z]+[/][*-._\w]+))$<br/>
416416
*
417417
* @param mapArn <p>
418418
* The Amazon Resource Name (ARN) for the map resource. Used to

aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/GetMapSpritesRequest.java

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public class GetMapSpritesRequest extends AmazonWebServiceRequest implements Ser
4545
* </li>
4646
* </ul>
4747
* <p>
48-
* For the JSON document contain image offsets. Use the following file names:
48+
* For the JSON document containing image offsets. Use the following file
49+
* names:
4950
* </p>
5051
* <ul>
5152
* <li>
@@ -94,7 +95,8 @@ public class GetMapSpritesRequest extends AmazonWebServiceRequest implements Ser
9495
* </li>
9596
* </ul>
9697
* <p>
97-
* For the JSON document contain image offsets. Use the following file names:
98+
* For the JSON document containing image offsets. Use the following file
99+
* names:
98100
* </p>
99101
* <ul>
100102
* <li>
@@ -129,7 +131,7 @@ public class GetMapSpritesRequest extends AmazonWebServiceRequest implements Ser
129131
* </li>
130132
* </ul>
131133
* <p>
132-
* For the JSON document contain image offsets. Use the following
134+
* For the JSON document containing image offsets. Use the following
133135
* file names:
134136
* </p>
135137
* <ul>
@@ -167,7 +169,8 @@ public String getFileName() {
167169
* </li>
168170
* </ul>
169171
* <p>
170-
* For the JSON document contain image offsets. Use the following file names:
172+
* For the JSON document containing image offsets. Use the following file
173+
* names:
171174
* </p>
172175
* <ul>
173176
* <li>
@@ -202,8 +205,8 @@ public String getFileName() {
202205
* </li>
203206
* </ul>
204207
* <p>
205-
* For the JSON document contain image offsets. Use the following
206-
* file names:
208+
* For the JSON document containing image offsets. Use the
209+
* following file names:
207210
* </p>
208211
* <ul>
209212
* <li>
@@ -240,7 +243,8 @@ public void setFileName(String fileName) {
240243
* </li>
241244
* </ul>
242245
* <p>
243-
* For the JSON document contain image offsets. Use the following file names:
246+
* For the JSON document containing image offsets. Use the following file
247+
* names:
244248
* </p>
245249
* <ul>
246250
* <li>
@@ -278,8 +282,8 @@ public void setFileName(String fileName) {
278282
* </li>
279283
* </ul>
280284
* <p>
281-
* For the JSON document contain image offsets. Use the following
282-
* file names:
285+
* For the JSON document containing image offsets. Use the
286+
* following file names:
283287
* </p>
284288
* <ul>
285289
* <li>

0 commit comments

Comments
 (0)