public class OTAUpdateFile
extends java.lang.Object
implements java.io.Serializable
Describes a file to be associated with an OTA update.
Constructor and Description |
---|
OTAUpdateFile() |
Modifier and Type | Method and Description |
---|---|
OTAUpdateFile |
addattributesEntry(java.lang.String key,
java.lang.String value)
A list of name/attribute pairs.
|
OTAUpdateFile |
clearattributesEntries()
Removes all the entries added into attributes.
|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
A list of name/attribute pairs.
|
CodeSigning |
getCodeSigning()
The code signing method of the file.
|
FileLocation |
getFileLocation()
The location of the updated firmware.
|
java.lang.String |
getFileName()
The name of the file.
|
java.lang.Integer |
getFileType()
An integer value you can include in the job document to allow your
devices to identify the type of file received from the cloud.
|
java.lang.String |
getFileVersion()
The file version.
|
int |
hashCode() |
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
A list of name/attribute pairs.
|
void |
setCodeSigning(CodeSigning codeSigning)
The code signing method of the file.
|
void |
setFileLocation(FileLocation fileLocation)
The location of the updated firmware.
|
void |
setFileName(java.lang.String fileName)
The name of the file.
|
void |
setFileType(java.lang.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.
|
void |
setFileVersion(java.lang.String fileVersion)
The file version.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
OTAUpdateFile |
withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
A list of name/attribute pairs.
|
OTAUpdateFile |
withCodeSigning(CodeSigning codeSigning)
The code signing method of the file.
|
OTAUpdateFile |
withFileLocation(FileLocation fileLocation)
The location of the updated firmware.
|
OTAUpdateFile |
withFileName(java.lang.String fileName)
The name of the file.
|
OTAUpdateFile |
withFileType(java.lang.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 |
withFileVersion(java.lang.String fileVersion)
The file version.
|
public java.lang.String getFileName()
The name of the file.
The name of the file.
public void setFileName(java.lang.String fileName)
The name of the file.
fileName
- The name of the file.
public OTAUpdateFile withFileName(java.lang.String fileName)
The name of the file.
Returns a reference to this object so that method calls can be chained together.
fileName
- The name of the file.
public java.lang.Integer getFileType()
An integer value you can include in the job document to allow your devices to identify the type of file received from the cloud.
Constraints:
Range: 0 - 255
An integer value you can include in the job document to allow your devices to identify the type of file received from the cloud.
public void setFileType(java.lang.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.
Constraints:
Range: 0 - 255
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.
public OTAUpdateFile withFileType(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 - 255
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.
public java.lang.String getFileVersion()
The file version.
The file version.
public void setFileVersion(java.lang.String fileVersion)
The file version.
fileVersion
- The file version.
public OTAUpdateFile withFileVersion(java.lang.String fileVersion)
The file version.
Returns a reference to this object so that method calls can be chained together.
fileVersion
- The file version.
public FileLocation getFileLocation()
The location of the updated firmware.
The location of the updated firmware.
public void setFileLocation(FileLocation fileLocation)
The location of the updated firmware.
fileLocation
- The location of the updated firmware.
public OTAUpdateFile withFileLocation(FileLocation fileLocation)
The location of the updated firmware.
Returns a reference to this object so that method calls can be chained together.
fileLocation
- The location of the updated firmware.
public CodeSigning getCodeSigning()
The code signing method of the file.
The code signing method of the file.
public void setCodeSigning(CodeSigning codeSigning)
The code signing method of the file.
codeSigning
- The code signing method of the file.
public OTAUpdateFile withCodeSigning(CodeSigning codeSigning)
The code signing method of the file.
Returns a reference to this object so that method calls can be chained together.
codeSigning
- The code signing method of the file.
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
A list of name/attribute pairs.
A list of name/attribute pairs.
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
A list of name/attribute pairs.
attributes
- A list of name/attribute pairs.
public OTAUpdateFile withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
A list of name/attribute pairs.
Returns a reference to this object so that method calls can be chained together.
attributes
- A list of name/attribute pairs.
public OTAUpdateFile addattributesEntry(java.lang.String key, java.lang.String value)
A list of name/attribute pairs.
The method adds a new key-value pair into attributes parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into attributes.value
- The corresponding value of the entry to be added into
attributes.public OTAUpdateFile clearattributesEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.