AWS SDK for C++  1.9.129
AWS SDK for C++
OTAUpdateFile.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace IoT
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetFileName() const{ return m_fileName; }
48 
52  inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
53 
57  inline void SetFileName(const Aws::String& value) { m_fileNameHasBeenSet = true; m_fileName = value; }
58 
62  inline void SetFileName(Aws::String&& value) { m_fileNameHasBeenSet = true; m_fileName = std::move(value); }
63 
67  inline void SetFileName(const char* value) { m_fileNameHasBeenSet = true; m_fileName.assign(value); }
68 
72  inline OTAUpdateFile& WithFileName(const Aws::String& value) { SetFileName(value); return *this;}
73 
77  inline OTAUpdateFile& WithFileName(Aws::String&& value) { SetFileName(std::move(value)); return *this;}
78 
82  inline OTAUpdateFile& WithFileName(const char* value) { SetFileName(value); return *this;}
83 
84 
89  inline int GetFileType() const{ return m_fileType; }
90 
95  inline bool FileTypeHasBeenSet() const { return m_fileTypeHasBeenSet; }
96 
101  inline void SetFileType(int value) { m_fileTypeHasBeenSet = true; m_fileType = value; }
102 
107  inline OTAUpdateFile& WithFileType(int value) { SetFileType(value); return *this;}
108 
109 
113  inline const Aws::String& GetFileVersion() const{ return m_fileVersion; }
114 
118  inline bool FileVersionHasBeenSet() const { return m_fileVersionHasBeenSet; }
119 
123  inline void SetFileVersion(const Aws::String& value) { m_fileVersionHasBeenSet = true; m_fileVersion = value; }
124 
128  inline void SetFileVersion(Aws::String&& value) { m_fileVersionHasBeenSet = true; m_fileVersion = std::move(value); }
129 
133  inline void SetFileVersion(const char* value) { m_fileVersionHasBeenSet = true; m_fileVersion.assign(value); }
134 
138  inline OTAUpdateFile& WithFileVersion(const Aws::String& value) { SetFileVersion(value); return *this;}
139 
143  inline OTAUpdateFile& WithFileVersion(Aws::String&& value) { SetFileVersion(std::move(value)); return *this;}
144 
148  inline OTAUpdateFile& WithFileVersion(const char* value) { SetFileVersion(value); return *this;}
149 
150 
154  inline const FileLocation& GetFileLocation() const{ return m_fileLocation; }
155 
159  inline bool FileLocationHasBeenSet() const { return m_fileLocationHasBeenSet; }
160 
164  inline void SetFileLocation(const FileLocation& value) { m_fileLocationHasBeenSet = true; m_fileLocation = value; }
165 
169  inline void SetFileLocation(FileLocation&& value) { m_fileLocationHasBeenSet = true; m_fileLocation = std::move(value); }
170 
174  inline OTAUpdateFile& WithFileLocation(const FileLocation& value) { SetFileLocation(value); return *this;}
175 
179  inline OTAUpdateFile& WithFileLocation(FileLocation&& value) { SetFileLocation(std::move(value)); return *this;}
180 
181 
185  inline const CodeSigning& GetCodeSigning() const{ return m_codeSigning; }
186 
190  inline bool CodeSigningHasBeenSet() const { return m_codeSigningHasBeenSet; }
191 
195  inline void SetCodeSigning(const CodeSigning& value) { m_codeSigningHasBeenSet = true; m_codeSigning = value; }
196 
200  inline void SetCodeSigning(CodeSigning&& value) { m_codeSigningHasBeenSet = true; m_codeSigning = std::move(value); }
201 
205  inline OTAUpdateFile& WithCodeSigning(const CodeSigning& value) { SetCodeSigning(value); return *this;}
206 
210  inline OTAUpdateFile& WithCodeSigning(CodeSigning&& value) { SetCodeSigning(std::move(value)); return *this;}
211 
212 
216  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
217 
221  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
222 
226  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
227 
231  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
232 
236  inline OTAUpdateFile& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
237 
241  inline OTAUpdateFile& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
242 
246  inline OTAUpdateFile& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
247 
251  inline OTAUpdateFile& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
252 
256  inline OTAUpdateFile& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
257 
261  inline OTAUpdateFile& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
262 
266  inline OTAUpdateFile& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
267 
271  inline OTAUpdateFile& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
272 
276  inline OTAUpdateFile& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
277 
278  private:
279 
280  Aws::String m_fileName;
281  bool m_fileNameHasBeenSet;
282 
283  int m_fileType;
284  bool m_fileTypeHasBeenSet;
285 
286  Aws::String m_fileVersion;
287  bool m_fileVersionHasBeenSet;
288 
289  FileLocation m_fileLocation;
290  bool m_fileLocationHasBeenSet;
291 
292  CodeSigning m_codeSigning;
293  bool m_codeSigningHasBeenSet;
294 
296  bool m_attributesHasBeenSet;
297  };
298 
299 } // namespace Model
300 } // namespace IoT
301 } // namespace Aws
Aws::IoT::Model::OTAUpdateFile::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::OTAUpdateFile::SetFileVersion
void SetFileVersion(const char *value)
Definition: OTAUpdateFile.h:133
Aws::IoT::Model::OTAUpdateFile::SetAttributes
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: OTAUpdateFile.h:226
Aws::IoT::Model::OTAUpdateFile::FileVersionHasBeenSet
bool FileVersionHasBeenSet() const
Definition: OTAUpdateFile.h:118
Aws::IoT::Model::OTAUpdateFile::SetFileVersion
void SetFileVersion(Aws::String &&value)
Definition: OTAUpdateFile.h:128
Aws::IoT::Model::OTAUpdateFile::SetFileName
void SetFileName(const char *value)
Definition: OTAUpdateFile.h:67
Aws::IoT::Model::OTAUpdateFile::SetAttributes
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: OTAUpdateFile.h:231
Aws::IoT::Model::OTAUpdateFile::FileNameHasBeenSet
bool FileNameHasBeenSet() const
Definition: OTAUpdateFile.h:52
Aws::IoT::Model::OTAUpdateFile::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: OTAUpdateFile.h:221
Aws::IoT::Model::OTAUpdateFile::WithAttributes
OTAUpdateFile & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: OTAUpdateFile.h:241
Aws::IoT::Model::OTAUpdateFile::WithFileVersion
OTAUpdateFile & WithFileVersion(const char *value)
Definition: OTAUpdateFile.h:148
Aws::IoT::Model::OTAUpdateFile::GetFileLocation
const FileLocation & GetFileLocation() const
Definition: OTAUpdateFile.h:154
Aws::IoT::Model::OTAUpdateFile::WithCodeSigning
OTAUpdateFile & WithCodeSigning(CodeSigning &&value)
Definition: OTAUpdateFile.h:210
Aws::IoT::Model::OTAUpdateFile::AddAttributes
OTAUpdateFile & AddAttributes(Aws::String &&key, Aws::String &&value)
Definition: OTAUpdateFile.h:261
Aws::IoT::Model::OTAUpdateFile::AddAttributes
OTAUpdateFile & AddAttributes(const char *key, const char *value)
Definition: OTAUpdateFile.h:276
Aws::IoT::Model::OTAUpdateFile::SetFileVersion
void SetFileVersion(const Aws::String &value)
Definition: OTAUpdateFile.h:123
Aws::IoT::Model::OTAUpdateFile::CodeSigningHasBeenSet
bool CodeSigningHasBeenSet() const
Definition: OTAUpdateFile.h:190
Aws::IoT::Model::OTAUpdateFile::WithFileVersion
OTAUpdateFile & WithFileVersion(const Aws::String &value)
Definition: OTAUpdateFile.h:138
Aws::IoT::Model::OTAUpdateFile::SetFileType
void SetFileType(int value)
Definition: OTAUpdateFile.h:101
Aws::IoT::Model::FileLocation
Definition: FileLocation.h:33
Aws::IoT::Model::OTAUpdateFile::WithFileType
OTAUpdateFile & WithFileType(int value)
Definition: OTAUpdateFile.h:107
Aws::IoT::Model::OTAUpdateFile::AddAttributes
OTAUpdateFile & AddAttributes(const Aws::String &key, Aws::String &&value)
Definition: OTAUpdateFile.h:256
Aws::IoT::Model::OTAUpdateFile::WithFileLocation
OTAUpdateFile & WithFileLocation(FileLocation &&value)
Definition: OTAUpdateFile.h:179
Aws::IoT::Model::OTAUpdateFile
Definition: OTAUpdateFile.h:36
Aws::IoT::Model::OTAUpdateFile::WithFileName
OTAUpdateFile & WithFileName(const Aws::String &value)
Definition: OTAUpdateFile.h:72
Aws::IoT::Model::OTAUpdateFile::SetCodeSigning
void SetCodeSigning(const CodeSigning &value)
Definition: OTAUpdateFile.h:195
Aws::IoT::Model::OTAUpdateFile::WithFileVersion
OTAUpdateFile & WithFileVersion(Aws::String &&value)
Definition: OTAUpdateFile.h:143
Aws::IoT::Model::OTAUpdateFile::WithAttributes
OTAUpdateFile & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: OTAUpdateFile.h:236
Aws::IoT::Model::OTAUpdateFile::OTAUpdateFile
OTAUpdateFile()
Aws::IoT::Model::OTAUpdateFile::SetCodeSigning
void SetCodeSigning(CodeSigning &&value)
Definition: OTAUpdateFile.h:200
Aws::IoT::Model::OTAUpdateFile::SetFileName
void SetFileName(const Aws::String &value)
Definition: OTAUpdateFile.h:57
Aws::IoT::Model::OTAUpdateFile::GetFileType
int GetFileType() const
Definition: OTAUpdateFile.h:89
Aws::IoT::Model::OTAUpdateFile::AddAttributes
OTAUpdateFile & AddAttributes(Aws::String &&key, const char *value)
Definition: OTAUpdateFile.h:271
Aws::IoT::Model::OTAUpdateFile::SetFileLocation
void SetFileLocation(FileLocation &&value)
Definition: OTAUpdateFile.h:169
Aws::IoT::Model::OTAUpdateFile::AddAttributes
OTAUpdateFile & AddAttributes(const Aws::String &key, const Aws::String &value)
Definition: OTAUpdateFile.h:246
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::IoT::Model::CodeSigning
Definition: CodeSigning.h:35
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::OTAUpdateFile::WithFileLocation
OTAUpdateFile & WithFileLocation(const FileLocation &value)
Definition: OTAUpdateFile.h:174
Aws::IoT::Model::OTAUpdateFile::GetCodeSigning
const CodeSigning & GetCodeSigning() const
Definition: OTAUpdateFile.h:185
Aws::IoT::Model::OTAUpdateFile::WithFileName
OTAUpdateFile & WithFileName(Aws::String &&value)
Definition: OTAUpdateFile.h:77
Aws::IoT::Model::OTAUpdateFile::AddAttributes
OTAUpdateFile & AddAttributes(Aws::String &&key, const Aws::String &value)
Definition: OTAUpdateFile.h:251
Aws::IoT::Model::OTAUpdateFile::GetFileVersion
const Aws::String & GetFileVersion() const
Definition: OTAUpdateFile.h:113
CodeSigning.h
Aws::IoT::Model::OTAUpdateFile::AddAttributes
OTAUpdateFile & AddAttributes(const char *key, Aws::String &&value)
Definition: OTAUpdateFile.h:266
Aws::IoT::Model::OTAUpdateFile::SetFileLocation
void SetFileLocation(const FileLocation &value)
Definition: OTAUpdateFile.h:164
Aws::IoT::Model::OTAUpdateFile::OTAUpdateFile
OTAUpdateFile(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::OTAUpdateFile::FileTypeHasBeenSet
bool FileTypeHasBeenSet() const
Definition: OTAUpdateFile.h:95
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::OTAUpdateFile::SetFileName
void SetFileName(Aws::String &&value)
Definition: OTAUpdateFile.h:62
FileLocation.h
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::OTAUpdateFile::operator=
OTAUpdateFile & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::OTAUpdateFile::GetFileName
const Aws::String & GetFileName() const
Definition: OTAUpdateFile.h:47
AWSMap.h
Aws::IoT::Model::OTAUpdateFile::GetAttributes
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Definition: OTAUpdateFile.h:216
Aws::IoT::Model::OTAUpdateFile::FileLocationHasBeenSet
bool FileLocationHasBeenSet() const
Definition: OTAUpdateFile.h:159
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
IoT_EXPORTS.h
Aws::IoT::Model::OTAUpdateFile::WithCodeSigning
OTAUpdateFile & WithCodeSigning(const CodeSigning &value)
Definition: OTAUpdateFile.h:205
Aws::IoT::Model::OTAUpdateFile::WithFileName
OTAUpdateFile & WithFileName(const char *value)
Definition: OTAUpdateFile.h:82