/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.iot.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes a file to be associated with an OTA update. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class OTAUpdateFile implements Serializable, Cloneable, StructuredPojo { /** ** The name of the file. *
*/ private String fileName; /** ** An integer value you can include in the job document to allow your devices to identify the type of file received * from the cloud. *
*/ private Integer fileType; /** ** The file version. *
*/ private String fileVersion; /** ** The location of the updated firmware. *
*/ private FileLocation fileLocation; /** ** The code signing method of the file. *
*/ private CodeSigning codeSigning; /** ** A list of name/attribute pairs. *
*/ private java.util.Map* The name of the file. *
* * @param fileName * The name of the file. */ public void setFileName(String fileName) { this.fileName = fileName; } /** ** The name of the file. *
* * @return The name of the file. */ public String getFileName() { return this.fileName; } /** ** The name of the file. *
* * @param fileName * The name of the file. * @return Returns a reference to this object so that method calls can be chained together. */ public OTAUpdateFile withFileName(String fileName) { setFileName(fileName); return this; } /** ** An integer value you can include in the job document to allow your devices to identify the type of file received * from the cloud. *
* * @param 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 void setFileType(Integer fileType) { this.fileType = 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. *
* * @return 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 Integer getFileType() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public OTAUpdateFile withFileType(Integer fileType) { setFileType(fileType); return this; } /** ** The file version. *
* * @param fileVersion * The file version. */ public void setFileVersion(String fileVersion) { this.fileVersion = fileVersion; } /** ** The file version. *
* * @return The file version. */ public String getFileVersion() { return this.fileVersion; } /** ** The file version. *
* * @param fileVersion * The file version. * @return Returns a reference to this object so that method calls can be chained together. */ public OTAUpdateFile withFileVersion(String fileVersion) { setFileVersion(fileVersion); return this; } /** ** The location of the updated firmware. *
* * @param fileLocation * The location of the updated firmware. */ public void setFileLocation(FileLocation fileLocation) { this.fileLocation = fileLocation; } /** ** The location of the updated firmware. *
* * @return The location of the updated firmware. */ public FileLocation getFileLocation() { return this.fileLocation; } /** ** The location of the updated firmware. *
* * @param fileLocation * The location of the updated firmware. * @return Returns a reference to this object so that method calls can be chained together. */ public OTAUpdateFile withFileLocation(FileLocation fileLocation) { setFileLocation(fileLocation); return this; } /** ** The code signing method of the file. *
* * @param codeSigning * The code signing method of the file. */ public void setCodeSigning(CodeSigning codeSigning) { this.codeSigning = codeSigning; } /** ** The code signing method of the file. *
* * @return The code signing method of the file. */ public CodeSigning getCodeSigning() { return this.codeSigning; } /** ** The code signing method of the file. *
* * @param codeSigning * The code signing method of the file. * @return Returns a reference to this object so that method calls can be chained together. */ public OTAUpdateFile withCodeSigning(CodeSigning codeSigning) { setCodeSigning(codeSigning); return this; } /** ** A list of name/attribute pairs. *
* * @return A list of name/attribute pairs. */ public java.util.Map* A list of name/attribute pairs. *
* * @param attributes * A list of name/attribute pairs. */ public void setAttributes(java.util.Map* A list of name/attribute pairs. *
* * @param attributes * A list of name/attribute pairs. * @return Returns a reference to this object so that method calls can be chained together. */ public OTAUpdateFile withAttributes(java.util.Map