Skip to content

Commit 06efa2c

Browse files
authored
feat(aws-android-sdk-location): update models to latest (#2843)
1 parent 708a1f2 commit 06efa2c

15 files changed

+374
-146
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public class CalculateRouteSummary implements Serializable {
6262
* </note>
6363
* <p>
6464
* <b>Constraints:</b><br/>
65-
* <b>Range: </b>0 - <br/>
65+
* <b>Range: </b>0.0 - <br/>
6666
*/
6767
private Double distance;
6868

@@ -83,7 +83,7 @@ public class CalculateRouteSummary implements Serializable {
8383
* </p>
8484
* <p>
8585
* <b>Constraints:</b><br/>
86-
* <b>Range: </b>0 - <br/>
86+
* <b>Range: </b>0.0 - <br/>
8787
*/
8888
private Double durationSeconds;
8989

@@ -299,7 +299,7 @@ public CalculateRouteSummary withDataSource(String dataSource) {
299299
* </note>
300300
* <p>
301301
* <b>Constraints:</b><br/>
302-
* <b>Range: </b>0 - <br/>
302+
* <b>Range: </b>0.0 - <br/>
303303
*
304304
* @return <p>
305305
* The total distance covered by the route. The sum of the distance
@@ -332,7 +332,7 @@ public Double getDistance() {
332332
* </note>
333333
* <p>
334334
* <b>Constraints:</b><br/>
335-
* <b>Range: </b>0 - <br/>
335+
* <b>Range: </b>0.0 - <br/>
336336
*
337337
* @param distance <p>
338338
* The total distance covered by the route. The sum of the
@@ -368,7 +368,7 @@ public void setDistance(Double distance) {
368368
* together.
369369
* <p>
370370
* <b>Constraints:</b><br/>
371-
* <b>Range: </b>0 - <br/>
371+
* <b>Range: </b>0.0 - <br/>
372372
*
373373
* @param distance <p>
374374
* The total distance covered by the route. The sum of the
@@ -494,7 +494,7 @@ public CalculateRouteSummary withDistanceUnit(DistanceUnit distanceUnit) {
494494
* </p>
495495
* <p>
496496
* <b>Constraints:</b><br/>
497-
* <b>Range: </b>0 - <br/>
497+
* <b>Range: </b>0.0 - <br/>
498498
*
499499
* @return <p>
500500
* The total travel time for the route measured in seconds. The sum
@@ -512,7 +512,7 @@ public Double getDurationSeconds() {
512512
* </p>
513513
* <p>
514514
* <b>Constraints:</b><br/>
515-
* <b>Range: </b>0 - <br/>
515+
* <b>Range: </b>0.0 - <br/>
516516
*
517517
* @param durationSeconds <p>
518518
* The total travel time for the route measured in seconds. The
@@ -533,7 +533,7 @@ public void setDurationSeconds(Double durationSeconds) {
533533
* together.
534534
* <p>
535535
* <b>Constraints:</b><br/>
536-
* <b>Range: </b>0 - <br/>
536+
* <b>Range: </b>0.0 - <br/>
537537
*
538538
* @param durationSeconds <p>
539539
* The total travel time for the route measured in seconds. The

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class CalculateRouteTruckModeOptions implements Serializable {
3939

4040
/**
4141
* <p>
42-
* Avoids ferries when calculating routes.
42+
* Avoids tolls when calculating routes.
4343
* </p>
4444
* <p>
4545
* Default Value: <code>false</code>
@@ -176,7 +176,7 @@ public CalculateRouteTruckModeOptions withAvoidFerries(Boolean avoidFerries) {
176176

177177
/**
178178
* <p>
179-
* Avoids ferries when calculating routes.
179+
* Avoids tolls when calculating routes.
180180
* </p>
181181
* <p>
182182
* Default Value: <code>false</code>
@@ -186,7 +186,7 @@ public CalculateRouteTruckModeOptions withAvoidFerries(Boolean avoidFerries) {
186186
* </p>
187187
*
188188
* @return <p>
189-
* Avoids ferries when calculating routes.
189+
* Avoids tolls when calculating routes.
190190
* </p>
191191
* <p>
192192
* Default Value: <code>false</code>
@@ -201,7 +201,7 @@ public Boolean isAvoidTolls() {
201201

202202
/**
203203
* <p>
204-
* Avoids ferries when calculating routes.
204+
* Avoids tolls when calculating routes.
205205
* </p>
206206
* <p>
207207
* Default Value: <code>false</code>
@@ -211,7 +211,7 @@ public Boolean isAvoidTolls() {
211211
* </p>
212212
*
213213
* @return <p>
214-
* Avoids ferries when calculating routes.
214+
* Avoids tolls when calculating routes.
215215
* </p>
216216
* <p>
217217
* Default Value: <code>false</code>
@@ -226,7 +226,7 @@ public Boolean getAvoidTolls() {
226226

227227
/**
228228
* <p>
229-
* Avoids ferries when calculating routes.
229+
* Avoids tolls when calculating routes.
230230
* </p>
231231
* <p>
232232
* Default Value: <code>false</code>
@@ -236,7 +236,7 @@ public Boolean getAvoidTolls() {
236236
* </p>
237237
*
238238
* @param avoidTolls <p>
239-
* Avoids ferries when calculating routes.
239+
* Avoids tolls when calculating routes.
240240
* </p>
241241
* <p>
242242
* Default Value: <code>false</code>
@@ -251,7 +251,7 @@ public void setAvoidTolls(Boolean avoidTolls) {
251251

252252
/**
253253
* <p>
254-
* Avoids ferries when calculating routes.
254+
* Avoids tolls when calculating routes.
255255
* </p>
256256
* <p>
257257
* Default Value: <code>false</code>
@@ -264,7 +264,7 @@ public void setAvoidTolls(Boolean avoidTolls) {
264264
* together.
265265
*
266266
* @param avoidTolls <p>
267-
* Avoids ferries when calculating routes.
267+
* Avoids tolls when calculating routes.
268268
* </p>
269269
* <p>
270270
* Default Value: <code>false</code>

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

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public class DevicePositionUpdate implements Serializable {
4444
/**
4545
* <p>
4646
* The latest device position defined in <a
47-
* href="https://earth-info.nga.mil/GandG/wgs84/index.html">WGS 84</a>
48-
* format: <code>[X or longitude, Y or latitude]</code>.
47+
* href="https://earth-info.nga.mil/index.php?dir=wgs84&amp;action=wgs84"
48+
* >WGS 84</a> format: <code>[X or longitude, Y or latitude]</code>.
4949
* </p>
5050
*/
5151
private java.util.List<Double> position;
@@ -176,14 +176,14 @@ public DevicePositionUpdate withDeviceId(String deviceId) {
176176
/**
177177
* <p>
178178
* The latest device position defined in <a
179-
* href="https://earth-info.nga.mil/GandG/wgs84/index.html">WGS 84</a>
180-
* format: <code>[X or longitude, Y or latitude]</code>.
179+
* href="https://earth-info.nga.mil/index.php?dir=wgs84&amp;action=wgs84"
180+
* >WGS 84</a> format: <code>[X or longitude, Y or latitude]</code>.
181181
* </p>
182182
*
183183
* @return <p>
184-
* The latest device position defined in <a
185-
* href="https://earth-info.nga.mil/GandG/wgs84/index.html">WGS
186-
* 84</a> format: <code>[X or longitude, Y or latitude]</code>.
184+
* The latest device position defined in <a href=
185+
* "https://earth-info.nga.mil/index.php?dir=wgs84&amp;action=wgs84"
186+
* >WGS 84</a> format: <code>[X or longitude, Y or latitude]</code>.
187187
* </p>
188188
*/
189189
public java.util.List<Double> getPosition() {
@@ -193,14 +193,15 @@ public java.util.List<Double> getPosition() {
193193
/**
194194
* <p>
195195
* The latest device position defined in <a
196-
* href="https://earth-info.nga.mil/GandG/wgs84/index.html">WGS 84</a>
197-
* format: <code>[X or longitude, Y or latitude]</code>.
196+
* href="https://earth-info.nga.mil/index.php?dir=wgs84&amp;action=wgs84"
197+
* >WGS 84</a> format: <code>[X or longitude, Y or latitude]</code>.
198198
* </p>
199199
*
200200
* @param position <p>
201-
* The latest device position defined in <a
202-
* href="https://earth-info.nga.mil/GandG/wgs84/index.html">WGS
203-
* 84</a> format: <code>[X or longitude, Y or latitude]</code>.
201+
* The latest device position defined in <a href=
202+
* "https://earth-info.nga.mil/index.php?dir=wgs84&amp;action=wgs84"
203+
* >WGS 84</a> format:
204+
* <code>[X or longitude, Y or latitude]</code>.
204205
* </p>
205206
*/
206207
public void setPosition(java.util.Collection<Double> position) {
@@ -215,17 +216,18 @@ public void setPosition(java.util.Collection<Double> position) {
215216
/**
216217
* <p>
217218
* The latest device position defined in <a
218-
* href="https://earth-info.nga.mil/GandG/wgs84/index.html">WGS 84</a>
219-
* format: <code>[X or longitude, Y or latitude]</code>.
219+
* href="https://earth-info.nga.mil/index.php?dir=wgs84&amp;action=wgs84"
220+
* >WGS 84</a> format: <code>[X or longitude, Y or latitude]</code>.
220221
* </p>
221222
* <p>
222223
* Returns a reference to this object so that method calls can be chained
223224
* together.
224225
*
225226
* @param position <p>
226-
* The latest device position defined in <a
227-
* href="https://earth-info.nga.mil/GandG/wgs84/index.html">WGS
228-
* 84</a> format: <code>[X or longitude, Y or latitude]</code>.
227+
* The latest device position defined in <a href=
228+
* "https://earth-info.nga.mil/index.php?dir=wgs84&amp;action=wgs84"
229+
* >WGS 84</a> format:
230+
* <code>[X or longitude, Y or latitude]</code>.
229231
* </p>
230232
* @return A reference to this updated object so that method calls can be
231233
* chained together.
@@ -243,17 +245,18 @@ public DevicePositionUpdate withPosition(Double... position) {
243245
/**
244246
* <p>
245247
* The latest device position defined in <a
246-
* href="https://earth-info.nga.mil/GandG/wgs84/index.html">WGS 84</a>
247-
* format: <code>[X or longitude, Y or latitude]</code>.
248+
* href="https://earth-info.nga.mil/index.php?dir=wgs84&amp;action=wgs84"
249+
* >WGS 84</a> format: <code>[X or longitude, Y or latitude]</code>.
248250
* </p>
249251
* <p>
250252
* Returns a reference to this object so that method calls can be chained
251253
* together.
252254
*
253255
* @param position <p>
254-
* The latest device position defined in <a
255-
* href="https://earth-info.nga.mil/GandG/wgs84/index.html">WGS
256-
* 84</a> format: <code>[X or longitude, Y or latitude]</code>.
256+
* The latest device position defined in <a href=
257+
* "https://earth-info.nga.mil/index.php?dir=wgs84&amp;action=wgs84"
258+
* >WGS 84</a> format:
259+
* <code>[X or longitude, Y or latitude]</code>.
257260
* </p>
258261
* @return A reference to this updated object so that method calls can be
259262
* chained together.

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

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,20 @@ public class GetDevicePositionHistoryRequest extends AmazonWebServiceRequest imp
6464
*/
6565
private java.util.Date endTimeExclusive;
6666

67+
/**
68+
* <p>
69+
* An optional limit for the number of device positions returned in a single
70+
* call.
71+
* </p>
72+
* <p>
73+
* Default value: <code>100</code>
74+
* </p>
75+
* <p>
76+
* <b>Constraints:</b><br/>
77+
* <b>Range: </b>1 - 100<br/>
78+
*/
79+
private Integer maxResults;
80+
6781
/**
6882
* <p>
6983
* The pagination token specifying which page of results to return in the
@@ -297,6 +311,84 @@ public GetDevicePositionHistoryRequest withEndTimeExclusive(java.util.Date endTi
297311
return this;
298312
}
299313

314+
/**
315+
* <p>
316+
* An optional limit for the number of device positions returned in a single
317+
* call.
318+
* </p>
319+
* <p>
320+
* Default value: <code>100</code>
321+
* </p>
322+
* <p>
323+
* <b>Constraints:</b><br/>
324+
* <b>Range: </b>1 - 100<br/>
325+
*
326+
* @return <p>
327+
* An optional limit for the number of device positions returned in
328+
* a single call.
329+
* </p>
330+
* <p>
331+
* Default value: <code>100</code>
332+
* </p>
333+
*/
334+
public Integer getMaxResults() {
335+
return maxResults;
336+
}
337+
338+
/**
339+
* <p>
340+
* An optional limit for the number of device positions returned in a single
341+
* call.
342+
* </p>
343+
* <p>
344+
* Default value: <code>100</code>
345+
* </p>
346+
* <p>
347+
* <b>Constraints:</b><br/>
348+
* <b>Range: </b>1 - 100<br/>
349+
*
350+
* @param maxResults <p>
351+
* An optional limit for the number of device positions returned
352+
* in a single call.
353+
* </p>
354+
* <p>
355+
* Default value: <code>100</code>
356+
* </p>
357+
*/
358+
public void setMaxResults(Integer maxResults) {
359+
this.maxResults = maxResults;
360+
}
361+
362+
/**
363+
* <p>
364+
* An optional limit for the number of device positions returned in a single
365+
* call.
366+
* </p>
367+
* <p>
368+
* Default value: <code>100</code>
369+
* </p>
370+
* <p>
371+
* Returns a reference to this object so that method calls can be chained
372+
* together.
373+
* <p>
374+
* <b>Constraints:</b><br/>
375+
* <b>Range: </b>1 - 100<br/>
376+
*
377+
* @param maxResults <p>
378+
* An optional limit for the number of device positions returned
379+
* in a single call.
380+
* </p>
381+
* <p>
382+
* Default value: <code>100</code>
383+
* </p>
384+
* @return A reference to this updated object so that method calls can be
385+
* chained together.
386+
*/
387+
public GetDevicePositionHistoryRequest withMaxResults(Integer maxResults) {
388+
this.maxResults = maxResults;
389+
return this;
390+
}
391+
300392
/**
301393
* <p>
302394
* The pagination token specifying which page of results to return in the
@@ -588,6 +680,8 @@ public String toString() {
588680
sb.append("DeviceId: " + getDeviceId() + ",");
589681
if (getEndTimeExclusive() != null)
590682
sb.append("EndTimeExclusive: " + getEndTimeExclusive() + ",");
683+
if (getMaxResults() != null)
684+
sb.append("MaxResults: " + getMaxResults() + ",");
591685
if (getNextToken() != null)
592686
sb.append("NextToken: " + getNextToken() + ",");
593687
if (getStartTimeInclusive() != null)
@@ -606,6 +700,7 @@ public int hashCode() {
606700
hashCode = prime * hashCode + ((getDeviceId() == null) ? 0 : getDeviceId().hashCode());
607701
hashCode = prime * hashCode
608702
+ ((getEndTimeExclusive() == null) ? 0 : getEndTimeExclusive().hashCode());
703+
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
609704
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
610705
hashCode = prime * hashCode
611706
+ ((getStartTimeInclusive() == null) ? 0 : getStartTimeInclusive().hashCode());
@@ -634,6 +729,11 @@ public boolean equals(Object obj) {
634729
if (other.getEndTimeExclusive() != null
635730
&& other.getEndTimeExclusive().equals(this.getEndTimeExclusive()) == false)
636731
return false;
732+
if (other.getMaxResults() == null ^ this.getMaxResults() == null)
733+
return false;
734+
if (other.getMaxResults() != null
735+
&& other.getMaxResults().equals(this.getMaxResults()) == false)
736+
return false;
637737
if (other.getNextToken() == null ^ this.getNextToken() == null)
638738
return false;
639739
if (other.getNextToken() != null

0 commit comments

Comments
 (0)