forked from aws-amplify/aws-sdk-android
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(aws-android-sdk-rekognition): update models to latest (aws-ampli…
- Loading branch information
1 parent
db6159a
commit ce33403
Showing
83 changed files
with
12,404 additions
and
5 deletions.
There are no files selected for viewing
334 changes: 334 additions & 0 deletions
334
...d-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/AmazonRekognition.java
Large diffs are not rendered by default.
Oops, something went wrong.
521 changes: 521 additions & 0 deletions
521
...rekognition/src/main/java/com/amazonaws/services/rekognition/AmazonRekognitionClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
533 changes: 533 additions & 0 deletions
533
...gnition/src/main/java/com/amazonaws/services/rekognition/model/AssociateFacesRequest.java
Large diffs are not rendered by default.
Oops, something went wrong.
409 changes: 409 additions & 0 deletions
409
...ognition/src/main/java/com/amazonaws/services/rekognition/model/AssociateFacesResult.java
Large diffs are not rendered by default.
Oops, something went wrong.
138 changes: 138 additions & 0 deletions
138
...dk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/AssociatedFace.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
/* | ||
* Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://aws.amazon.com/apache2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
|
||
package com.amazonaws.services.rekognition.model; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* <p> | ||
* Provides face metadata for the faces that are associated to a specific | ||
* UserID. | ||
* </p> | ||
*/ | ||
public class AssociatedFace implements Serializable { | ||
/** | ||
* <p> | ||
* Unique identifier assigned to the face. | ||
* </p> | ||
* <p> | ||
* <b>Constraints:</b><br/> | ||
* <b>Pattern: | ||
* </b>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}<br/> | ||
*/ | ||
private String faceId; | ||
|
||
/** | ||
* <p> | ||
* Unique identifier assigned to the face. | ||
* </p> | ||
* <p> | ||
* <b>Constraints:</b><br/> | ||
* <b>Pattern: | ||
* </b>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}<br/> | ||
* | ||
* @return <p> | ||
* Unique identifier assigned to the face. | ||
* </p> | ||
*/ | ||
public String getFaceId() { | ||
return faceId; | ||
} | ||
|
||
/** | ||
* <p> | ||
* Unique identifier assigned to the face. | ||
* </p> | ||
* <p> | ||
* <b>Constraints:</b><br/> | ||
* <b>Pattern: | ||
* </b>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}<br/> | ||
* | ||
* @param faceId <p> | ||
* Unique identifier assigned to the face. | ||
* </p> | ||
*/ | ||
public void setFaceId(String faceId) { | ||
this.faceId = faceId; | ||
} | ||
|
||
/** | ||
* <p> | ||
* Unique identifier assigned to the face. | ||
* </p> | ||
* <p> | ||
* Returns a reference to this object so that method calls can be chained | ||
* together. | ||
* <p> | ||
* <b>Constraints:</b><br/> | ||
* <b>Pattern: | ||
* </b>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}<br/> | ||
* | ||
* @param faceId <p> | ||
* Unique identifier assigned to the face. | ||
* </p> | ||
* @return A reference to this updated object so that method calls can be | ||
* chained together. | ||
*/ | ||
public AssociatedFace withFaceId(String faceId) { | ||
this.faceId = faceId; | ||
return this; | ||
} | ||
|
||
/** | ||
* Returns a string representation of this object; useful for testing and | ||
* debugging. | ||
* | ||
* @return A string representation of this object. | ||
* @see java.lang.Object#toString() | ||
*/ | ||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("{"); | ||
if (getFaceId() != null) | ||
sb.append("FaceId: " + getFaceId()); | ||
sb.append("}"); | ||
return sb.toString(); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
final int prime = 31; | ||
int hashCode = 1; | ||
|
||
hashCode = prime * hashCode + ((getFaceId() == null) ? 0 : getFaceId().hashCode()); | ||
return hashCode; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object obj) { | ||
if (this == obj) | ||
return true; | ||
if (obj == null) | ||
return false; | ||
|
||
if (obj instanceof AssociatedFace == false) | ||
return false; | ||
AssociatedFace other = (AssociatedFace) obj; | ||
|
||
if (other.getFaceId() == null ^ this.getFaceId() == null) | ||
return false; | ||
if (other.getFaceId() != null && other.getFaceId().equals(this.getFaceId()) == false) | ||
return false; | ||
return true; | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...rekognition/src/main/java/com/amazonaws/services/rekognition/model/ConflictException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://aws.amazon.com/apache2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
|
||
package com.amazonaws.services.rekognition.model; | ||
|
||
import com.amazonaws.AmazonServiceException; | ||
|
||
/** | ||
* <p> | ||
* A User with the same Id already exists within the collection, or the update | ||
* or deletion of the User caused an inconsistent state. ** | ||
* </p> | ||
*/ | ||
public class ConflictException extends AmazonServiceException { | ||
private static final long serialVersionUID = 1L; | ||
|
||
/** | ||
* Constructs a new ConflictException with the specified error message. | ||
* | ||
* @param message Describes the error encountered. | ||
*/ | ||
public ConflictException(String message) { | ||
super(message); | ||
} | ||
} |
Oops, something went wrong.