Skip to content

Commit 6e8ff43

Browse files
awsmobilesdksdhuka
andauthored
feat(aws-android-sdk-iot): update models to latest (#3054)
Co-authored-by: Saijad Dhuka <[email protected]>
1 parent 3013f83 commit 6e8ff43

13 files changed

+1092
-29
lines changed

aws-android-sdk-iot/src/main/java/com/amazonaws/services/iot/model/Action.java

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,14 @@ public class Action implements Serializable {
195195
*/
196196
private OpenSearchAction openSearch;
197197

198+
/**
199+
* <p>
200+
* The Amazon Location Service rule action sends device location updates
201+
* from an MQTT message to an Amazon Location tracker resource.
202+
* </p>
203+
*/
204+
private LocationAction location;
205+
198206
/**
199207
* <p>
200208
* Write to a DynamoDB table.
@@ -1295,6 +1303,60 @@ public Action withOpenSearch(OpenSearchAction openSearch) {
12951303
return this;
12961304
}
12971305

1306+
/**
1307+
* <p>
1308+
* The Amazon Location Service rule action sends device location updates
1309+
* from an MQTT message to an Amazon Location tracker resource.
1310+
* </p>
1311+
*
1312+
* @return <p>
1313+
* The Amazon Location Service rule action sends device location
1314+
* updates from an MQTT message to an Amazon Location tracker
1315+
* resource.
1316+
* </p>
1317+
*/
1318+
public LocationAction getLocation() {
1319+
return location;
1320+
}
1321+
1322+
/**
1323+
* <p>
1324+
* The Amazon Location Service rule action sends device location updates
1325+
* from an MQTT message to an Amazon Location tracker resource.
1326+
* </p>
1327+
*
1328+
* @param location <p>
1329+
* The Amazon Location Service rule action sends device location
1330+
* updates from an MQTT message to an Amazon Location tracker
1331+
* resource.
1332+
* </p>
1333+
*/
1334+
public void setLocation(LocationAction location) {
1335+
this.location = location;
1336+
}
1337+
1338+
/**
1339+
* <p>
1340+
* The Amazon Location Service rule action sends device location updates
1341+
* from an MQTT message to an Amazon Location tracker resource.
1342+
* </p>
1343+
* <p>
1344+
* Returns a reference to this object so that method calls can be chained
1345+
* together.
1346+
*
1347+
* @param location <p>
1348+
* The Amazon Location Service rule action sends device location
1349+
* updates from an MQTT message to an Amazon Location tracker
1350+
* resource.
1351+
* </p>
1352+
* @return A reference to this updated object so that method calls can be
1353+
* chained together.
1354+
*/
1355+
public Action withLocation(LocationAction location) {
1356+
this.location = location;
1357+
return this;
1358+
}
1359+
12981360
/**
12991361
* Returns a string representation of this object; useful for testing and
13001362
* debugging.
@@ -1349,7 +1411,9 @@ public String toString() {
13491411
if (getKafka() != null)
13501412
sb.append("kafka: " + getKafka() + ",");
13511413
if (getOpenSearch() != null)
1352-
sb.append("openSearch: " + getOpenSearch());
1414+
sb.append("openSearch: " + getOpenSearch() + ",");
1415+
if (getLocation() != null)
1416+
sb.append("location: " + getLocation());
13531417
sb.append("}");
13541418
return sb.toString();
13551419
}
@@ -1388,6 +1452,7 @@ public int hashCode() {
13881452
hashCode = prime * hashCode + ((getHttp() == null) ? 0 : getHttp().hashCode());
13891453
hashCode = prime * hashCode + ((getKafka() == null) ? 0 : getKafka().hashCode());
13901454
hashCode = prime * hashCode + ((getOpenSearch() == null) ? 0 : getOpenSearch().hashCode());
1455+
hashCode = prime * hashCode + ((getLocation() == null) ? 0 : getLocation().hashCode());
13911456
return hashCode;
13921457
}
13931458

@@ -1503,6 +1568,10 @@ public boolean equals(Object obj) {
15031568
if (other.getOpenSearch() != null
15041569
&& other.getOpenSearch().equals(this.getOpenSearch()) == false)
15051570
return false;
1571+
if (other.getLocation() == null ^ this.getLocation() == null)
1572+
return false;
1573+
if (other.getLocation() != null && other.getLocation().equals(this.getLocation()) == false)
1574+
return false;
15061575
return true;
15071576
}
15081577
}

aws-android-sdk-iot/src/main/java/com/amazonaws/services/iot/model/CreateProvisioningTemplateRequest.java

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,11 @@ public class CreateProvisioningTemplateRequest extends AmazonWebServiceRequest i
8484

8585
/**
8686
* <p>
87-
* Creates a pre-provisioning hook template.
87+
* Creates a pre-provisioning hook template. Only supports template of type
88+
* <code>FLEET_PROVISIONING</code>. For more information about provisioning
89+
* template types, see <a href=
90+
* "https://docs.aws.amazon.com/iot/latest/apireference/API_CreateProvisioningTemplate.html#iot-CreateProvisioningTemplate-request-type"
91+
* >type</a>.
8892
* </p>
8993
*/
9094
private ProvisioningHook preProvisioningHook;
@@ -417,11 +421,19 @@ public CreateProvisioningTemplateRequest withProvisioningRoleArn(String provisio
417421

418422
/**
419423
* <p>
420-
* Creates a pre-provisioning hook template.
424+
* Creates a pre-provisioning hook template. Only supports template of type
425+
* <code>FLEET_PROVISIONING</code>. For more information about provisioning
426+
* template types, see <a href=
427+
* "https://docs.aws.amazon.com/iot/latest/apireference/API_CreateProvisioningTemplate.html#iot-CreateProvisioningTemplate-request-type"
428+
* >type</a>.
421429
* </p>
422430
*
423431
* @return <p>
424-
* Creates a pre-provisioning hook template.
432+
* Creates a pre-provisioning hook template. Only supports template
433+
* of type <code>FLEET_PROVISIONING</code>. For more information
434+
* about provisioning template types, see <a href=
435+
* "https://docs.aws.amazon.com/iot/latest/apireference/API_CreateProvisioningTemplate.html#iot-CreateProvisioningTemplate-request-type"
436+
* >type</a>.
425437
* </p>
426438
*/
427439
public ProvisioningHook getPreProvisioningHook() {
@@ -430,11 +442,19 @@ public ProvisioningHook getPreProvisioningHook() {
430442

431443
/**
432444
* <p>
433-
* Creates a pre-provisioning hook template.
445+
* Creates a pre-provisioning hook template. Only supports template of type
446+
* <code>FLEET_PROVISIONING</code>. For more information about provisioning
447+
* template types, see <a href=
448+
* "https://docs.aws.amazon.com/iot/latest/apireference/API_CreateProvisioningTemplate.html#iot-CreateProvisioningTemplate-request-type"
449+
* >type</a>.
434450
* </p>
435451
*
436452
* @param preProvisioningHook <p>
437-
* Creates a pre-provisioning hook template.
453+
* Creates a pre-provisioning hook template. Only supports
454+
* template of type <code>FLEET_PROVISIONING</code>. For more
455+
* information about provisioning template types, see <a href=
456+
* "https://docs.aws.amazon.com/iot/latest/apireference/API_CreateProvisioningTemplate.html#iot-CreateProvisioningTemplate-request-type"
457+
* >type</a>.
438458
* </p>
439459
*/
440460
public void setPreProvisioningHook(ProvisioningHook preProvisioningHook) {
@@ -443,14 +463,22 @@ public void setPreProvisioningHook(ProvisioningHook preProvisioningHook) {
443463

444464
/**
445465
* <p>
446-
* Creates a pre-provisioning hook template.
466+
* Creates a pre-provisioning hook template. Only supports template of type
467+
* <code>FLEET_PROVISIONING</code>. For more information about provisioning
468+
* template types, see <a href=
469+
* "https://docs.aws.amazon.com/iot/latest/apireference/API_CreateProvisioningTemplate.html#iot-CreateProvisioningTemplate-request-type"
470+
* >type</a>.
447471
* </p>
448472
* <p>
449473
* Returns a reference to this object so that method calls can be chained
450474
* together.
451475
*
452476
* @param preProvisioningHook <p>
453-
* Creates a pre-provisioning hook template.
477+
* Creates a pre-provisioning hook template. Only supports
478+
* template of type <code>FLEET_PROVISIONING</code>. For more
479+
* information about provisioning template types, see <a href=
480+
* "https://docs.aws.amazon.com/iot/latest/apireference/API_CreateProvisioningTemplate.html#iot-CreateProvisioningTemplate-request-type"
481+
* >type</a>.
454482
* </p>
455483
* @return A reference to this updated object so that method calls can be
456484
* chained together.

aws-android-sdk-iot/src/main/java/com/amazonaws/services/iot/model/GetBehaviorModelTrainingSummariesRequest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class GetBehaviorModelTrainingSummariesRequest extends AmazonWebServiceRe
4545

4646
/**
4747
* <p>
48-
* The maximum number of results to return at one time. The default is 25.
48+
* The maximum number of results to return at one time. The default is 10.
4949
* </p>
5050
* <p>
5151
* <b>Constraints:</b><br/>
@@ -120,15 +120,15 @@ public GetBehaviorModelTrainingSummariesRequest withSecurityProfileName(
120120

121121
/**
122122
* <p>
123-
* The maximum number of results to return at one time. The default is 25.
123+
* The maximum number of results to return at one time. The default is 10.
124124
* </p>
125125
* <p>
126126
* <b>Constraints:</b><br/>
127127
* <b>Range: </b>1 - 10<br/>
128128
*
129129
* @return <p>
130130
* The maximum number of results to return at one time. The default
131-
* is 25.
131+
* is 10.
132132
* </p>
133133
*/
134134
public Integer getMaxResults() {
@@ -137,15 +137,15 @@ public Integer getMaxResults() {
137137

138138
/**
139139
* <p>
140-
* The maximum number of results to return at one time. The default is 25.
140+
* The maximum number of results to return at one time. The default is 10.
141141
* </p>
142142
* <p>
143143
* <b>Constraints:</b><br/>
144144
* <b>Range: </b>1 - 10<br/>
145145
*
146146
* @param maxResults <p>
147147
* The maximum number of results to return at one time. The
148-
* default is 25.
148+
* default is 10.
149149
* </p>
150150
*/
151151
public void setMaxResults(Integer maxResults) {
@@ -154,7 +154,7 @@ public void setMaxResults(Integer maxResults) {
154154

155155
/**
156156
* <p>
157-
* The maximum number of results to return at one time. The default is 25.
157+
* The maximum number of results to return at one time. The default is 10.
158158
* </p>
159159
* <p>
160160
* Returns a reference to this object so that method calls can be chained
@@ -165,7 +165,7 @@ public void setMaxResults(Integer maxResults) {
165165
*
166166
* @param maxResults <p>
167167
* The maximum number of results to return at one time. The
168-
* default is 25.
168+
* default is 10.
169169
* </p>
170170
* @return A reference to this updated object so that method calls can be
171171
* chained together.

0 commit comments

Comments
 (0)