Interface OTAUpdateFile.Builder

All Superinterfaces:
Buildable, CopyableBuilder<OTAUpdateFile.Builder,OTAUpdateFile>, SdkBuilder<OTAUpdateFile.Builder,OTAUpdateFile>, SdkPojo
Enclosing class:
OTAUpdateFile

public static interface OTAUpdateFile.Builder extends SdkPojo, CopyableBuilder<OTAUpdateFile.Builder,OTAUpdateFile>
  • Method Details

    • 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.
    • fileLocation

      default OTAUpdateFile.Builder fileLocation(Consumer<FileLocation.Builder> fileLocation)

      The location of the updated firmware.

      This is a convenience method that creates an instance of the FileLocation.Builder avoiding the need to create one manually via FileLocation.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to fileLocation(FileLocation).

      Parameters:
      fileLocation - a consumer that will call methods on FileLocation.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • codeSigning

      default OTAUpdateFile.Builder codeSigning(Consumer<CodeSigning.Builder> codeSigning)

      The code signing method of the file.

      This is a convenience method that creates an instance of the CodeSigning.Builder avoiding the need to create one manually via CodeSigning.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to codeSigning(CodeSigning).

      Parameters:
      codeSigning - a consumer that will call methods on CodeSigning.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.