AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
OTAUpdateFile.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/CodeSigning.h>
11#include <aws/iot/model/FileLocation.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoT {
23namespace Model {
24
32 public:
33 AWS_IOT_API OTAUpdateFile() = default;
37
39
42 inline const Aws::String& GetFileName() const { return m_fileName; }
43 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
44 template <typename FileNameT = Aws::String>
45 void SetFileName(FileNameT&& value) {
46 m_fileNameHasBeenSet = true;
47 m_fileName = std::forward<FileNameT>(value);
48 }
49 template <typename FileNameT = Aws::String>
50 OTAUpdateFile& WithFileName(FileNameT&& value) {
51 SetFileName(std::forward<FileNameT>(value));
52 return *this;
53 }
55
57
61 inline int GetFileType() const { return m_fileType; }
62 inline bool FileTypeHasBeenSet() const { return m_fileTypeHasBeenSet; }
63 inline void SetFileType(int value) {
64 m_fileTypeHasBeenSet = true;
65 m_fileType = value;
66 }
67 inline OTAUpdateFile& WithFileType(int value) {
68 SetFileType(value);
69 return *this;
70 }
72
74
77 inline const Aws::String& GetFileVersion() const { return m_fileVersion; }
78 inline bool FileVersionHasBeenSet() const { return m_fileVersionHasBeenSet; }
79 template <typename FileVersionT = Aws::String>
80 void SetFileVersion(FileVersionT&& value) {
81 m_fileVersionHasBeenSet = true;
82 m_fileVersion = std::forward<FileVersionT>(value);
83 }
84 template <typename FileVersionT = Aws::String>
85 OTAUpdateFile& WithFileVersion(FileVersionT&& value) {
86 SetFileVersion(std::forward<FileVersionT>(value));
87 return *this;
88 }
90
92
95 inline const FileLocation& GetFileLocation() const { return m_fileLocation; }
96 inline bool FileLocationHasBeenSet() const { return m_fileLocationHasBeenSet; }
97 template <typename FileLocationT = FileLocation>
98 void SetFileLocation(FileLocationT&& value) {
99 m_fileLocationHasBeenSet = true;
100 m_fileLocation = std::forward<FileLocationT>(value);
101 }
102 template <typename FileLocationT = FileLocation>
103 OTAUpdateFile& WithFileLocation(FileLocationT&& value) {
104 SetFileLocation(std::forward<FileLocationT>(value));
105 return *this;
106 }
108
110
113 inline const CodeSigning& GetCodeSigning() const { return m_codeSigning; }
114 inline bool CodeSigningHasBeenSet() const { return m_codeSigningHasBeenSet; }
115 template <typename CodeSigningT = CodeSigning>
116 void SetCodeSigning(CodeSigningT&& value) {
117 m_codeSigningHasBeenSet = true;
118 m_codeSigning = std::forward<CodeSigningT>(value);
119 }
120 template <typename CodeSigningT = CodeSigning>
121 OTAUpdateFile& WithCodeSigning(CodeSigningT&& value) {
122 SetCodeSigning(std::forward<CodeSigningT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
133 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
134 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
135 void SetAttributes(AttributesT&& value) {
136 m_attributesHasBeenSet = true;
137 m_attributes = std::forward<AttributesT>(value);
138 }
139 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
140 OTAUpdateFile& WithAttributes(AttributesT&& value) {
141 SetAttributes(std::forward<AttributesT>(value));
142 return *this;
143 }
144 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
145 OTAUpdateFile& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
146 m_attributesHasBeenSet = true;
147 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_fileName;
153
154 int m_fileType{0};
155
156 Aws::String m_fileVersion;
157
158 FileLocation m_fileLocation;
159
160 CodeSigning m_codeSigning;
161
163 bool m_fileNameHasBeenSet = false;
164 bool m_fileTypeHasBeenSet = false;
165 bool m_fileVersionHasBeenSet = false;
166 bool m_fileLocationHasBeenSet = false;
167 bool m_codeSigningHasBeenSet = false;
168 bool m_attributesHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace IoT
173} // 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