Interface OTAUpdateFile.Builder

    • Method Detail

      • fileName

        OTAUpdateFile.Builder fileName​(String fileName)

        The name of the file.

        Parameters:
        fileName - The name of the file.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • fileType

        OTAUpdateFile.Builder fileType​(Integer fileType)

        An integer value you can include in the job document to allow your devices to identify the type of file received from the cloud.

        Parameters:
        fileType - An integer value you can include in the job document to allow your devices to identify the type of file received from the cloud.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • fileVersion

        OTAUpdateFile.Builder fileVersion​(String fileVersion)

        The file version.

        Parameters:
        fileVersion - The file version.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • fileLocation

        OTAUpdateFile.Builder fileLocation​(FileLocation fileLocation)

        The location of the updated firmware.

        Parameters:
        fileLocation - The location of the updated firmware.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • codeSigning

        OTAUpdateFile.Builder codeSigning​(CodeSigning codeSigning)

        The code signing method of the file.

        Parameters:
        codeSigning - The code signing method of the file.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • attributes

        OTAUpdateFile.Builder attributes​(Map<String,​String> attributes)

        A list of name-attribute pairs. They won't be sent to devices as a part of the Job document.

        Parameters:
        attributes - A list of name-attribute pairs. They won't be sent to devices as a part of the Job document.
        Returns:
        Returns a reference to this object so that method calls can be chained together.