Skip to content

Commit 88f0a71

Browse files
authored
feat(aws-android-sdk-rekognition): update models to latest (#3290)
1 parent 05af780 commit 88f0a71

File tree

7 files changed

+475
-1
lines changed

7 files changed

+475
-1
lines changed

aws-android-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/Attribute.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public enum Attribute {
2828
AGE_RANGE("AGE_RANGE"),
2929
BEARD("BEARD"),
3030
EMOTIONS("EMOTIONS"),
31+
EYE_DIRECTION("EYE_DIRECTION"),
3132
EYEGLASSES("EYEGLASSES"),
3233
EYES_OPEN("EYES_OPEN"),
3334
GENDER("GENDER"),
@@ -56,6 +57,7 @@ public String toString() {
5657
enumMap.put("AGE_RANGE", AGE_RANGE);
5758
enumMap.put("BEARD", BEARD);
5859
enumMap.put("EMOTIONS", EMOTIONS);
60+
enumMap.put("EYE_DIRECTION", EYE_DIRECTION);
5961
enumMap.put("EYEGLASSES", EYEGLASSES);
6062
enumMap.put("EYES_OPEN", EYES_OPEN);
6163
enumMap.put("GENDER", GENDER);
Lines changed: 280 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,280 @@
1+
/*
2+
* Copyright 2010-2023 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.rekognition.model;
17+
18+
import java.io.Serializable;
19+
20+
/**
21+
* <p>
22+
* Indicates the direction the eyes are gazing in (independent of the head pose)
23+
* as determined by its pitch and yaw.
24+
* </p>
25+
*/
26+
public class EyeDirection implements Serializable {
27+
/**
28+
* <p>
29+
* Value representing eye direction on the yaw axis.
30+
* </p>
31+
* <p>
32+
* <b>Constraints:</b><br/>
33+
* <b>Length: </b>-180.0 - 180.0<br/>
34+
*/
35+
private Float yaw;
36+
37+
/**
38+
* <p>
39+
* Value representing eye direction on the pitch axis.
40+
* </p>
41+
* <p>
42+
* <b>Constraints:</b><br/>
43+
* <b>Length: </b>-180.0 - 180.0<br/>
44+
*/
45+
private Float pitch;
46+
47+
/**
48+
* <p>
49+
* The confidence that the service has in its predicted eye direction.
50+
* </p>
51+
* <p>
52+
* <b>Constraints:</b><br/>
53+
* <b>Length: </b>0.0 - 100.0<br/>
54+
*/
55+
private Float confidence;
56+
57+
/**
58+
* <p>
59+
* Value representing eye direction on the yaw axis.
60+
* </p>
61+
* <p>
62+
* <b>Constraints:</b><br/>
63+
* <b>Length: </b>-180.0 - 180.0<br/>
64+
*
65+
* @return <p>
66+
* Value representing eye direction on the yaw axis.
67+
* </p>
68+
*/
69+
public Float getYaw() {
70+
return yaw;
71+
}
72+
73+
/**
74+
* <p>
75+
* Value representing eye direction on the yaw axis.
76+
* </p>
77+
* <p>
78+
* <b>Constraints:</b><br/>
79+
* <b>Length: </b>-180.0 - 180.0<br/>
80+
*
81+
* @param yaw <p>
82+
* Value representing eye direction on the yaw axis.
83+
* </p>
84+
*/
85+
public void setYaw(Float yaw) {
86+
this.yaw = yaw;
87+
}
88+
89+
/**
90+
* <p>
91+
* Value representing eye direction on the yaw axis.
92+
* </p>
93+
* <p>
94+
* Returns a reference to this object so that method calls can be chained
95+
* together.
96+
* <p>
97+
* <b>Constraints:</b><br/>
98+
* <b>Length: </b>-180.0 - 180.0<br/>
99+
*
100+
* @param yaw <p>
101+
* Value representing eye direction on the yaw axis.
102+
* </p>
103+
* @return A reference to this updated object so that method calls can be
104+
* chained together.
105+
*/
106+
public EyeDirection withYaw(Float yaw) {
107+
this.yaw = yaw;
108+
return this;
109+
}
110+
111+
/**
112+
* <p>
113+
* Value representing eye direction on the pitch axis.
114+
* </p>
115+
* <p>
116+
* <b>Constraints:</b><br/>
117+
* <b>Length: </b>-180.0 - 180.0<br/>
118+
*
119+
* @return <p>
120+
* Value representing eye direction on the pitch axis.
121+
* </p>
122+
*/
123+
public Float getPitch() {
124+
return pitch;
125+
}
126+
127+
/**
128+
* <p>
129+
* Value representing eye direction on the pitch axis.
130+
* </p>
131+
* <p>
132+
* <b>Constraints:</b><br/>
133+
* <b>Length: </b>-180.0 - 180.0<br/>
134+
*
135+
* @param pitch <p>
136+
* Value representing eye direction on the pitch axis.
137+
* </p>
138+
*/
139+
public void setPitch(Float pitch) {
140+
this.pitch = pitch;
141+
}
142+
143+
/**
144+
* <p>
145+
* Value representing eye direction on the pitch axis.
146+
* </p>
147+
* <p>
148+
* Returns a reference to this object so that method calls can be chained
149+
* together.
150+
* <p>
151+
* <b>Constraints:</b><br/>
152+
* <b>Length: </b>-180.0 - 180.0<br/>
153+
*
154+
* @param pitch <p>
155+
* Value representing eye direction on the pitch axis.
156+
* </p>
157+
* @return A reference to this updated object so that method calls can be
158+
* chained together.
159+
*/
160+
public EyeDirection withPitch(Float pitch) {
161+
this.pitch = pitch;
162+
return this;
163+
}
164+
165+
/**
166+
* <p>
167+
* The confidence that the service has in its predicted eye direction.
168+
* </p>
169+
* <p>
170+
* <b>Constraints:</b><br/>
171+
* <b>Length: </b>0.0 - 100.0<br/>
172+
*
173+
* @return <p>
174+
* The confidence that the service has in its predicted eye
175+
* direction.
176+
* </p>
177+
*/
178+
public Float getConfidence() {
179+
return confidence;
180+
}
181+
182+
/**
183+
* <p>
184+
* The confidence that the service has in its predicted eye direction.
185+
* </p>
186+
* <p>
187+
* <b>Constraints:</b><br/>
188+
* <b>Length: </b>0.0 - 100.0<br/>
189+
*
190+
* @param confidence <p>
191+
* The confidence that the service has in its predicted eye
192+
* direction.
193+
* </p>
194+
*/
195+
public void setConfidence(Float confidence) {
196+
this.confidence = confidence;
197+
}
198+
199+
/**
200+
* <p>
201+
* The confidence that the service has in its predicted eye direction.
202+
* </p>
203+
* <p>
204+
* Returns a reference to this object so that method calls can be chained
205+
* together.
206+
* <p>
207+
* <b>Constraints:</b><br/>
208+
* <b>Length: </b>0.0 - 100.0<br/>
209+
*
210+
* @param confidence <p>
211+
* The confidence that the service has in its predicted eye
212+
* direction.
213+
* </p>
214+
* @return A reference to this updated object so that method calls can be
215+
* chained together.
216+
*/
217+
public EyeDirection withConfidence(Float confidence) {
218+
this.confidence = confidence;
219+
return this;
220+
}
221+
222+
/**
223+
* Returns a string representation of this object; useful for testing and
224+
* debugging.
225+
*
226+
* @return A string representation of this object.
227+
* @see java.lang.Object#toString()
228+
*/
229+
@Override
230+
public String toString() {
231+
StringBuilder sb = new StringBuilder();
232+
sb.append("{");
233+
if (getYaw() != null)
234+
sb.append("Yaw: " + getYaw() + ",");
235+
if (getPitch() != null)
236+
sb.append("Pitch: " + getPitch() + ",");
237+
if (getConfidence() != null)
238+
sb.append("Confidence: " + getConfidence());
239+
sb.append("}");
240+
return sb.toString();
241+
}
242+
243+
@Override
244+
public int hashCode() {
245+
final int prime = 31;
246+
int hashCode = 1;
247+
248+
hashCode = prime * hashCode + ((getYaw() == null) ? 0 : getYaw().hashCode());
249+
hashCode = prime * hashCode + ((getPitch() == null) ? 0 : getPitch().hashCode());
250+
hashCode = prime * hashCode + ((getConfidence() == null) ? 0 : getConfidence().hashCode());
251+
return hashCode;
252+
}
253+
254+
@Override
255+
public boolean equals(Object obj) {
256+
if (this == obj)
257+
return true;
258+
if (obj == null)
259+
return false;
260+
261+
if (obj instanceof EyeDirection == false)
262+
return false;
263+
EyeDirection other = (EyeDirection) obj;
264+
265+
if (other.getYaw() == null ^ this.getYaw() == null)
266+
return false;
267+
if (other.getYaw() != null && other.getYaw().equals(this.getYaw()) == false)
268+
return false;
269+
if (other.getPitch() == null ^ this.getPitch() == null)
270+
return false;
271+
if (other.getPitch() != null && other.getPitch().equals(this.getPitch()) == false)
272+
return false;
273+
if (other.getConfidence() == null ^ this.getConfidence() == null)
274+
return false;
275+
if (other.getConfidence() != null
276+
&& other.getConfidence().equals(this.getConfidence()) == false)
277+
return false;
278+
return true;
279+
}
280+
}

0 commit comments

Comments
 (0)