Skip to content

Commit 16ac400

Browse files
Merge pull request #2292 from awsmobilesdk/models-update-geo20201216s8wJh6cS251
geo Update models to latest
2 parents d533cad + 0dab14b commit 16ac400

File tree

235 files changed

+41546
-0
lines changed

Some content is hidden

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

235 files changed

+41546
-0
lines changed

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

Lines changed: 1133 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 2351 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* Copyright 2010-2020 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.geo.model;
17+
18+
import com.amazonaws.AmazonServiceException;
19+
20+
/**
21+
* <p>
22+
* The request was denied due to insufficient access or permission. Check with
23+
* an administrator to verify your permissions.
24+
* </p>
25+
*/
26+
public class AccessDeniedException extends AmazonServiceException {
27+
private static final long serialVersionUID = 1L;
28+
29+
/**
30+
* Constructs a new AccessDeniedException with the specified error message.
31+
*
32+
* @param message Describes the error encountered.
33+
*/
34+
public AccessDeniedException(String message) {
35+
super(message);
36+
}
37+
}
Lines changed: 306 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,306 @@
1+
/*
2+
* Copyright 2010-2020 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.geo.model;
17+
18+
import java.io.Serializable;
19+
20+
import com.amazonaws.AmazonWebServiceRequest;
21+
22+
/**
23+
* <p>
24+
* Creates an association between a geofence collection and a tracker resource.
25+
* This allows the tracker resource to communicate location data to the linked
26+
* geofence collection.
27+
* </p>
28+
*/
29+
public class AssociateTrackerConsumerRequest extends AmazonWebServiceRequest implements
30+
Serializable {
31+
/**
32+
* <p>
33+
* The Amazon Resource Name (ARN) for the geofence collection to be
34+
* associated to tracker resource. Used when you need to specify a resource
35+
* across all AWS.
36+
* </p>
37+
* <ul>
38+
* <li>
39+
* <p>
40+
* Format example:
41+
* <code>arn:partition:service:region:account-id:resource-type:resource-id</code>
42+
* </p>
43+
* </li>
44+
* </ul>
45+
* <p>
46+
* <b>Constraints:</b><br/>
47+
* <b>Length: </b>0 - 1600<br/>
48+
* <b>Pattern:
49+
* </b>^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-
50+
* 9]+)*)?){2}:([^/].*)?$<br/>
51+
*/
52+
private String consumerArn;
53+
54+
/**
55+
* <p>
56+
* The name of the tracker resource to be associated with a geofence
57+
* collection.
58+
* </p>
59+
* <p>
60+
* <b>Constraints:</b><br/>
61+
* <b>Length: </b>1 - 100<br/>
62+
* <b>Pattern: </b>^[-._\w]+$<br/>
63+
*/
64+
private String trackerName;
65+
66+
/**
67+
* <p>
68+
* The Amazon Resource Name (ARN) for the geofence collection to be
69+
* associated to tracker resource. Used when you need to specify a resource
70+
* across all AWS.
71+
* </p>
72+
* <ul>
73+
* <li>
74+
* <p>
75+
* Format example:
76+
* <code>arn:partition:service:region:account-id:resource-type:resource-id</code>
77+
* </p>
78+
* </li>
79+
* </ul>
80+
* <p>
81+
* <b>Constraints:</b><br/>
82+
* <b>Length: </b>0 - 1600<br/>
83+
* <b>Pattern:
84+
* </b>^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-
85+
* 9]+)*)?){2}:([^/].*)?$<br/>
86+
*
87+
* @return <p>
88+
* The Amazon Resource Name (ARN) for the geofence collection to be
89+
* associated to tracker resource. Used when you need to specify a
90+
* resource across all AWS.
91+
* </p>
92+
* <ul>
93+
* <li>
94+
* <p>
95+
* Format example:
96+
* <code>arn:partition:service:region:account-id:resource-type:resource-id</code>
97+
* </p>
98+
* </li>
99+
* </ul>
100+
*/
101+
public String getConsumerArn() {
102+
return consumerArn;
103+
}
104+
105+
/**
106+
* <p>
107+
* The Amazon Resource Name (ARN) for the geofence collection to be
108+
* associated to tracker resource. Used when you need to specify a resource
109+
* across all AWS.
110+
* </p>
111+
* <ul>
112+
* <li>
113+
* <p>
114+
* Format example:
115+
* <code>arn:partition:service:region:account-id:resource-type:resource-id</code>
116+
* </p>
117+
* </li>
118+
* </ul>
119+
* <p>
120+
* <b>Constraints:</b><br/>
121+
* <b>Length: </b>0 - 1600<br/>
122+
* <b>Pattern:
123+
* </b>^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-
124+
* 9]+)*)?){2}:([^/].*)?$<br/>
125+
*
126+
* @param consumerArn <p>
127+
* The Amazon Resource Name (ARN) for the geofence collection to
128+
* be associated to tracker resource. Used when you need to
129+
* specify a resource across all AWS.
130+
* </p>
131+
* <ul>
132+
* <li>
133+
* <p>
134+
* Format example:
135+
* <code>arn:partition:service:region:account-id:resource-type:resource-id</code>
136+
* </p>
137+
* </li>
138+
* </ul>
139+
*/
140+
public void setConsumerArn(String consumerArn) {
141+
this.consumerArn = consumerArn;
142+
}
143+
144+
/**
145+
* <p>
146+
* The Amazon Resource Name (ARN) for the geofence collection to be
147+
* associated to tracker resource. Used when you need to specify a resource
148+
* across all AWS.
149+
* </p>
150+
* <ul>
151+
* <li>
152+
* <p>
153+
* Format example:
154+
* <code>arn:partition:service:region:account-id:resource-type:resource-id</code>
155+
* </p>
156+
* </li>
157+
* </ul>
158+
* <p>
159+
* Returns a reference to this object so that method calls can be chained
160+
* together.
161+
* <p>
162+
* <b>Constraints:</b><br/>
163+
* <b>Length: </b>0 - 1600<br/>
164+
* <b>Pattern:
165+
* </b>^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-
166+
* 9]+)*)?){2}:([^/].*)?$<br/>
167+
*
168+
* @param consumerArn <p>
169+
* The Amazon Resource Name (ARN) for the geofence collection to
170+
* be associated to tracker resource. Used when you need to
171+
* specify a resource across all AWS.
172+
* </p>
173+
* <ul>
174+
* <li>
175+
* <p>
176+
* Format example:
177+
* <code>arn:partition:service:region:account-id:resource-type:resource-id</code>
178+
* </p>
179+
* </li>
180+
* </ul>
181+
* @return A reference to this updated object so that method calls can be
182+
* chained together.
183+
*/
184+
public AssociateTrackerConsumerRequest withConsumerArn(String consumerArn) {
185+
this.consumerArn = consumerArn;
186+
return this;
187+
}
188+
189+
/**
190+
* <p>
191+
* The name of the tracker resource to be associated with a geofence
192+
* collection.
193+
* </p>
194+
* <p>
195+
* <b>Constraints:</b><br/>
196+
* <b>Length: </b>1 - 100<br/>
197+
* <b>Pattern: </b>^[-._\w]+$<br/>
198+
*
199+
* @return <p>
200+
* The name of the tracker resource to be associated with a geofence
201+
* collection.
202+
* </p>
203+
*/
204+
public String getTrackerName() {
205+
return trackerName;
206+
}
207+
208+
/**
209+
* <p>
210+
* The name of the tracker resource to be associated with a geofence
211+
* collection.
212+
* </p>
213+
* <p>
214+
* <b>Constraints:</b><br/>
215+
* <b>Length: </b>1 - 100<br/>
216+
* <b>Pattern: </b>^[-._\w]+$<br/>
217+
*
218+
* @param trackerName <p>
219+
* The name of the tracker resource to be associated with a
220+
* geofence collection.
221+
* </p>
222+
*/
223+
public void setTrackerName(String trackerName) {
224+
this.trackerName = trackerName;
225+
}
226+
227+
/**
228+
* <p>
229+
* The name of the tracker resource to be associated with a geofence
230+
* collection.
231+
* </p>
232+
* <p>
233+
* Returns a reference to this object so that method calls can be chained
234+
* together.
235+
* <p>
236+
* <b>Constraints:</b><br/>
237+
* <b>Length: </b>1 - 100<br/>
238+
* <b>Pattern: </b>^[-._\w]+$<br/>
239+
*
240+
* @param trackerName <p>
241+
* The name of the tracker resource to be associated with a
242+
* geofence collection.
243+
* </p>
244+
* @return A reference to this updated object so that method calls can be
245+
* chained together.
246+
*/
247+
public AssociateTrackerConsumerRequest withTrackerName(String trackerName) {
248+
this.trackerName = trackerName;
249+
return this;
250+
}
251+
252+
/**
253+
* Returns a string representation of this object; useful for testing and
254+
* debugging.
255+
*
256+
* @return A string representation of this object.
257+
* @see java.lang.Object#toString()
258+
*/
259+
@Override
260+
public String toString() {
261+
StringBuilder sb = new StringBuilder();
262+
sb.append("{");
263+
if (getConsumerArn() != null)
264+
sb.append("ConsumerArn: " + getConsumerArn() + ",");
265+
if (getTrackerName() != null)
266+
sb.append("TrackerName: " + getTrackerName());
267+
sb.append("}");
268+
return sb.toString();
269+
}
270+
271+
@Override
272+
public int hashCode() {
273+
final int prime = 31;
274+
int hashCode = 1;
275+
276+
hashCode = prime * hashCode
277+
+ ((getConsumerArn() == null) ? 0 : getConsumerArn().hashCode());
278+
hashCode = prime * hashCode
279+
+ ((getTrackerName() == null) ? 0 : getTrackerName().hashCode());
280+
return hashCode;
281+
}
282+
283+
@Override
284+
public boolean equals(Object obj) {
285+
if (this == obj)
286+
return true;
287+
if (obj == null)
288+
return false;
289+
290+
if (obj instanceof AssociateTrackerConsumerRequest == false)
291+
return false;
292+
AssociateTrackerConsumerRequest other = (AssociateTrackerConsumerRequest) obj;
293+
294+
if (other.getConsumerArn() == null ^ this.getConsumerArn() == null)
295+
return false;
296+
if (other.getConsumerArn() != null
297+
&& other.getConsumerArn().equals(this.getConsumerArn()) == false)
298+
return false;
299+
if (other.getTrackerName() == null ^ this.getTrackerName() == null)
300+
return false;
301+
if (other.getTrackerName() != null
302+
&& other.getTrackerName().equals(this.getTrackerName()) == false)
303+
return false;
304+
return true;
305+
}
306+
}

0 commit comments

Comments
 (0)