AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
42
43
45
48 inline const Aws::String& GetFileName() const{ return m_fileName; }
49 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
50 inline void SetFileName(const Aws::String& value) { m_fileNameHasBeenSet = true; m_fileName = value; }
51 inline void SetFileName(Aws::String&& value) { m_fileNameHasBeenSet = true; m_fileName = std::move(value); }
52 inline void SetFileName(const char* value) { m_fileNameHasBeenSet = true; m_fileName.assign(value); }
53 inline OTAUpdateFile& WithFileName(const Aws::String& value) { SetFileName(value); return *this;}
54 inline OTAUpdateFile& WithFileName(Aws::String&& value) { SetFileName(std::move(value)); return *this;}
55 inline OTAUpdateFile& WithFileName(const char* value) { SetFileName(value); return *this;}
57
59
63 inline int GetFileType() const{ return m_fileType; }
64 inline bool FileTypeHasBeenSet() const { return m_fileTypeHasBeenSet; }
65 inline void SetFileType(int value) { m_fileTypeHasBeenSet = true; m_fileType = value; }
66 inline OTAUpdateFile& WithFileType(int value) { SetFileType(value); return *this;}
68
70
73 inline const Aws::String& GetFileVersion() const{ return m_fileVersion; }
74 inline bool FileVersionHasBeenSet() const { return m_fileVersionHasBeenSet; }
75 inline void SetFileVersion(const Aws::String& value) { m_fileVersionHasBeenSet = true; m_fileVersion = value; }
76 inline void SetFileVersion(Aws::String&& value) { m_fileVersionHasBeenSet = true; m_fileVersion = std::move(value); }
77 inline void SetFileVersion(const char* value) { m_fileVersionHasBeenSet = true; m_fileVersion.assign(value); }
78 inline OTAUpdateFile& WithFileVersion(const Aws::String& value) { SetFileVersion(value); return *this;}
79 inline OTAUpdateFile& WithFileVersion(Aws::String&& value) { SetFileVersion(std::move(value)); return *this;}
80 inline OTAUpdateFile& WithFileVersion(const char* value) { SetFileVersion(value); return *this;}
82
84
87 inline const FileLocation& GetFileLocation() const{ return m_fileLocation; }
88 inline bool FileLocationHasBeenSet() const { return m_fileLocationHasBeenSet; }
89 inline void SetFileLocation(const FileLocation& value) { m_fileLocationHasBeenSet = true; m_fileLocation = value; }
90 inline void SetFileLocation(FileLocation&& value) { m_fileLocationHasBeenSet = true; m_fileLocation = std::move(value); }
91 inline OTAUpdateFile& WithFileLocation(const FileLocation& value) { SetFileLocation(value); return *this;}
92 inline OTAUpdateFile& WithFileLocation(FileLocation&& value) { SetFileLocation(std::move(value)); return *this;}
94
96
99 inline const CodeSigning& GetCodeSigning() const{ return m_codeSigning; }
100 inline bool CodeSigningHasBeenSet() const { return m_codeSigningHasBeenSet; }
101 inline void SetCodeSigning(const CodeSigning& value) { m_codeSigningHasBeenSet = true; m_codeSigning = value; }
102 inline void SetCodeSigning(CodeSigning&& value) { m_codeSigningHasBeenSet = true; m_codeSigning = std::move(value); }
103 inline OTAUpdateFile& WithCodeSigning(const CodeSigning& value) { SetCodeSigning(value); return *this;}
104 inline OTAUpdateFile& WithCodeSigning(CodeSigning&& value) { SetCodeSigning(std::move(value)); return *this;}
106
108
112 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
113 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
114 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
115 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
117 inline OTAUpdateFile& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
118 inline OTAUpdateFile& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
119 inline OTAUpdateFile& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
120 inline OTAUpdateFile& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
121 inline OTAUpdateFile& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
122 inline OTAUpdateFile& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
123 inline OTAUpdateFile& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
124 inline OTAUpdateFile& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
126 private:
127
128 Aws::String m_fileName;
129 bool m_fileNameHasBeenSet = false;
130
131 int m_fileType;
132 bool m_fileTypeHasBeenSet = false;
133
134 Aws::String m_fileVersion;
135 bool m_fileVersionHasBeenSet = false;
136
137 FileLocation m_fileLocation;
138 bool m_fileLocationHasBeenSet = false;
139
140 CodeSigning m_codeSigning;
141 bool m_codeSigningHasBeenSet = false;
142
144 bool m_attributesHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace IoT
149} // namespace Aws
OTAUpdateFile & WithFileName(Aws::String &&value)
AWS_IOT_API OTAUpdateFile & operator=(Aws::Utils::Json::JsonView jsonValue)
OTAUpdateFile & AddAttributes(Aws::String &&key, const Aws::String &value)
OTAUpdateFile & WithFileLocation(const FileLocation &value)
void SetFileName(const char *value)
OTAUpdateFile & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetFileVersion() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetFileName() const
OTAUpdateFile & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
OTAUpdateFile & WithCodeSigning(CodeSigning &&value)
OTAUpdateFile & WithFileName(const Aws::String &value)
OTAUpdateFile & AddAttributes(const Aws::String &key, const Aws::String &value)
void SetFileVersion(const char *value)
OTAUpdateFile & AddAttributes(const Aws::String &key, Aws::String &&value)
AWS_IOT_API OTAUpdateFile(Aws::Utils::Json::JsonView jsonValue)
void SetFileLocation(FileLocation &&value)
OTAUpdateFile & WithFileType(int value)
void SetCodeSigning(const CodeSigning &value)
OTAUpdateFile & WithFileVersion(Aws::String &&value)
OTAUpdateFile & WithFileLocation(FileLocation &&value)
void SetFileName(Aws::String &&value)
void SetFileVersion(Aws::String &&value)
OTAUpdateFile & AddAttributes(const char *key, const char *value)
void SetFileLocation(const FileLocation &value)
const FileLocation & GetFileLocation() const
OTAUpdateFile & WithCodeSigning(const CodeSigning &value)
OTAUpdateFile & AddAttributes(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
void SetCodeSigning(CodeSigning &&value)
void SetFileVersion(const Aws::String &value)
OTAUpdateFile & AddAttributes(const char *key, Aws::String &&value)
OTAUpdateFile & WithFileName(const char *value)
const CodeSigning & GetCodeSigning() const
OTAUpdateFile & AddAttributes(Aws::String &&key, const char *value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
OTAUpdateFile & WithFileVersion(const Aws::String &value)
OTAUpdateFile & WithFileVersion(const char *value)
void SetFileName(const Aws::String &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