AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
MediaItem.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/MediaType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Connect {
21namespace Model {
22
29class MediaItem {
30 public:
31 AWS_CONNECT_API MediaItem() = default;
32 AWS_CONNECT_API MediaItem(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECT_API MediaItem& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline MediaType GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 inline void SetType(MediaType value) {
44 m_typeHasBeenSet = true;
45 m_type = value;
46 }
47 inline MediaItem& WithType(MediaType value) {
48 SetType(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetSource() const { return m_source; }
58 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
59 template <typename SourceT = Aws::String>
60 void SetSource(SourceT&& value) {
61 m_sourceHasBeenSet = true;
62 m_source = std::forward<SourceT>(value);
63 }
64 template <typename SourceT = Aws::String>
65 MediaItem& WithSource(SourceT&& value) {
66 SetSource(std::forward<SourceT>(value));
67 return *this;
68 }
70 private:
72
73 Aws::String m_source;
74 bool m_typeHasBeenSet = false;
75 bool m_sourceHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Connect
80} // namespace Aws
void SetType(MediaType value)
Definition MediaItem.h:43
MediaItem & WithSource(SourceT &&value)
Definition MediaItem.h:65
AWS_CONNECT_API MediaItem & operator=(Aws::Utils::Json::JsonView jsonValue)
MediaType GetType() const
Definition MediaItem.h:41
void SetSource(SourceT &&value)
Definition MediaItem.h:60
AWS_CONNECT_API MediaItem()=default
MediaItem & WithType(MediaType value)
Definition MediaItem.h:47
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetSource() const
Definition MediaItem.h:57
AWS_CONNECT_API MediaItem(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue