AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Thumbnail.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/medialive/MediaLive_EXPORTS.h>
10#include <aws/medialive/model/ThumbnailType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MediaLive {
22namespace Model {
23
29class Thumbnail {
30 public:
31 AWS_MEDIALIVE_API Thumbnail() = default;
32 AWS_MEDIALIVE_API Thumbnail(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MEDIALIVE_API Thumbnail& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetBody() const { return m_body; }
41 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
42 template <typename BodyT = Aws::String>
43 void SetBody(BodyT&& value) {
44 m_bodyHasBeenSet = true;
45 m_body = std::forward<BodyT>(value);
46 }
47 template <typename BodyT = Aws::String>
48 Thumbnail& WithBody(BodyT&& value) {
49 SetBody(std::forward<BodyT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetContentType() const { return m_contentType; }
59 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
60 template <typename ContentTypeT = Aws::String>
61 void SetContentType(ContentTypeT&& value) {
62 m_contentTypeHasBeenSet = true;
63 m_contentType = std::forward<ContentTypeT>(value);
64 }
65 template <typename ContentTypeT = Aws::String>
66 Thumbnail& WithContentType(ContentTypeT&& value) {
67 SetContentType(std::forward<ContentTypeT>(value));
68 return *this;
69 }
71
73
76 inline ThumbnailType GetThumbnailType() const { return m_thumbnailType; }
77 inline bool ThumbnailTypeHasBeenSet() const { return m_thumbnailTypeHasBeenSet; }
78 inline void SetThumbnailType(ThumbnailType value) {
79 m_thumbnailTypeHasBeenSet = true;
80 m_thumbnailType = value;
81 }
83 SetThumbnailType(value);
84 return *this;
85 }
87
89
92 inline const Aws::Utils::DateTime& GetTimeStamp() const { return m_timeStamp; }
93 inline bool TimeStampHasBeenSet() const { return m_timeStampHasBeenSet; }
94 template <typename TimeStampT = Aws::Utils::DateTime>
95 void SetTimeStamp(TimeStampT&& value) {
96 m_timeStampHasBeenSet = true;
97 m_timeStamp = std::forward<TimeStampT>(value);
98 }
99 template <typename TimeStampT = Aws::Utils::DateTime>
100 Thumbnail& WithTimeStamp(TimeStampT&& value) {
101 SetTimeStamp(std::forward<TimeStampT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_body;
107
108 Aws::String m_contentType;
109
110 ThumbnailType m_thumbnailType{ThumbnailType::NOT_SET};
111
112 Aws::Utils::DateTime m_timeStamp{};
113 bool m_bodyHasBeenSet = false;
114 bool m_contentTypeHasBeenSet = false;
115 bool m_thumbnailTypeHasBeenSet = false;
116 bool m_timeStampHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace MediaLive
121} // namespace Aws
const Aws::Utils::DateTime & GetTimeStamp() const
Definition Thumbnail.h:92
const Aws::String & GetBody() const
Definition Thumbnail.h:40
Thumbnail & WithTimeStamp(TimeStampT &&value)
Definition Thumbnail.h:100
void SetThumbnailType(ThumbnailType value)
Definition Thumbnail.h:78
void SetContentType(ContentTypeT &&value)
Definition Thumbnail.h:61
void SetBody(BodyT &&value)
Definition Thumbnail.h:43
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetContentType() const
Definition Thumbnail.h:58
AWS_MEDIALIVE_API Thumbnail & operator=(Aws::Utils::Json::JsonView jsonValue)
Thumbnail & WithBody(BodyT &&value)
Definition Thumbnail.h:48
AWS_MEDIALIVE_API Thumbnail()=default
Thumbnail & WithThumbnailType(ThumbnailType value)
Definition Thumbnail.h:82
Thumbnail & WithContentType(ContentTypeT &&value)
Definition Thumbnail.h:66
AWS_MEDIALIVE_API Thumbnail(Aws::Utils::Json::JsonView jsonValue)
ThumbnailType GetThumbnailType() const
Definition Thumbnail.h:76
void SetTimeStamp(TimeStampT &&value)
Definition Thumbnail.h:95
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue