AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
OTAUpdateFile.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/model/FileLocation.h>
10#include <aws/iot/model/CodeSigning.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoT
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_IOT_API OTAUpdateFile() = default;
42
43
45
48 inline const Aws::String& GetFileName() const { return m_fileName; }
49 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
50 template<typename FileNameT = Aws::String>
51 void SetFileName(FileNameT&& value) { m_fileNameHasBeenSet = true; m_fileName = std::forward<FileNameT>(value); }
52 template<typename FileNameT = Aws::String>
53 OTAUpdateFile& WithFileName(FileNameT&& value) { SetFileName(std::forward<FileNameT>(value)); return *this;}
55
57
61 inline int GetFileType() const { return m_fileType; }
62 inline bool FileTypeHasBeenSet() const { return m_fileTypeHasBeenSet; }
63 inline void SetFileType(int value) { m_fileTypeHasBeenSet = true; m_fileType = value; }
64 inline OTAUpdateFile& WithFileType(int value) { SetFileType(value); return *this;}
66
68
71 inline const Aws::String& GetFileVersion() const { return m_fileVersion; }
72 inline bool FileVersionHasBeenSet() const { return m_fileVersionHasBeenSet; }
73 template<typename FileVersionT = Aws::String>
74 void SetFileVersion(FileVersionT&& value) { m_fileVersionHasBeenSet = true; m_fileVersion = std::forward<FileVersionT>(value); }
75 template<typename FileVersionT = Aws::String>
76 OTAUpdateFile& WithFileVersion(FileVersionT&& value) { SetFileVersion(std::forward<FileVersionT>(value)); return *this;}
78
80
83 inline const FileLocation& GetFileLocation() const { return m_fileLocation; }
84 inline bool FileLocationHasBeenSet() const { return m_fileLocationHasBeenSet; }
85 template<typename FileLocationT = FileLocation>
86 void SetFileLocation(FileLocationT&& value) { m_fileLocationHasBeenSet = true; m_fileLocation = std::forward<FileLocationT>(value); }
87 template<typename FileLocationT = FileLocation>
88 OTAUpdateFile& WithFileLocation(FileLocationT&& value) { SetFileLocation(std::forward<FileLocationT>(value)); return *this;}
90
92
95 inline const CodeSigning& GetCodeSigning() const { return m_codeSigning; }
96 inline bool CodeSigningHasBeenSet() const { return m_codeSigningHasBeenSet; }
97 template<typename CodeSigningT = CodeSigning>
98 void SetCodeSigning(CodeSigningT&& value) { m_codeSigningHasBeenSet = true; m_codeSigning = std::forward<CodeSigningT>(value); }
99 template<typename CodeSigningT = CodeSigning>
100 OTAUpdateFile& WithCodeSigning(CodeSigningT&& value) { SetCodeSigning(std::forward<CodeSigningT>(value)); return *this;}
102
104
108 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
109 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
110 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
111 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
112 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
113 OTAUpdateFile& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
114 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
115 OTAUpdateFile& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
116 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
117 }
119 private:
120
121 Aws::String m_fileName;
122 bool m_fileNameHasBeenSet = false;
123
124 int m_fileType{0};
125 bool m_fileTypeHasBeenSet = false;
126
127 Aws::String m_fileVersion;
128 bool m_fileVersionHasBeenSet = false;
129
130 FileLocation m_fileLocation;
131 bool m_fileLocationHasBeenSet = false;
132
133 CodeSigning m_codeSigning;
134 bool m_codeSigningHasBeenSet = false;
135
137 bool m_attributesHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace IoT
142} // namespace Aws
AWS_IOT_API OTAUpdateFile & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API OTAUpdateFile()=default
const Aws::String & GetFileVersion() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetFileName() const
void SetFileName(FileNameT &&value)
OTAUpdateFile & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
AWS_IOT_API OTAUpdateFile(Aws::Utils::Json::JsonView jsonValue)
OTAUpdateFile & WithFileType(int value)
OTAUpdateFile & WithFileVersion(FileVersionT &&value)
OTAUpdateFile & WithAttributes(AttributesT &&value)
OTAUpdateFile & WithFileLocation(FileLocationT &&value)
const FileLocation & GetFileLocation() const
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
OTAUpdateFile & WithCodeSigning(CodeSigningT &&value)
const CodeSigning & GetCodeSigning() const
void SetAttributes(AttributesT &&value)
void SetFileLocation(FileLocationT &&value)
void SetFileVersion(FileVersionT &&value)
void SetCodeSigning(CodeSigningT &&value)
OTAUpdateFile & WithFileName(FileNameT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue