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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description OTAUpdateFile.Builder
attributes(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.OTAUpdateFile.Builder
codeSigning(CodeSigning codeSigning)
The code signing method of the file.default OTAUpdateFile.Builder
fileLocation(Consumer<FileLocation.Builder> fileLocation)
The location of the updated firmware.OTAUpdateFile.Builder
fileLocation(FileLocation fileLocation)
The location of the updated firmware.OTAUpdateFile.Builder
fileName(String fileName)
The name of the file.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.OTAUpdateFile.Builder
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 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.
-
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 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:
fileLocation(FileLocation)
-
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 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:
codeSigning(CodeSigning)
-
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.
-
-