AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
MediaElement.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/notifications/Notifications_EXPORTS.h>
9#include <aws/notifications/model/MediaElementType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Notifications {
21namespace Model {
22
29 public:
30 AWS_NOTIFICATIONS_API MediaElement() = default;
31 AWS_NOTIFICATIONS_API MediaElement(Aws::Utils::Json::JsonView jsonValue);
32 AWS_NOTIFICATIONS_API MediaElement& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetMediaId() const { return m_mediaId; }
40 inline bool MediaIdHasBeenSet() const { return m_mediaIdHasBeenSet; }
41 template <typename MediaIdT = Aws::String>
42 void SetMediaId(MediaIdT&& value) {
43 m_mediaIdHasBeenSet = true;
44 m_mediaId = std::forward<MediaIdT>(value);
45 }
46 template <typename MediaIdT = Aws::String>
47 MediaElement& WithMediaId(MediaIdT&& value) {
48 SetMediaId(std::forward<MediaIdT>(value));
49 return *this;
50 }
52
54
57 inline MediaElementType GetType() const { return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 inline void SetType(MediaElementType value) {
60 m_typeHasBeenSet = true;
61 m_type = value;
62 }
64 SetType(value);
65 return *this;
66 }
68
70
73 inline const Aws::String& GetUrl() const { return m_url; }
74 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
75 template <typename UrlT = Aws::String>
76 void SetUrl(UrlT&& value) {
77 m_urlHasBeenSet = true;
78 m_url = std::forward<UrlT>(value);
79 }
80 template <typename UrlT = Aws::String>
81 MediaElement& WithUrl(UrlT&& value) {
82 SetUrl(std::forward<UrlT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetCaption() const { return m_caption; }
92 inline bool CaptionHasBeenSet() const { return m_captionHasBeenSet; }
93 template <typename CaptionT = Aws::String>
94 void SetCaption(CaptionT&& value) {
95 m_captionHasBeenSet = true;
96 m_caption = std::forward<CaptionT>(value);
97 }
98 template <typename CaptionT = Aws::String>
99 MediaElement& WithCaption(CaptionT&& value) {
100 SetCaption(std::forward<CaptionT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_mediaId;
106
108
109 Aws::String m_url;
110
111 Aws::String m_caption;
112 bool m_mediaIdHasBeenSet = false;
113 bool m_typeHasBeenSet = false;
114 bool m_urlHasBeenSet = false;
115 bool m_captionHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace Notifications
120} // 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