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.Builderattributes(Map<String,String> attributes)A list of name-attribute pairs.default OTAUpdateFile.BuildercodeSigning(Consumer<CodeSigning.Builder> codeSigning)The code signing method of the file.OTAUpdateFile.BuildercodeSigning(CodeSigning codeSigning)The code signing method of the file.default OTAUpdateFile.BuilderfileLocation(Consumer<FileLocation.Builder> fileLocation)The location of the updated firmware.OTAUpdateFile.BuilderfileLocation(FileLocation fileLocation)The location of the updated firmware.OTAUpdateFile.BuilderfileName(String fileName)The name of the file.OTAUpdateFile.BuilderfileType(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.BuilderfileVersion(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.Builderavoiding the need to create one manually viaFileLocation.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaCodeSigning.builder().When the
Consumercompletes,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.
-
-