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 Summary
Modifier and TypeMethodDescriptionattributes
(Map<String, String> attributes) A list of name-attribute pairs.default OTAUpdateFile.Builder
codeSigning
(Consumer<CodeSigning.Builder> codeSigning) The code signing method of the file.codeSigning
(CodeSigning codeSigning) The code signing method of the file.default OTAUpdateFile.Builder
fileLocation
(Consumer<FileLocation.Builder> fileLocation) The location of the updated firmware.fileLocation
(FileLocation fileLocation) The location of the updated firmware.The name of the file.An integer value you can include in the job document to allow your devices to identify the type of file received from the cloud.fileVersion
(String fileVersion) The file version.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
The file version.
- Parameters:
fileVersion
- The file version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
The location of the updated firmware.
This is a convenience method that creates an instance of theFileLocation.Builder
avoiding the need to create one manually viaFileLocation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofileLocation(FileLocation)
.- Parameters:
fileLocation
- a consumer that will call methods onFileLocation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
The code signing method of the file.
This is a convenience method that creates an instance of theCodeSigning.Builder
avoiding the need to create one manually viaCodeSigning.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocodeSigning(CodeSigning)
.- Parameters:
codeSigning
- a consumer that will call methods onCodeSigning.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-