/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCollectionId() != null) sb.append("CollectionId: ").append(getCollectionId()).append(","); if (getImage() != null) sb.append("Image: ").append(getImage()).append(","); if (getExternalImageId() != null) sb.append("ExternalImageId: ").append(getExternalImageId()).append(","); if (getDetectionAttributes() != null) sb.append("DetectionAttributes: ").append(getDetectionAttributes()).append(","); if (getMaxFaces() != null) sb.append("MaxFaces: ").append(getMaxFaces()).append(","); if (getQualityFilter() != null) sb.append("QualityFilter: ").append(getQualityFilter()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCollectionId() == null) ? 0 : getCollectionId().hashCode()); hashCode = prime * hashCode + ((getImage() == null) ? 0 : getImage().hashCode()); hashCode = prime * hashCode + ((getExternalImageId() == null) ? 0 : getExternalImageId().hashCode()); hashCode = prime * hashCode + ((getDetectionAttributes() == null) ? 0 : getDetectionAttributes().hashCode()); hashCode = prime * hashCode + ((getMaxFaces() == null) ? 0 : getMaxFaces().hashCode()); hashCode = prime * hashCode + ((getQualityFilter() == null) ? 0 : getQualityFilter().hashCode()); return hashCode; }
/** * Marshall the given parameter object. */ public void marshall(IndexFacesRequest indexFacesRequest, ProtocolMarshaller protocolMarshaller) { if (indexFacesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(indexFacesRequest.getCollectionId(), COLLECTIONID_BINDING); protocolMarshaller.marshall(indexFacesRequest.getImage(), IMAGE_BINDING); protocolMarshaller.marshall(indexFacesRequest.getExternalImageId(), EXTERNALIMAGEID_BINDING); protocolMarshaller.marshall(indexFacesRequest.getDetectionAttributes(), DETECTIONATTRIBUTES_BINDING); protocolMarshaller.marshall(indexFacesRequest.getMaxFaces(), MAXFACES_BINDING); protocolMarshaller.marshall(indexFacesRequest.getQualityFilter(), QUALITYFILTER_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
if (other.getDetectionAttributes() != null && other.getDetectionAttributes().equals(this.getDetectionAttributes()) == false) return false; if (other.getMaxFaces() == null ^ this.getMaxFaces() == null) return false; if (other.getMaxFaces() != null && other.getMaxFaces().equals(this.getMaxFaces()) == false) return false; if (other.getQualityFilter() == null ^ this.getQualityFilter() == null)