File tree Expand file tree Collapse file tree 6 files changed +60
-2
lines changed
sdk/src/main/java/software/amazon/awssdk/iot Expand file tree Collapse file tree 6 files changed +60
-2
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,10 @@ public class IotIdentityClient {
46
46
private MqttClientConnection connection = null ;
47
47
private final Gson gson = getGson ();
48
48
49
+ /**
50
+ * Constructs a new IotIdentityClient
51
+ * @param connection The connection to use
52
+ */
49
53
public IotIdentityClient (MqttClientConnection connection ) {
50
54
this .connection = connection ;
51
55
}
Original file line number Diff line number Diff line change @@ -59,6 +59,10 @@ public class IotJobsClient {
59
59
private MqttClientConnection connection = null ;
60
60
private final Gson gson = getGson ();
61
61
62
+ /**
63
+ * Constructs a new IotJobsClient
64
+ * @param connection The connection to use
65
+ */
62
66
public IotJobsClient (MqttClientConnection connection ) {
63
67
this .connection = connection ;
64
68
}
@@ -282,7 +286,6 @@ public CompletableFuture<Integer> SubscribeToDescribeJobExecutionRejected(
282
286
}
283
287
284
288
/**
285
- *
286
289
*
287
290
* Once subscribed, `handler` is invoked each time a message matching
288
291
* the `topic` is received. It is possible for such messages to arrive before
@@ -325,7 +328,6 @@ public CompletableFuture<Integer> SubscribeToNextJobExecutionChangedEvents(
325
328
}
326
329
327
330
/**
328
- *
329
331
*
330
332
* Once subscribed, `handler` is invoked each time a message matching
331
333
* the `topic` is received. It is possible for such messages to arrive before
Original file line number Diff line number Diff line change 13
13
*/
14
14
public enum JobStatus {
15
15
16
+ /**
17
+ * Enum value is an unknown value
18
+ */
16
19
UNKNOWN_ENUM_VALUE ("UNKNOWN_ENUM_VALUE" ),
17
20
21
+ /**
22
+ * Enum value for IN_PROGRESS
23
+ */
18
24
IN_PROGRESS ("IN_PROGRESS" ),
19
25
26
+ /**
27
+ * Enum value for FAILED
28
+ */
20
29
FAILED ("FAILED" ),
21
30
31
+ /**
32
+ * Enum value for QUEUED
33
+ */
22
34
QUEUED ("QUEUED" ),
23
35
36
+ /**
37
+ * Enum value for TIMED_OUT
38
+ */
24
39
TIMED_OUT ("TIMED_OUT" ),
25
40
41
+ /**
42
+ * Enum value for SUCCEEDED
43
+ */
26
44
SUCCEEDED ("SUCCEEDED" ),
27
45
46
+ /**
47
+ * Enum value for CANCELED
48
+ */
28
49
CANCELED ("CANCELED" ),
29
50
51
+ /**
52
+ * Enum value for REJECTED
53
+ */
30
54
REJECTED ("REJECTED" ),
31
55
56
+ /**
57
+ * Enum value for REMOVED
58
+ */
32
59
REMOVED ("REMOVED" );
33
60
34
61
private String value ;
@@ -42,6 +69,12 @@ public String toString() {
42
69
return value ;
43
70
}
44
71
72
+ /**
73
+ * Returns The enum associated with the given string or UNKNOWN_ENUM_VALUE
74
+ * if no enum is found.
75
+ * @param val The string to use
76
+ * @return The enum associated with the string or UNKNOWN_ENUM_VALUE
77
+ */
45
78
static JobStatus fromString (String val ) {
46
79
for (JobStatus e : JobStatus .class .getEnumConstants ()) {
47
80
if (e .toString ().compareTo (val ) == 0 ) {
Original file line number Diff line number Diff line change 13
13
*/
14
14
public enum RejectedErrorCode {
15
15
16
+ /**
17
+ * Enum value is an unknown value
18
+ */
16
19
UNKNOWN_ENUM_VALUE ("UNKNOWN_ENUM_VALUE" ),
17
20
18
21
/**
@@ -71,6 +74,12 @@ public String toString() {
71
74
return value ;
72
75
}
73
76
77
+ /**
78
+ * Returns The enum associated with the given string or UNKNOWN_ENUM_VALUE
79
+ * if no enum is found.
80
+ * @param val The string to use
81
+ * @return The enum associated with the string or UNKNOWN_ENUM_VALUE
82
+ */
74
83
static RejectedErrorCode fromString (String val ) {
75
84
for (RejectedErrorCode e : RejectedErrorCode .class .getEnumConstants ()) {
76
85
if (e .toString ().compareTo (val ) == 0 ) {
Original file line number Diff line number Diff line change @@ -65,6 +65,10 @@ public class IotShadowClient {
65
65
private MqttClientConnection connection = null ;
66
66
private final Gson gson = getGson ();
67
67
68
+ /**
69
+ * Constructs a new IotShadowClient
70
+ * @param connection The connection to use
71
+ */
68
72
public IotShadowClient (MqttClientConnection connection ) {
69
73
this .connection = connection ;
70
74
}
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ public class ShadowState {
21
21
*/
22
22
public HashMap <String , Object > desired ;
23
23
24
+ /**
25
+ * If set to true, then desired can be set to null.
26
+ */
24
27
public transient boolean desiredIsNullable ;
25
28
26
29
/**
@@ -29,6 +32,9 @@ public class ShadowState {
29
32
*/
30
33
public HashMap <String , Object > reported ;
31
34
35
+ /**
36
+ * If set to true, then reported can be set to null.
37
+ */
32
38
public transient boolean reportedIsNullable ;
33
39
34
40
}
You can’t perform that action at this time.
0 commit comments