Skip to content

Commit

Permalink
feat(aws-android-sdk-rekognition): update models to latest (aws-ampli…
Browse files Browse the repository at this point in the history
  • Loading branch information
awsmobilesdk authored Jun 16, 2023
1 parent db6159a commit ce33403
Show file tree
Hide file tree
Showing 83 changed files with 12,404 additions and 5 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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;
}
}
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);
}
}
Loading

0 comments on commit ce33403

Please sign in to comment.