Class DefenseDocument


  • public class DefenseDocument
    extends Object
    DefenseDocument
    • Constructor Detail

      • DefenseDocument

        public DefenseDocument()
    • Method Detail

      • content

        public DefenseDocument content​(byte[] content)
        The content of the defense document.
        Parameters:
        content -
        Returns:
        the current DefenseDocument instance, allowing for method chaining
      • getContent

        public byte[] getContent()
        The content of the defense document.
        Returns:
        content
      • setContent

        public void setContent​(byte[] content)
        The content of the defense document.
        Parameters:
        content -
      • contentType

        public DefenseDocument contentType​(String contentType)
        The content type of the defense document.
        Parameters:
        contentType -
        Returns:
        the current DefenseDocument instance, allowing for method chaining
      • getContentType

        public String getContentType()
        The content type of the defense document.
        Returns:
        contentType
      • setContentType

        public void setContentType​(String contentType)
        The content type of the defense document.
        Parameters:
        contentType -
      • defenseDocumentTypeCode

        public DefenseDocument defenseDocumentTypeCode​(String defenseDocumentTypeCode)
        The document type code of the defense document.
        Parameters:
        defenseDocumentTypeCode -
        Returns:
        the current DefenseDocument instance, allowing for method chaining
      • getDefenseDocumentTypeCode

        public String getDefenseDocumentTypeCode()
        The document type code of the defense document.
        Returns:
        defenseDocumentTypeCode
      • setDefenseDocumentTypeCode

        public void setDefenseDocumentTypeCode​(String defenseDocumentTypeCode)
        The document type code of the defense document.
        Parameters:
        defenseDocumentTypeCode -
      • equals

        public boolean equals​(Object o)
        Return true if this DefenseDocument object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static DefenseDocument fromJson​(String jsonString)
                                        throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of DefenseDocument given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of DefenseDocument
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to DefenseDocument
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of DefenseDocument to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException