Class DocumentReference


  • public class DocumentReference
    extends Object
    DocumentReference
    • Constructor Detail

      • DocumentReference

        public DocumentReference()
    • Method Detail

      • active

        public DocumentReference active​(Boolean active)
        Identifies whether the document is active and used for checks.
        Parameters:
        active - Identifies whether the document is active and used for checks.
        Returns:
        the current DocumentReference instance, allowing for method chaining
      • getActive

        public Boolean getActive()
        Identifies whether the document is active and used for checks.
        Returns:
        active Identifies whether the document is active and used for checks.
      • setActive

        public void setActive​(Boolean active)
        Identifies whether the document is active and used for checks.
        Parameters:
        active - Identifies whether the document is active and used for checks.
      • description

        public DocumentReference description​(String description)
        Your description for the document.
        Parameters:
        description - Your description for the document.
        Returns:
        the current DocumentReference instance, allowing for method chaining
      • getDescription

        public String getDescription()
        Your description for the document.
        Returns:
        description Your description for the document.
      • setDescription

        public void setDescription​(String description)
        Your description for the document.
        Parameters:
        description - Your description for the document.
      • fileName

        public DocumentReference fileName​(String fileName)
        Document name.
        Parameters:
        fileName - Document name.
        Returns:
        the current DocumentReference instance, allowing for method chaining
      • getFileName

        public String getFileName()
        Document name.
        Returns:
        fileName Document name.
      • setFileName

        public void setFileName​(String fileName)
        Document name.
        Parameters:
        fileName - Document name.
      • id

        public DocumentReference id​(String id)
        The unique identifier of the resource.
        Parameters:
        id - The unique identifier of the resource.
        Returns:
        the current DocumentReference instance, allowing for method chaining
      • getId

        public String getId()
        The unique identifier of the resource.
        Returns:
        id The unique identifier of the resource.
      • setId

        public void setId​(String id)
        The unique identifier of the resource.
        Parameters:
        id - The unique identifier of the resource.
      • modificationDate

        public DocumentReference modificationDate​(OffsetDateTime modificationDate)
        The modification date of the document.
        Parameters:
        modificationDate - The modification date of the document.
        Returns:
        the current DocumentReference instance, allowing for method chaining
      • getModificationDate

        public OffsetDateTime getModificationDate()
        The modification date of the document.
        Returns:
        modificationDate The modification date of the document.
      • setModificationDate

        public void setModificationDate​(OffsetDateTime modificationDate)
        The modification date of the document.
        Parameters:
        modificationDate - The modification date of the document.
      • pages

        public DocumentReference pages​(List<DocumentPage> pages)
        List of document pages
        Parameters:
        pages - List of document pages
        Returns:
        the current DocumentReference instance, allowing for method chaining
      • getPages

        public List<DocumentPage> getPages()
        List of document pages
        Returns:
        pages List of document pages
      • setPages

        public void setPages​(List<DocumentPage> pages)
        List of document pages
        Parameters:
        pages - List of document pages
      • type

        public DocumentReference type​(String type)
        Type of document, used when providing an ID number or uploading a document.
        Parameters:
        type - Type of document, used when providing an ID number or uploading a document.
        Returns:
        the current DocumentReference instance, allowing for method chaining
      • getType

        public String getType()
        Type of document, used when providing an ID number or uploading a document.
        Returns:
        type Type of document, used when providing an ID number or uploading a document.
      • setType

        public void setType​(String type)
        Type of document, used when providing an ID number or uploading a document.
        Parameters:
        type - Type of document, used when providing an ID number or uploading a document.
      • includeNullValues

        public DocumentReference includeNullValues​(boolean includeNullValues)
        Configures whether null values are explicitly serialized in the JSON payload. Default is false.
      • isIncludeNullValues

        public boolean isIncludeNullValues()
        Returns whether null values are explicitly serialized in the JSON payload.
      • setIncludeNullValues

        public void setIncludeNullValues​(boolean includeNullValues)
        Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
      • equals

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

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

        public Map<String,​Object> getExplicitNulls()
        Returns a map of properties to be merged into the JSON payload as explicit null values.
      • fromJson

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

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