AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MediaElement.h
1
6#pragma once
7#include <aws/notifications/Notifications_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/notifications/model/MediaElementType.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 Notifications
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_NOTIFICATIONS_API MediaElement() = default;
36 AWS_NOTIFICATIONS_API MediaElement(Aws::Utils::Json::JsonView jsonValue);
37 AWS_NOTIFICATIONS_API MediaElement& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetMediaId() const { return m_mediaId; }
46 inline bool MediaIdHasBeenSet() const { return m_mediaIdHasBeenSet; }
47 template<typename MediaIdT = Aws::String>
48 void SetMediaId(MediaIdT&& value) { m_mediaIdHasBeenSet = true; m_mediaId = std::forward<MediaIdT>(value); }
49 template<typename MediaIdT = Aws::String>
50 MediaElement& WithMediaId(MediaIdT&& value) { SetMediaId(std::forward<MediaIdT>(value)); return *this;}
52
54
57 inline MediaElementType GetType() const { return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 inline void SetType(MediaElementType value) { m_typeHasBeenSet = true; m_type = value; }
60 inline MediaElement& WithType(MediaElementType value) { SetType(value); return *this;}
62
64
67 inline const Aws::String& GetUrl() const { return m_url; }
68 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
69 template<typename UrlT = Aws::String>
70 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
71 template<typename UrlT = Aws::String>
72 MediaElement& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
74
76
79 inline const Aws::String& GetCaption() const { return m_caption; }
80 inline bool CaptionHasBeenSet() const { return m_captionHasBeenSet; }
81 template<typename CaptionT = Aws::String>
82 void SetCaption(CaptionT&& value) { m_captionHasBeenSet = true; m_caption = std::forward<CaptionT>(value); }
83 template<typename CaptionT = Aws::String>
84 MediaElement& WithCaption(CaptionT&& value) { SetCaption(std::forward<CaptionT>(value)); return *this;}
86 private:
87
88 Aws::String m_mediaId;
89 bool m_mediaIdHasBeenSet = false;
90
92 bool m_typeHasBeenSet = false;
93
94 Aws::String m_url;
95 bool m_urlHasBeenSet = false;
96
97 Aws::String m_caption;
98 bool m_captionHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace Notifications
103} // namespace Aws
MediaElement & WithUrl(UrlT &&value)
const Aws::String & GetCaption() const
AWS_NOTIFICATIONS_API MediaElement & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NOTIFICATIONS_API MediaElement()=default
MediaElement & WithMediaId(MediaIdT &&value)
const Aws::String & GetUrl() const
void SetType(MediaElementType value)
const Aws::String & GetMediaId() const
MediaElement & WithType(MediaElementType value)
AWS_NOTIFICATIONS_API MediaElement(Aws::Utils::Json::JsonView jsonValue)
MediaElement & WithCaption(CaptionT &&value)
AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue