Skip to content

Commit 920c913

Browse files
awsmobilesdkpalpatim
authored andcommitted
[aws-android-sdk-iot] Update models to latest (#1124)
1 parent ffd9cfc commit 920c913

File tree

132 files changed

+15570
-712
lines changed

Some content is hidden

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

132 files changed

+15570
-712
lines changed

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

Lines changed: 288 additions & 9 deletions
Large diffs are not rendered by default.

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

Lines changed: 586 additions & 9 deletions
Large diffs are not rendered by default.

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public class ActiveViolation implements Serializable {
4242
* <p>
4343
* <b>Constraints:</b><br/>
4444
* <b>Length: </b>1 - 128<br/>
45-
* <b>Pattern: </b>[a-zA-Z0-9:_-]+<br/>
4645
*/
4746
private String thingName;
4847

@@ -150,7 +149,6 @@ public ActiveViolation withViolationId(String violationId) {
150149
* <p>
151150
* <b>Constraints:</b><br/>
152151
* <b>Length: </b>1 - 128<br/>
153-
* <b>Pattern: </b>[a-zA-Z0-9:_-]+<br/>
154152
*
155153
* @return <p>
156154
* The name of the thing responsible for the active violation.
@@ -167,7 +165,6 @@ public String getThingName() {
167165
* <p>
168166
* <b>Constraints:</b><br/>
169167
* <b>Length: </b>1 - 128<br/>
170-
* <b>Pattern: </b>[a-zA-Z0-9:_-]+<br/>
171168
*
172169
* @param thingName <p>
173170
* The name of the thing responsible for the active violation.
@@ -187,7 +184,6 @@ public void setThingName(String thingName) {
187184
* <p>
188185
* <b>Constraints:</b><br/>
189186
* <b>Length: </b>1 - 128<br/>
190-
* <b>Pattern: </b>[a-zA-Z0-9:_-]+<br/>
191187
*
192188
* @param thingName <p>
193189
* The name of the thing responsible for the active violation.
Lines changed: 269 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,269 @@
1+
/*
2+
* Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
package com.amazonaws.services.iot.model;
17+
18+
import java.io.Serializable;
19+
20+
/**
21+
* <p>
22+
* Parameters used when defining a mitigation action that move a set of things
23+
* to a thing group.
24+
* </p>
25+
*/
26+
public class AddThingsToThingGroupParams implements Serializable {
27+
/**
28+
* <p>
29+
* The list of groups to which you want to add the things that triggered the
30+
* mitigation action. You can add a thing to a maximum of 10 groups, but you
31+
* cannot add a thing to more than one group in the same hierarchy.
32+
* </p>
33+
*/
34+
private java.util.List<String> thingGroupNames;
35+
36+
/**
37+
* <p>
38+
* Specifies if this mitigation action can move the things that triggered
39+
* the mitigation action even if they are part of one or more dynamic things
40+
* groups.
41+
* </p>
42+
*/
43+
private Boolean overrideDynamicGroups;
44+
45+
/**
46+
* <p>
47+
* The list of groups to which you want to add the things that triggered the
48+
* mitigation action. You can add a thing to a maximum of 10 groups, but you
49+
* cannot add a thing to more than one group in the same hierarchy.
50+
* </p>
51+
*
52+
* @return <p>
53+
* The list of groups to which you want to add the things that
54+
* triggered the mitigation action. You can add a thing to a maximum
55+
* of 10 groups, but you cannot add a thing to more than one group
56+
* in the same hierarchy.
57+
* </p>
58+
*/
59+
public java.util.List<String> getThingGroupNames() {
60+
return thingGroupNames;
61+
}
62+
63+
/**
64+
* <p>
65+
* The list of groups to which you want to add the things that triggered the
66+
* mitigation action. You can add a thing to a maximum of 10 groups, but you
67+
* cannot add a thing to more than one group in the same hierarchy.
68+
* </p>
69+
*
70+
* @param thingGroupNames <p>
71+
* The list of groups to which you want to add the things that
72+
* triggered the mitigation action. You can add a thing to a
73+
* maximum of 10 groups, but you cannot add a thing to more than
74+
* one group in the same hierarchy.
75+
* </p>
76+
*/
77+
public void setThingGroupNames(java.util.Collection<String> thingGroupNames) {
78+
if (thingGroupNames == null) {
79+
this.thingGroupNames = null;
80+
return;
81+
}
82+
83+
this.thingGroupNames = new java.util.ArrayList<String>(thingGroupNames);
84+
}
85+
86+
/**
87+
* <p>
88+
* The list of groups to which you want to add the things that triggered the
89+
* mitigation action. You can add a thing to a maximum of 10 groups, but you
90+
* cannot add a thing to more than one group in the same hierarchy.
91+
* </p>
92+
* <p>
93+
* Returns a reference to this object so that method calls can be chained
94+
* together.
95+
*
96+
* @param thingGroupNames <p>
97+
* The list of groups to which you want to add the things that
98+
* triggered the mitigation action. You can add a thing to a
99+
* maximum of 10 groups, but you cannot add a thing to more than
100+
* one group in the same hierarchy.
101+
* </p>
102+
* @return A reference to this updated object so that method calls can be
103+
* chained together.
104+
*/
105+
public AddThingsToThingGroupParams withThingGroupNames(String... thingGroupNames) {
106+
if (getThingGroupNames() == null) {
107+
this.thingGroupNames = new java.util.ArrayList<String>(thingGroupNames.length);
108+
}
109+
for (String value : thingGroupNames) {
110+
this.thingGroupNames.add(value);
111+
}
112+
return this;
113+
}
114+
115+
/**
116+
* <p>
117+
* The list of groups to which you want to add the things that triggered the
118+
* mitigation action. You can add a thing to a maximum of 10 groups, but you
119+
* cannot add a thing to more than one group in the same hierarchy.
120+
* </p>
121+
* <p>
122+
* Returns a reference to this object so that method calls can be chained
123+
* together.
124+
*
125+
* @param thingGroupNames <p>
126+
* The list of groups to which you want to add the things that
127+
* triggered the mitigation action. You can add a thing to a
128+
* maximum of 10 groups, but you cannot add a thing to more than
129+
* one group in the same hierarchy.
130+
* </p>
131+
* @return A reference to this updated object so that method calls can be
132+
* chained together.
133+
*/
134+
public AddThingsToThingGroupParams withThingGroupNames(
135+
java.util.Collection<String> thingGroupNames) {
136+
setThingGroupNames(thingGroupNames);
137+
return this;
138+
}
139+
140+
/**
141+
* <p>
142+
* Specifies if this mitigation action can move the things that triggered
143+
* the mitigation action even if they are part of one or more dynamic things
144+
* groups.
145+
* </p>
146+
*
147+
* @return <p>
148+
* Specifies if this mitigation action can move the things that
149+
* triggered the mitigation action even if they are part of one or
150+
* more dynamic things groups.
151+
* </p>
152+
*/
153+
public Boolean isOverrideDynamicGroups() {
154+
return overrideDynamicGroups;
155+
}
156+
157+
/**
158+
* <p>
159+
* Specifies if this mitigation action can move the things that triggered
160+
* the mitigation action even if they are part of one or more dynamic things
161+
* groups.
162+
* </p>
163+
*
164+
* @return <p>
165+
* Specifies if this mitigation action can move the things that
166+
* triggered the mitigation action even if they are part of one or
167+
* more dynamic things groups.
168+
* </p>
169+
*/
170+
public Boolean getOverrideDynamicGroups() {
171+
return overrideDynamicGroups;
172+
}
173+
174+
/**
175+
* <p>
176+
* Specifies if this mitigation action can move the things that triggered
177+
* the mitigation action even if they are part of one or more dynamic things
178+
* groups.
179+
* </p>
180+
*
181+
* @param overrideDynamicGroups <p>
182+
* Specifies if this mitigation action can move the things that
183+
* triggered the mitigation action even if they are part of one
184+
* or more dynamic things groups.
185+
* </p>
186+
*/
187+
public void setOverrideDynamicGroups(Boolean overrideDynamicGroups) {
188+
this.overrideDynamicGroups = overrideDynamicGroups;
189+
}
190+
191+
/**
192+
* <p>
193+
* Specifies if this mitigation action can move the things that triggered
194+
* the mitigation action even if they are part of one or more dynamic things
195+
* groups.
196+
* </p>
197+
* <p>
198+
* Returns a reference to this object so that method calls can be chained
199+
* together.
200+
*
201+
* @param overrideDynamicGroups <p>
202+
* Specifies if this mitigation action can move the things that
203+
* triggered the mitigation action even if they are part of one
204+
* or more dynamic things groups.
205+
* </p>
206+
* @return A reference to this updated object so that method calls can be
207+
* chained together.
208+
*/
209+
public AddThingsToThingGroupParams withOverrideDynamicGroups(Boolean overrideDynamicGroups) {
210+
this.overrideDynamicGroups = overrideDynamicGroups;
211+
return this;
212+
}
213+
214+
/**
215+
* Returns a string representation of this object; useful for testing and
216+
* debugging.
217+
*
218+
* @return A string representation of this object.
219+
* @see java.lang.Object#toString()
220+
*/
221+
@Override
222+
public String toString() {
223+
StringBuilder sb = new StringBuilder();
224+
sb.append("{");
225+
if (getThingGroupNames() != null)
226+
sb.append("thingGroupNames: " + getThingGroupNames() + ",");
227+
if (getOverrideDynamicGroups() != null)
228+
sb.append("overrideDynamicGroups: " + getOverrideDynamicGroups());
229+
sb.append("}");
230+
return sb.toString();
231+
}
232+
233+
@Override
234+
public int hashCode() {
235+
final int prime = 31;
236+
int hashCode = 1;
237+
238+
hashCode = prime * hashCode
239+
+ ((getThingGroupNames() == null) ? 0 : getThingGroupNames().hashCode());
240+
hashCode = prime
241+
* hashCode
242+
+ ((getOverrideDynamicGroups() == null) ? 0 : getOverrideDynamicGroups().hashCode());
243+
return hashCode;
244+
}
245+
246+
@Override
247+
public boolean equals(Object obj) {
248+
if (this == obj)
249+
return true;
250+
if (obj == null)
251+
return false;
252+
253+
if (obj instanceof AddThingsToThingGroupParams == false)
254+
return false;
255+
AddThingsToThingGroupParams other = (AddThingsToThingGroupParams) obj;
256+
257+
if (other.getThingGroupNames() == null ^ this.getThingGroupNames() == null)
258+
return false;
259+
if (other.getThingGroupNames() != null
260+
&& other.getThingGroupNames().equals(this.getThingGroupNames()) == false)
261+
return false;
262+
if (other.getOverrideDynamicGroups() == null ^ this.getOverrideDynamicGroups() == null)
263+
return false;
264+
if (other.getOverrideDynamicGroups() != null
265+
&& other.getOverrideDynamicGroups().equals(this.getOverrideDynamicGroups()) == false)
266+
return false;
267+
return true;
268+
}
269+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
/**
2323
* <p>
24-
* Associates a Device Defender security profile with a thing group or with this
24+
* Associates a Device Defender security profile with a thing group or this
2525
* account. Each thing group or account can have up to five security profiles
2626
* associated with it.
2727
* </p>

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class AttributePayload implements Serializable {
4747
* <note>
4848
* <p>
4949
* The <code>merge</code> attribute is only valid when calling
50-
* <code>UpdateThing</code>.
50+
* <code>UpdateThing</code> or <code>UpdateThingGroup</code>.
5151
* </p>
5252
* </note>
5353
*/
@@ -176,7 +176,7 @@ public AttributePayload clearattributesEntries() {
176176
* <note>
177177
* <p>
178178
* The <code>merge</code> attribute is only valid when calling
179-
* <code>UpdateThing</code>.
179+
* <code>UpdateThing</code> or <code>UpdateThingGroup</code>.
180180
* </p>
181181
* </note>
182182
*
@@ -192,7 +192,7 @@ public AttributePayload clearattributesEntries() {
192192
* <note>
193193
* <p>
194194
* The <code>merge</code> attribute is only valid when calling
195-
* <code>UpdateThing</code>.
195+
* <code>UpdateThing</code> or <code>UpdateThingGroup</code>.
196196
* </p>
197197
* </note>
198198
*/
@@ -213,7 +213,7 @@ public Boolean isMerge() {
213213
* <note>
214214
* <p>
215215
* The <code>merge</code> attribute is only valid when calling
216-
* <code>UpdateThing</code>.
216+
* <code>UpdateThing</code> or <code>UpdateThingGroup</code>.
217217
* </p>
218218
* </note>
219219
*
@@ -229,7 +229,7 @@ public Boolean isMerge() {
229229
* <note>
230230
* <p>
231231
* The <code>merge</code> attribute is only valid when calling
232-
* <code>UpdateThing</code>.
232+
* <code>UpdateThing</code> or <code>UpdateThingGroup</code>.
233233
* </p>
234234
* </note>
235235
*/
@@ -250,7 +250,7 @@ public Boolean getMerge() {
250250
* <note>
251251
* <p>
252252
* The <code>merge</code> attribute is only valid when calling
253-
* <code>UpdateThing</code>.
253+
* <code>UpdateThing</code> or <code>UpdateThingGroup</code>.
254254
* </p>
255255
* </note>
256256
*
@@ -266,7 +266,7 @@ public Boolean getMerge() {
266266
* <note>
267267
* <p>
268268
* The <code>merge</code> attribute is only valid when calling
269-
* <code>UpdateThing</code>.
269+
* <code>UpdateThing</code> or <code>UpdateThingGroup</code>.
270270
* </p>
271271
* </note>
272272
*/
@@ -287,7 +287,7 @@ public void setMerge(Boolean merge) {
287287
* <note>
288288
* <p>
289289
* The <code>merge</code> attribute is only valid when calling
290-
* <code>UpdateThing</code>.
290+
* <code>UpdateThing</code> or <code>UpdateThingGroup</code>.
291291
* </p>
292292
* </note>
293293
* <p>
@@ -306,7 +306,7 @@ public void setMerge(Boolean merge) {
306306
* <note>
307307
* <p>
308308
* The <code>merge</code> attribute is only valid when calling
309-
* <code>UpdateThing</code>.
309+
* <code>UpdateThing</code> or <code>UpdateThingGroup</code>.
310310
* </p>
311311
* </note>
312312
* @return A reference to this updated object so that method calls can be

0 commit comments

Comments
 (0)