AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ImageFile.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/core/utils/Array.h>
9#include <aws/iotsitewise/model/ImageFileType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTSiteWise
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_IOTSITEWISE_API ImageFile() = default;
36 AWS_IOTSITEWISE_API ImageFile(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IOTSITEWISE_API ImageFile& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::Utils::ByteBuffer& GetData() const { return m_data; }
47 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
48 template<typename DataT = Aws::Utils::ByteBuffer>
49 void SetData(DataT&& value) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
50 template<typename DataT = Aws::Utils::ByteBuffer>
51 ImageFile& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
53
55
58 inline ImageFileType GetType() const { return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 inline void SetType(ImageFileType value) { m_typeHasBeenSet = true; m_type = value; }
61 inline ImageFile& WithType(ImageFileType value) { SetType(value); return *this;}
63 private:
64
66 bool m_dataHasBeenSet = false;
67
69 bool m_typeHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace IoTSiteWise
74} // namespace Aws
void SetData(DataT &&value)
Definition ImageFile.h:49
AWS_IOTSITEWISE_API ImageFile & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(ImageFileType value)
Definition ImageFile.h:60
const Aws::Utils::ByteBuffer & GetData() const
Definition ImageFile.h:46
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTSITEWISE_API ImageFile(Aws::Utils::Json::JsonView jsonValue)
ImageFile & WithData(DataT &&value)
Definition ImageFile.h:51
ImageFile & WithType(ImageFileType value)
Definition ImageFile.h:61
AWS_IOTSITEWISE_API ImageFile()=default
ImageFileType GetType() const
Definition ImageFile.h:58
Aws::Utils::Json::JsonValue JsonValue