Summary Table
Categories |
Total Count |
PII |
0 |
URL |
0 |
DNS |
1 |
EKL |
0 |
IP |
0 |
PORT |
0 |
VsID |
0 |
CF |
0 |
AI |
0 |
VPD |
0 |
PL |
0 |
Other |
0 |
File Content
package gov.va.med.ewv.bean;
import java.util.List;
/**
* Specifies an Archive File Request to feed in as input into the "api/v1/filearchive"
* RESTFul Web Service. An JSON-formatted string version of an instance of this class
* will serve as the Request Body input to the "api/v1/filearchive" RESTFul Web Service.
*
* @author
DNS
*
*/
public class ArchiveFileRequest {
/**
* List of Archived PDF Reference object where each such object identifies a PDF Reference in
* the database whose Archive State will be set to "true".
*/
private List<ArchivedPdfReference> archivedPdfReferences;
/**
* Gets the list of Archived PDF Reference object where each such object identifies a PDF Reference in
* the database whose Archive State will be set to "true".
*
* @return - this list of Archived PDF Reference object where each such object identifies a PDF Reference in
* the database whose Archive State will be set to "true".
*/
public List<ArchivedPdfReference> getArchivedPdfReferences() {
return archivedPdfReferences;
}
/**
* Sets the list of Archived PDF Reference object where each such object identifies a PDF Reference in
* the database whose Archive State will be set to "true".
*
* @param archivedPdfReferences - the list of Archived PDF Reference objects
*/
public void setArchivedPdfReferences(List<ArchivedPdfReference> archivedPdfReferences) {
this.archivedPdfReferences = archivedPdfReferences;
}
/**
* Returns a string representation of this object. In general, the toString method
* returns a string that "textually represents" this object. The result should be
* a concise but informative representation that is easy for a person to read.
* It is recommended that all subclasses override this method.
*
* See the https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--
* web page for details.
*
* @return - a string representation of an instance of this class
*
*/
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("ArchiveFileRequest [archivedPdfReferences=");
builder.append(archivedPdfReferences);
builder.append("]");
return builder.toString();
}
/**
* Gets a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by HashMap.
* See the https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode-- web page for details.
*
* @return - a hash code value for the object
*/
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((archivedPdfReferences == null) ? 0 : archivedPdfReferences.hashCode());
return result;
}
/**
* Indicates whether some other object is "equal to" this one.
* See the https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object- web page for details.
*
* @return - 1) boolean true if some other object is "equal to" this one
* 2) boolean false if some other object is not "equal to" this one
*/
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
ArchiveFileRequest other = (ArchiveFileRequest) obj;
if (archivedPdfReferences == null) {
if (other.archivedPdfReferences != null)
return false;
} else if (!archivedPdfReferences.equals(other.archivedPdfReferences))
return false;
return true;
}
}