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

    Fields
    Modifier and Type
    Field
    Description
    private final DcvError
    The field for the dcvError record component.
    private final String
    The field for the fileContents record component.
    private final String
    The field for the fileUrl record component.
    private final MpicDetails
    The field for the mpicDetails record component.
    private final int
    The field for the statusCode record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    MpicFileDetails(MpicDetails mpicDetails, String fileUrl, String fileContents, int statusCode, DcvError dcvError)
    Creates an instance of a MpicFileDetails record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the dcvError record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the fileContents record component.
    Returns the value of the fileUrl record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the mpicDetails record component.
    int
    Returns the value of the statusCode record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • mpicDetails

      private final MpicDetails mpicDetails
      The field for the mpicDetails record component.
    • fileUrl

      private final String fileUrl
      The field for the fileUrl record component.
    • fileContents

      private final String fileContents
      The field for the fileContents record component.
    • statusCode

      private final int statusCode
      The field for the statusCode record component.
    • dcvError

      private final DcvError dcvError
      The field for the dcvError record component.
  • Constructor Details

    • MpicFileDetails

      public MpicFileDetails(MpicDetails mpicDetails, String fileUrl, String fileContents, int statusCode, DcvError dcvError)
      Creates an instance of a MpicFileDetails record class.
      Parameters:
      mpicDetails - the value for the mpicDetails record component
      fileUrl - the value for the fileUrl record component
      fileContents - the value for the fileContents record component
      statusCode - the value for the statusCode record component
      dcvError - the value for the dcvError record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • mpicDetails

      public MpicDetails mpicDetails()
      Returns the value of the mpicDetails record component.
      Returns:
      the value of the mpicDetails record component
    • fileUrl

      public String fileUrl()
      Returns the value of the fileUrl record component.
      Returns:
      the value of the fileUrl record component
    • fileContents

      public String fileContents()
      Returns the value of the fileContents record component.
      Returns:
      the value of the fileContents record component
    • statusCode

      public int statusCode()
      Returns the value of the statusCode record component.
      Returns:
      the value of the statusCode record component
    • dcvError

      public DcvError dcvError()
      Returns the value of the dcvError record component.
      Returns:
      the value of the dcvError record component