AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Image.h
1
6#pragma once
7#include <aws/kinesis-video-archived-media/KinesisVideoArchivedMedia_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/kinesis-video-archived-media/model/ImageError.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace KinesisVideoArchivedMedia
24{
25namespace Model
26{
27
34 class Image
35 {
36 public:
37 AWS_KINESISVIDEOARCHIVEDMEDIA_API Image() = default;
38 AWS_KINESISVIDEOARCHIVEDMEDIA_API Image(Aws::Utils::Json::JsonView jsonValue);
39 AWS_KINESISVIDEOARCHIVEDMEDIA_API Image& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_KINESISVIDEOARCHIVEDMEDIA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::Utils::DateTime& GetTimeStamp() const { return m_timeStamp; }
50 inline bool TimeStampHasBeenSet() const { return m_timeStampHasBeenSet; }
51 template<typename TimeStampT = Aws::Utils::DateTime>
52 void SetTimeStamp(TimeStampT&& value) { m_timeStampHasBeenSet = true; m_timeStamp = std::forward<TimeStampT>(value); }
53 template<typename TimeStampT = Aws::Utils::DateTime>
54 Image& WithTimeStamp(TimeStampT&& value) { SetTimeStamp(std::forward<TimeStampT>(value)); return *this;}
56
58
66 inline ImageError GetError() const { return m_error; }
67 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
68 inline void SetError(ImageError value) { m_errorHasBeenSet = true; m_error = value; }
69 inline Image& WithError(ImageError value) { SetError(value); return *this;}
71
73
76 inline const Aws::String& GetImageContent() const { return m_imageContent; }
77 inline bool ImageContentHasBeenSet() const { return m_imageContentHasBeenSet; }
78 template<typename ImageContentT = Aws::String>
79 void SetImageContent(ImageContentT&& value) { m_imageContentHasBeenSet = true; m_imageContent = std::forward<ImageContentT>(value); }
80 template<typename ImageContentT = Aws::String>
81 Image& WithImageContent(ImageContentT&& value) { SetImageContent(std::forward<ImageContentT>(value)); return *this;}
83 private:
84
85 Aws::Utils::DateTime m_timeStamp{};
86 bool m_timeStampHasBeenSet = false;
87
89 bool m_errorHasBeenSet = false;
90
91 Aws::String m_imageContent;
92 bool m_imageContentHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace KinesisVideoArchivedMedia
97} // namespace Aws
Image & WithError(ImageError value)
Definition Image.h:69
const Aws::Utils::DateTime & GetTimeStamp() const
Definition Image.h:49
AWS_KINESISVIDEOARCHIVEDMEDIA_API Image & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTimeStamp(TimeStampT &&value)
Definition Image.h:52
AWS_KINESISVIDEOARCHIVEDMEDIA_API Image(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetImageContent() const
Definition Image.h:76
Image & WithTimeStamp(TimeStampT &&value)
Definition Image.h:54
Image & WithImageContent(ImageContentT &&value)
Definition Image.h:81
AWS_KINESISVIDEOARCHIVEDMEDIA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KINESISVIDEOARCHIVEDMEDIA_API Image()=default
void SetImageContent(ImageContentT &&value)
Definition Image.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue