public class DeleteFacesRequest extends AmazonWebServiceRequest implements java.io.Serializable
Deletes faces from a collection. You specify a collection ID and an array of face IDs to remove from the collection.
This operation requires permissions to perform the
rekognition:DeleteFaces
action.
Constructor and Description |
---|
DeleteFacesRequest()
Default constructor for DeleteFacesRequest object.
|
DeleteFacesRequest(java.lang.String collectionId,
java.util.List<java.lang.String> faceIds)
Constructs a new DeleteFacesRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCollectionId()
Collection from which to remove the specific faces.
|
java.util.List<java.lang.String> |
getFaceIds()
An array of face IDs to delete.
|
int |
hashCode() |
void |
setCollectionId(java.lang.String collectionId)
Collection from which to remove the specific faces.
|
void |
setFaceIds(java.util.Collection<java.lang.String> faceIds)
An array of face IDs to delete.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteFacesRequest |
withCollectionId(java.lang.String collectionId)
Collection from which to remove the specific faces.
|
DeleteFacesRequest |
withFaceIds(java.util.Collection<java.lang.String> faceIds)
An array of face IDs to delete.
|
DeleteFacesRequest |
withFaceIds(java.lang.String... faceIds)
An array of face IDs to delete.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DeleteFacesRequest()
public DeleteFacesRequest(java.lang.String collectionId, java.util.List<java.lang.String> faceIds)
collectionId
- Collection from which to remove the specific faces.
faceIds
- An array of face IDs to delete.
public java.lang.String getCollectionId()
Collection from which to remove the specific faces.
Constraints:
Length: 1 - 255
Pattern: [a-zA-Z0-9_.\-]+
Collection from which to remove the specific faces.
public void setCollectionId(java.lang.String collectionId)
Collection from which to remove the specific faces.
Constraints:
Length: 1 - 255
Pattern: [a-zA-Z0-9_.\-]+
collectionId
- Collection from which to remove the specific faces.
public DeleteFacesRequest withCollectionId(java.lang.String collectionId)
Collection from which to remove the specific faces.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [a-zA-Z0-9_.\-]+
collectionId
- Collection from which to remove the specific faces.
public java.util.List<java.lang.String> getFaceIds()
An array of face IDs to delete.
An array of face IDs to delete.
public void setFaceIds(java.util.Collection<java.lang.String> faceIds)
An array of face IDs to delete.
faceIds
- An array of face IDs to delete.
public DeleteFacesRequest withFaceIds(java.lang.String... faceIds)
An array of face IDs to delete.
Returns a reference to this object so that method calls can be chained together.
faceIds
- An array of face IDs to delete.
public DeleteFacesRequest withFaceIds(java.util.Collection<java.lang.String> faceIds)
An array of face IDs to delete.
Returns a reference to this object so that method calls can be chained together.
faceIds
- An array of face IDs to delete.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.