Class GetMetadataResult.Builder

    • Field Detail

      • fileId

        protected java.lang.String fileId
      • title

        protected java.lang.String title
      • mimeType

        protected java.lang.String mimeType
      • version

        protected java.lang.String version
      • providerVersion

        protected java.lang.String providerVersion
      • isDeleted

        protected boolean isDeleted
    • Constructor Detail

      • Builder

        protected Builder()
    • Method Detail

      • withFileId

        public GetMetadataResult.Builder withFileId​(java.lang.String fileId)
        Set value for optional field.

        If left unset or set to null, defaults to "\"\"".

        Parameters:
        fileId - Must not be null. Defaults to "\"\"" when set to null.
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • withTitle

        public GetMetadataResult.Builder withTitle​(java.lang.String title)
        Set value for optional field.

        If left unset or set to null, defaults to "\"\"".

        Parameters:
        title - Title of the Cloud Doc without extension. Must not be null. Defaults to "\"\"" when set to null.
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • withMimeType

        public GetMetadataResult.Builder withMimeType​(java.lang.String mimeType)
        Set value for optional field.

        If left unset or set to null, defaults to "\"\"".

        Parameters:
        mimeType - MIME type of the Cloud Doc. Must not be null. Defaults to "\"\"" when set to null.
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • withVersion

        public GetMetadataResult.Builder withVersion​(java.lang.String version)
        Set value for optional field.

        If left unset or set to null, defaults to "\"\"".

        Parameters:
        version - Opaque string representing the version of the document stored in Dropbox (only set for Dropbox-stored Documents). Must not be null. Defaults to "\"\"" when set to null.
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • withProviderVersion

        public GetMetadataResult.Builder withProviderVersion​(java.lang.String providerVersion)
        Set value for optional field.

        If left unset or set to null, defaults to "\"\"".

        Parameters:
        providerVersion - Application specific string representing the revision of a document (only set for App-stored Documents). Must not be null. Defaults to "\"\"" when set to null.
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • withUser

        public GetMetadataResult.Builder withUser​(UserInfo user)
        Set value for optional field.
        Parameters:
        user - User identified by the auth token.
        Returns:
        this builder
      • withIsDeleted

        public GetMetadataResult.Builder withIsDeleted​(java.lang.Boolean isDeleted)
        Set value for optional field.

        If left unset or set to null, defaults to false.

        Parameters:
        isDeleted - true if the document is deleted or purged. Defaults to false when set to null.
        Returns:
        this builder
      • withUserPermissions

        public GetMetadataResult.Builder withUserPermissions​(UserPermissions userPermissions)
        Set value for optional field.
        Parameters:
        userPermissions - Actions that the user identified by the auth token can performn. This message will not be populated for deleted documents.
        Returns:
        this builder