Skip to content

Commit bf9c4d3

Browse files
committed
feat(aws-android-sdk-iot): update models to latest
1 parent 8cc3494 commit bf9c4d3

File tree

148 files changed

+17878
-647
lines changed

Some content is hidden

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

148 files changed

+17878
-647
lines changed

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

Lines changed: 289 additions & 7 deletions
Large diffs are not rendered by default.

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

Lines changed: 590 additions & 7 deletions
Large diffs are not rendered by default.

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

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,14 @@ public class Action implements Serializable {
170170
*/
171171
private HttpAction http;
172172

173+
/**
174+
* <p>
175+
* Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon
176+
* MSK) or self-managed Apache Kafka cluster.
177+
* </p>
178+
*/
179+
private KafkaAction kafka;
180+
173181
/**
174182
* <p>
175183
* Write to a DynamoDB table.
@@ -1112,6 +1120,57 @@ public Action withHttp(HttpAction http) {
11121120
return this;
11131121
}
11141122

1123+
/**
1124+
* <p>
1125+
* Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon
1126+
* MSK) or self-managed Apache Kafka cluster.
1127+
* </p>
1128+
*
1129+
* @return <p>
1130+
* Send messages to an Amazon Managed Streaming for Apache Kafka
1131+
* (Amazon MSK) or self-managed Apache Kafka cluster.
1132+
* </p>
1133+
*/
1134+
public KafkaAction getKafka() {
1135+
return kafka;
1136+
}
1137+
1138+
/**
1139+
* <p>
1140+
* Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon
1141+
* MSK) or self-managed Apache Kafka cluster.
1142+
* </p>
1143+
*
1144+
* @param kafka <p>
1145+
* Send messages to an Amazon Managed Streaming for Apache Kafka
1146+
* (Amazon MSK) or self-managed Apache Kafka cluster.
1147+
* </p>
1148+
*/
1149+
public void setKafka(KafkaAction kafka) {
1150+
this.kafka = kafka;
1151+
}
1152+
1153+
/**
1154+
* <p>
1155+
* Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon
1156+
* MSK) or self-managed Apache Kafka cluster.
1157+
* </p>
1158+
* <p>
1159+
* Returns a reference to this object so that method calls can be chained
1160+
* together.
1161+
*
1162+
* @param kafka <p>
1163+
* Send messages to an Amazon Managed Streaming for Apache Kafka
1164+
* (Amazon MSK) or self-managed Apache Kafka cluster.
1165+
* </p>
1166+
* @return A reference to this updated object so that method calls can be
1167+
* chained together.
1168+
*/
1169+
public Action withKafka(KafkaAction kafka) {
1170+
this.kafka = kafka;
1171+
return this;
1172+
}
1173+
11151174
/**
11161175
* Returns a string representation of this object; useful for testing and
11171176
* debugging.
@@ -1162,7 +1221,9 @@ public String toString() {
11621221
if (getTimestream() != null)
11631222
sb.append("timestream: " + getTimestream() + ",");
11641223
if (getHttp() != null)
1165-
sb.append("http: " + getHttp());
1224+
sb.append("http: " + getHttp() + ",");
1225+
if (getKafka() != null)
1226+
sb.append("kafka: " + getKafka());
11661227
sb.append("}");
11671228
return sb.toString();
11681229
}
@@ -1199,6 +1260,7 @@ public int hashCode() {
11991260
+ ((getStepFunctions() == null) ? 0 : getStepFunctions().hashCode());
12001261
hashCode = prime * hashCode + ((getTimestream() == null) ? 0 : getTimestream().hashCode());
12011262
hashCode = prime * hashCode + ((getHttp() == null) ? 0 : getHttp().hashCode());
1263+
hashCode = prime * hashCode + ((getKafka() == null) ? 0 : getKafka().hashCode());
12021264
return hashCode;
12031265
}
12041266

@@ -1305,6 +1367,10 @@ public boolean equals(Object obj) {
13051367
return false;
13061368
if (other.getHttp() != null && other.getHttp().equals(this.getHttp()) == false)
13071369
return false;
1370+
if (other.getKafka() == null ^ this.getKafka() == null)
1371+
return false;
1372+
if (other.getKafka() != null && other.getKafka().equals(this.getKafka()) == false)
1373+
return false;
13081374
return true;
13091375
}
13101376
}

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

Lines changed: 90 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class ActiveViolation implements Serializable {
4747

4848
/**
4949
* <p>
50-
* The security profile whose behavior is in violation.
50+
* The security profile with the behavior is in violation.
5151
* </p>
5252
* <p>
5353
* <b>Constraints:</b><br/>
@@ -58,19 +58,26 @@ public class ActiveViolation implements Serializable {
5858

5959
/**
6060
* <p>
61-
* The behavior which is being violated.
61+
* The behavior that is being violated.
6262
* </p>
6363
*/
6464
private Behavior behavior;
6565

6666
/**
6767
* <p>
68-
* The value of the metric (the measurement) which caused the most recent
68+
* The value of the metric (the measurement) that caused the most recent
6969
* violation.
7070
* </p>
7171
*/
7272
private MetricValue lastViolationValue;
7373

74+
/**
75+
* <p>
76+
* The details of a violation event.
77+
* </p>
78+
*/
79+
private ViolationEventAdditionalInfo violationEventAdditionalInfo;
80+
7481
/**
7582
* <p>
7683
* The time the most recent violation occurred.
@@ -198,15 +205,15 @@ public ActiveViolation withThingName(String thingName) {
198205

199206
/**
200207
* <p>
201-
* The security profile whose behavior is in violation.
208+
* The security profile with the behavior is in violation.
202209
* </p>
203210
* <p>
204211
* <b>Constraints:</b><br/>
205212
* <b>Length: </b>1 - 128<br/>
206213
* <b>Pattern: </b>[a-zA-Z0-9:_-]+<br/>
207214
*
208215
* @return <p>
209-
* The security profile whose behavior is in violation.
216+
* The security profile with the behavior is in violation.
210217
* </p>
211218
*/
212219
public String getSecurityProfileName() {
@@ -215,15 +222,15 @@ public String getSecurityProfileName() {
215222

216223
/**
217224
* <p>
218-
* The security profile whose behavior is in violation.
225+
* The security profile with the behavior is in violation.
219226
* </p>
220227
* <p>
221228
* <b>Constraints:</b><br/>
222229
* <b>Length: </b>1 - 128<br/>
223230
* <b>Pattern: </b>[a-zA-Z0-9:_-]+<br/>
224231
*
225232
* @param securityProfileName <p>
226-
* The security profile whose behavior is in violation.
233+
* The security profile with the behavior is in violation.
227234
* </p>
228235
*/
229236
public void setSecurityProfileName(String securityProfileName) {
@@ -232,7 +239,7 @@ public void setSecurityProfileName(String securityProfileName) {
232239

233240
/**
234241
* <p>
235-
* The security profile whose behavior is in violation.
242+
* The security profile with the behavior is in violation.
236243
* </p>
237244
* <p>
238245
* Returns a reference to this object so that method calls can be chained
@@ -243,7 +250,7 @@ public void setSecurityProfileName(String securityProfileName) {
243250
* <b>Pattern: </b>[a-zA-Z0-9:_-]+<br/>
244251
*
245252
* @param securityProfileName <p>
246-
* The security profile whose behavior is in violation.
253+
* The security profile with the behavior is in violation.
247254
* </p>
248255
* @return A reference to this updated object so that method calls can be
249256
* chained together.
@@ -255,11 +262,11 @@ public ActiveViolation withSecurityProfileName(String securityProfileName) {
255262

256263
/**
257264
* <p>
258-
* The behavior which is being violated.
265+
* The behavior that is being violated.
259266
* </p>
260267
*
261268
* @return <p>
262-
* The behavior which is being violated.
269+
* The behavior that is being violated.
263270
* </p>
264271
*/
265272
public Behavior getBehavior() {
@@ -268,11 +275,11 @@ public Behavior getBehavior() {
268275

269276
/**
270277
* <p>
271-
* The behavior which is being violated.
278+
* The behavior that is being violated.
272279
* </p>
273280
*
274281
* @param behavior <p>
275-
* The behavior which is being violated.
282+
* The behavior that is being violated.
276283
* </p>
277284
*/
278285
public void setBehavior(Behavior behavior) {
@@ -281,14 +288,14 @@ public void setBehavior(Behavior behavior) {
281288

282289
/**
283290
* <p>
284-
* The behavior which is being violated.
291+
* The behavior that is being violated.
285292
* </p>
286293
* <p>
287294
* Returns a reference to this object so that method calls can be chained
288295
* together.
289296
*
290297
* @param behavior <p>
291-
* The behavior which is being violated.
298+
* The behavior that is being violated.
292299
* </p>
293300
* @return A reference to this updated object so that method calls can be
294301
* chained together.
@@ -300,12 +307,12 @@ public ActiveViolation withBehavior(Behavior behavior) {
300307

301308
/**
302309
* <p>
303-
* The value of the metric (the measurement) which caused the most recent
310+
* The value of the metric (the measurement) that caused the most recent
304311
* violation.
305312
* </p>
306313
*
307314
* @return <p>
308-
* The value of the metric (the measurement) which caused the most
315+
* The value of the metric (the measurement) that caused the most
309316
* recent violation.
310317
* </p>
311318
*/
@@ -315,13 +322,13 @@ public MetricValue getLastViolationValue() {
315322

316323
/**
317324
* <p>
318-
* The value of the metric (the measurement) which caused the most recent
325+
* The value of the metric (the measurement) that caused the most recent
319326
* violation.
320327
* </p>
321328
*
322329
* @param lastViolationValue <p>
323-
* The value of the metric (the measurement) which caused the
324-
* most recent violation.
330+
* The value of the metric (the measurement) that caused the most
331+
* recent violation.
325332
* </p>
326333
*/
327334
public void setLastViolationValue(MetricValue lastViolationValue) {
@@ -330,16 +337,16 @@ public void setLastViolationValue(MetricValue lastViolationValue) {
330337

331338
/**
332339
* <p>
333-
* The value of the metric (the measurement) which caused the most recent
340+
* The value of the metric (the measurement) that caused the most recent
334341
* violation.
335342
* </p>
336343
* <p>
337344
* Returns a reference to this object so that method calls can be chained
338345
* together.
339346
*
340347
* @param lastViolationValue <p>
341-
* The value of the metric (the measurement) which caused the
342-
* most recent violation.
348+
* The value of the metric (the measurement) that caused the most
349+
* recent violation.
343350
* </p>
344351
* @return A reference to this updated object so that method calls can be
345352
* chained together.
@@ -349,6 +356,53 @@ public ActiveViolation withLastViolationValue(MetricValue lastViolationValue) {
349356
return this;
350357
}
351358

359+
/**
360+
* <p>
361+
* The details of a violation event.
362+
* </p>
363+
*
364+
* @return <p>
365+
* The details of a violation event.
366+
* </p>
367+
*/
368+
public ViolationEventAdditionalInfo getViolationEventAdditionalInfo() {
369+
return violationEventAdditionalInfo;
370+
}
371+
372+
/**
373+
* <p>
374+
* The details of a violation event.
375+
* </p>
376+
*
377+
* @param violationEventAdditionalInfo <p>
378+
* The details of a violation event.
379+
* </p>
380+
*/
381+
public void setViolationEventAdditionalInfo(
382+
ViolationEventAdditionalInfo violationEventAdditionalInfo) {
383+
this.violationEventAdditionalInfo = violationEventAdditionalInfo;
384+
}
385+
386+
/**
387+
* <p>
388+
* The details of a violation event.
389+
* </p>
390+
* <p>
391+
* Returns a reference to this object so that method calls can be chained
392+
* together.
393+
*
394+
* @param violationEventAdditionalInfo <p>
395+
* The details of a violation event.
396+
* </p>
397+
* @return A reference to this updated object so that method calls can be
398+
* chained together.
399+
*/
400+
public ActiveViolation withViolationEventAdditionalInfo(
401+
ViolationEventAdditionalInfo violationEventAdditionalInfo) {
402+
this.violationEventAdditionalInfo = violationEventAdditionalInfo;
403+
return this;
404+
}
405+
352406
/**
353407
* <p>
354408
* The time the most recent violation occurred.
@@ -460,6 +514,8 @@ public String toString() {
460514
sb.append("behavior: " + getBehavior() + ",");
461515
if (getLastViolationValue() != null)
462516
sb.append("lastViolationValue: " + getLastViolationValue() + ",");
517+
if (getViolationEventAdditionalInfo() != null)
518+
sb.append("violationEventAdditionalInfo: " + getViolationEventAdditionalInfo() + ",");
463519
if (getLastViolationTime() != null)
464520
sb.append("lastViolationTime: " + getLastViolationTime() + ",");
465521
if (getViolationStartTime() != null)
@@ -481,6 +537,10 @@ public int hashCode() {
481537
hashCode = prime * hashCode + ((getBehavior() == null) ? 0 : getBehavior().hashCode());
482538
hashCode = prime * hashCode
483539
+ ((getLastViolationValue() == null) ? 0 : getLastViolationValue().hashCode());
540+
hashCode = prime
541+
* hashCode
542+
+ ((getViolationEventAdditionalInfo() == null) ? 0
543+
: getViolationEventAdditionalInfo().hashCode());
484544
hashCode = prime * hashCode
485545
+ ((getLastViolationTime() == null) ? 0 : getLastViolationTime().hashCode());
486546
hashCode = prime * hashCode
@@ -523,6 +583,13 @@ public boolean equals(Object obj) {
523583
if (other.getLastViolationValue() != null
524584
&& other.getLastViolationValue().equals(this.getLastViolationValue()) == false)
525585
return false;
586+
if (other.getViolationEventAdditionalInfo() == null
587+
^ this.getViolationEventAdditionalInfo() == null)
588+
return false;
589+
if (other.getViolationEventAdditionalInfo() != null
590+
&& other.getViolationEventAdditionalInfo().equals(
591+
this.getViolationEventAdditionalInfo()) == false)
592+
return false;
526593
if (other.getLastViolationTime() == null ^ this.getLastViolationTime() == null)
527594
return false;
528595
if (other.getLastViolationTime() != null

0 commit comments

Comments
 (0)