AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MediaStream.h
1
6#pragma once
7#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
8#include <aws/mediaconnect/model/MediaStreamAttributes.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mediaconnect/model/MediaStreamType.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 MediaConnect
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_MEDIACONNECT_API MediaStream();
41 AWS_MEDIACONNECT_API MediaStream(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MEDIACONNECT_API MediaStream& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const MediaStreamAttributes& GetAttributes() const{ return m_attributes; }
51 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
52 inline void SetAttributes(const MediaStreamAttributes& value) { m_attributesHasBeenSet = true; m_attributes = value; }
53 inline void SetAttributes(MediaStreamAttributes&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
54 inline MediaStream& WithAttributes(const MediaStreamAttributes& value) { SetAttributes(value); return *this;}
55 inline MediaStream& WithAttributes(MediaStreamAttributes&& value) { SetAttributes(std::move(value)); return *this;}
57
59
62 inline int GetClockRate() const{ return m_clockRate; }
63 inline bool ClockRateHasBeenSet() const { return m_clockRateHasBeenSet; }
64 inline void SetClockRate(int value) { m_clockRateHasBeenSet = true; m_clockRate = value; }
65 inline MediaStream& WithClockRate(int value) { SetClockRate(value); return *this;}
67
69
73 inline const Aws::String& GetDescription() const{ return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
76 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
77 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
78 inline MediaStream& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
79 inline MediaStream& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
80 inline MediaStream& WithDescription(const char* value) { SetDescription(value); return *this;}
82
84
89 inline int GetFmt() const{ return m_fmt; }
90 inline bool FmtHasBeenSet() const { return m_fmtHasBeenSet; }
91 inline void SetFmt(int value) { m_fmtHasBeenSet = true; m_fmt = value; }
92 inline MediaStream& WithFmt(int value) { SetFmt(value); return *this;}
94
96
99 inline int GetMediaStreamId() const{ return m_mediaStreamId; }
100 inline bool MediaStreamIdHasBeenSet() const { return m_mediaStreamIdHasBeenSet; }
101 inline void SetMediaStreamId(int value) { m_mediaStreamIdHasBeenSet = true; m_mediaStreamId = value; }
102 inline MediaStream& WithMediaStreamId(int value) { SetMediaStreamId(value); return *this;}
104
106
109 inline const Aws::String& GetMediaStreamName() const{ return m_mediaStreamName; }
110 inline bool MediaStreamNameHasBeenSet() const { return m_mediaStreamNameHasBeenSet; }
111 inline void SetMediaStreamName(const Aws::String& value) { m_mediaStreamNameHasBeenSet = true; m_mediaStreamName = value; }
112 inline void SetMediaStreamName(Aws::String&& value) { m_mediaStreamNameHasBeenSet = true; m_mediaStreamName = std::move(value); }
113 inline void SetMediaStreamName(const char* value) { m_mediaStreamNameHasBeenSet = true; m_mediaStreamName.assign(value); }
114 inline MediaStream& WithMediaStreamName(const Aws::String& value) { SetMediaStreamName(value); return *this;}
115 inline MediaStream& WithMediaStreamName(Aws::String&& value) { SetMediaStreamName(std::move(value)); return *this;}
116 inline MediaStream& WithMediaStreamName(const char* value) { SetMediaStreamName(value); return *this;}
118
120
123 inline const MediaStreamType& GetMediaStreamType() const{ return m_mediaStreamType; }
124 inline bool MediaStreamTypeHasBeenSet() const { return m_mediaStreamTypeHasBeenSet; }
125 inline void SetMediaStreamType(const MediaStreamType& value) { m_mediaStreamTypeHasBeenSet = true; m_mediaStreamType = value; }
126 inline void SetMediaStreamType(MediaStreamType&& value) { m_mediaStreamTypeHasBeenSet = true; m_mediaStreamType = std::move(value); }
127 inline MediaStream& WithMediaStreamType(const MediaStreamType& value) { SetMediaStreamType(value); return *this;}
128 inline MediaStream& WithMediaStreamType(MediaStreamType&& value) { SetMediaStreamType(std::move(value)); return *this;}
130
132
135 inline const Aws::String& GetVideoFormat() const{ return m_videoFormat; }
136 inline bool VideoFormatHasBeenSet() const { return m_videoFormatHasBeenSet; }
137 inline void SetVideoFormat(const Aws::String& value) { m_videoFormatHasBeenSet = true; m_videoFormat = value; }
138 inline void SetVideoFormat(Aws::String&& value) { m_videoFormatHasBeenSet = true; m_videoFormat = std::move(value); }
139 inline void SetVideoFormat(const char* value) { m_videoFormatHasBeenSet = true; m_videoFormat.assign(value); }
140 inline MediaStream& WithVideoFormat(const Aws::String& value) { SetVideoFormat(value); return *this;}
141 inline MediaStream& WithVideoFormat(Aws::String&& value) { SetVideoFormat(std::move(value)); return *this;}
142 inline MediaStream& WithVideoFormat(const char* value) { SetVideoFormat(value); return *this;}
144 private:
145
146 MediaStreamAttributes m_attributes;
147 bool m_attributesHasBeenSet = false;
148
149 int m_clockRate;
150 bool m_clockRateHasBeenSet = false;
151
152 Aws::String m_description;
153 bool m_descriptionHasBeenSet = false;
154
155 int m_fmt;
156 bool m_fmtHasBeenSet = false;
157
158 int m_mediaStreamId;
159 bool m_mediaStreamIdHasBeenSet = false;
160
161 Aws::String m_mediaStreamName;
162 bool m_mediaStreamNameHasBeenSet = false;
163
164 MediaStreamType m_mediaStreamType;
165 bool m_mediaStreamTypeHasBeenSet = false;
166
167 Aws::String m_videoFormat;
168 bool m_videoFormatHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace MediaConnect
173} // namespace Aws
const MediaStreamAttributes & GetAttributes() const
Definition MediaStream.h:50
MediaStream & WithMediaStreamType(const MediaStreamType &value)
void SetMediaStreamName(const char *value)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
MediaStream & WithMediaStreamId(int value)
void SetAttributes(MediaStreamAttributes &&value)
Definition MediaStream.h:53
MediaStream & WithAttributes(MediaStreamAttributes &&value)
Definition MediaStream.h:55
AWS_MEDIACONNECT_API MediaStream()
void SetMediaStreamType(const MediaStreamType &value)
MediaStream & WithVideoFormat(const Aws::String &value)
MediaStream & WithAttributes(const MediaStreamAttributes &value)
Definition MediaStream.h:54
const Aws::String & GetDescription() const
Definition MediaStream.h:73
MediaStream & WithMediaStreamType(MediaStreamType &&value)
void SetMediaStreamName(const Aws::String &value)
void SetDescription(Aws::String &&value)
Definition MediaStream.h:76
MediaStream & WithDescription(const Aws::String &value)
Definition MediaStream.h:78
const Aws::String & GetVideoFormat() const
const MediaStreamType & GetMediaStreamType() const
MediaStream & WithFmt(int value)
Definition MediaStream.h:92
MediaStream & WithMediaStreamName(const char *value)
MediaStream & WithDescription(const char *value)
Definition MediaStream.h:80
void SetVideoFormat(const Aws::String &value)
const Aws::String & GetMediaStreamName() const
void SetVideoFormat(const char *value)
void SetMediaStreamName(Aws::String &&value)
MediaStream & WithMediaStreamName(Aws::String &&value)
MediaStream & WithVideoFormat(Aws::String &&value)
void SetMediaStreamType(MediaStreamType &&value)
AWS_MEDIACONNECT_API MediaStream & operator=(Aws::Utils::Json::JsonView jsonValue)
MediaStream & WithMediaStreamName(const Aws::String &value)
void SetAttributes(const MediaStreamAttributes &value)
Definition MediaStream.h:52
MediaStream & WithVideoFormat(const char *value)
void SetDescription(const char *value)
Definition MediaStream.h:77
void SetDescription(const Aws::String &value)
Definition MediaStream.h:75
MediaStream & WithClockRate(int value)
Definition MediaStream.h:65
AWS_MEDIACONNECT_API MediaStream(Aws::Utils::Json::JsonView jsonValue)
void SetVideoFormat(Aws::String &&value)
MediaStream & WithDescription(Aws::String &&value)
Definition MediaStream.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue