Record Class MpicFileDetails
java.lang.Object
java.lang.Record
com.digicert.validation.methods.file.validate.MpicFileDetails
public record MpicFileDetails(MpicDetails mpicDetails, String fileUrl, String fileContents, int statusCode, DcvError dcvError)
extends Record
Represents the details of a file used for MPIC (Multi-Perspective Corroboration)
validation, including the MPIC details, file URL, file content, status code, and any
associated error.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DcvErrorThe field for thedcvErrorrecord component.private final StringThe field for thefileContentsrecord component.private final StringThe field for thefileUrlrecord component.private final MpicDetailsThe field for thempicDetailsrecord component.private final intThe field for thestatusCoderecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMpicFileDetails(MpicDetails mpicDetails, String fileUrl, String fileContents, int statusCode, DcvError dcvError) Creates an instance of aMpicFileDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondcvError()Returns the value of thedcvErrorrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileContentsrecord component.fileUrl()Returns the value of thefileUrlrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thempicDetailsrecord component.intReturns the value of thestatusCoderecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
mpicDetails
The field for thempicDetailsrecord component. -
fileUrl
The field for thefileUrlrecord component. -
fileContents
The field for thefileContentsrecord component. -
statusCode
private final int statusCodeThe field for thestatusCoderecord component. -
dcvError
The field for thedcvErrorrecord component.
-
-
Constructor Details
-
MpicFileDetails
public MpicFileDetails(MpicDetails mpicDetails, String fileUrl, String fileContents, int statusCode, DcvError dcvError) Creates an instance of aMpicFileDetailsrecord class.- Parameters:
mpicDetails- the value for thempicDetailsrecord componentfileUrl- the value for thefileUrlrecord componentfileContents- the value for thefileContentsrecord componentstatusCode- the value for thestatusCoderecord componentdcvError- the value for thedcvErrorrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
mpicDetails
Returns the value of thempicDetailsrecord component.- Returns:
- the value of the
mpicDetailsrecord component
-
fileUrl
Returns the value of thefileUrlrecord component.- Returns:
- the value of the
fileUrlrecord component
-
fileContents
Returns the value of thefileContentsrecord component.- Returns:
- the value of the
fileContentsrecord component
-
statusCode
public int statusCode()Returns the value of thestatusCoderecord component.- Returns:
- the value of the
statusCoderecord component
-
dcvError
Returns the value of thedcvErrorrecord component.- Returns:
- the value of the
dcvErrorrecord component
-