AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
AddMediaStreamRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
10#include <aws/mediaconnect/model/MediaStreamAttributesRequest.h>
11#include <aws/mediaconnect/model/MediaStreamType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MediaConnect {
23namespace Model {
24
32 public:
33 AWS_MEDIACONNECT_API AddMediaStreamRequest() = default;
34 AWS_MEDIACONNECT_API AddMediaStreamRequest(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const MediaStreamAttributesRequest& GetAttributes() const { return m_attributes; }
43 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
44 template <typename AttributesT = MediaStreamAttributesRequest>
45 void SetAttributes(AttributesT&& value) {
46 m_attributesHasBeenSet = true;
47 m_attributes = std::forward<AttributesT>(value);
48 }
49 template <typename AttributesT = MediaStreamAttributesRequest>
50 AddMediaStreamRequest& WithAttributes(AttributesT&& value) {
51 SetAttributes(std::forward<AttributesT>(value));
52 return *this;
53 }
55
57
62 inline int GetClockRate() const { return m_clockRate; }
63 inline bool ClockRateHasBeenSet() const { return m_clockRateHasBeenSet; }
64 inline void SetClockRate(int value) {
65 m_clockRateHasBeenSet = true;
66 m_clockRate = value;
67 }
69 SetClockRate(value);
70 return *this;
71 }
73
75
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
87 AddMediaStreamRequest& WithDescription(DescriptionT&& value) {
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
97 inline int GetMediaStreamId() const { return m_mediaStreamId; }
98 inline bool MediaStreamIdHasBeenSet() const { return m_mediaStreamIdHasBeenSet; }
99 inline void SetMediaStreamId(int value) {
100 m_mediaStreamIdHasBeenSet = true;
101 m_mediaStreamId = value;
102 }
104 SetMediaStreamId(value);
105 return *this;
106 }
108
110
113 inline const Aws::String& GetMediaStreamName() const { return m_mediaStreamName; }
114 inline bool MediaStreamNameHasBeenSet() const { return m_mediaStreamNameHasBeenSet; }
115 template <typename MediaStreamNameT = Aws::String>
116 void SetMediaStreamName(MediaStreamNameT&& value) {
117 m_mediaStreamNameHasBeenSet = true;
118 m_mediaStreamName = std::forward<MediaStreamNameT>(value);
119 }
120 template <typename MediaStreamNameT = Aws::String>
121 AddMediaStreamRequest& WithMediaStreamName(MediaStreamNameT&& value) {
122 SetMediaStreamName(std::forward<MediaStreamNameT>(value));
123 return *this;
124 }
126
128
131 inline MediaStreamType GetMediaStreamType() const { return m_mediaStreamType; }
132 inline bool MediaStreamTypeHasBeenSet() const { return m_mediaStreamTypeHasBeenSet; }
134 m_mediaStreamTypeHasBeenSet = true;
135 m_mediaStreamType = value;
136 }
138 SetMediaStreamType(value);
139 return *this;
140 }
142
144
147 inline const Aws::String& GetVideoFormat() const { return m_videoFormat; }
148 inline bool VideoFormatHasBeenSet() const { return m_videoFormatHasBeenSet; }
149 template <typename VideoFormatT = Aws::String>
150 void SetVideoFormat(VideoFormatT&& value) {
151 m_videoFormatHasBeenSet = true;
152 m_videoFormat = std::forward<VideoFormatT>(value);
153 }
154 template <typename VideoFormatT = Aws::String>
155 AddMediaStreamRequest& WithVideoFormat(VideoFormatT&& value) {
156 SetVideoFormat(std::forward<VideoFormatT>(value));
157 return *this;
158 }
160
162
166 inline const Aws::Map<Aws::String, Aws::String>& GetMediaStreamTags() const { return m_mediaStreamTags; }
167 inline bool MediaStreamTagsHasBeenSet() const { return m_mediaStreamTagsHasBeenSet; }
168 template <typename MediaStreamTagsT = Aws::Map<Aws::String, Aws::String>>
169 void SetMediaStreamTags(MediaStreamTagsT&& value) {
170 m_mediaStreamTagsHasBeenSet = true;
171 m_mediaStreamTags = std::forward<MediaStreamTagsT>(value);
172 }
173 template <typename MediaStreamTagsT = Aws::Map<Aws::String, Aws::String>>
174 AddMediaStreamRequest& WithMediaStreamTags(MediaStreamTagsT&& value) {
175 SetMediaStreamTags(std::forward<MediaStreamTagsT>(value));
176 return *this;
177 }
178 template <typename MediaStreamTagsKeyT = Aws::String, typename MediaStreamTagsValueT = Aws::String>
179 AddMediaStreamRequest& AddMediaStreamTags(MediaStreamTagsKeyT&& key, MediaStreamTagsValueT&& value) {
180 m_mediaStreamTagsHasBeenSet = true;
181 m_mediaStreamTags.emplace(std::forward<MediaStreamTagsKeyT>(key), std::forward<MediaStreamTagsValueT>(value));
182 return *this;
183 }
185 private:
186 MediaStreamAttributesRequest m_attributes;
187
188 int m_clockRate{0};
189
190 Aws::String m_description;
191
192 int m_mediaStreamId{0};
193
194 Aws::String m_mediaStreamName;
195
196 MediaStreamType m_mediaStreamType{MediaStreamType::NOT_SET};
197
198 Aws::String m_videoFormat;
199
200 Aws::Map<Aws::String, Aws::String> m_mediaStreamTags;
201 bool m_attributesHasBeenSet = false;
202 bool m_clockRateHasBeenSet = false;
203 bool m_descriptionHasBeenSet = false;
204 bool m_mediaStreamIdHasBeenSet = false;
205 bool m_mediaStreamNameHasBeenSet = false;
206 bool m_mediaStreamTypeHasBeenSet = false;
207 bool m_videoFormatHasBeenSet = false;
208 bool m_mediaStreamTagsHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace MediaConnect
213} // namespace Aws
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AddMediaStreamRequest & WithMediaStreamId(int value)
AddMediaStreamRequest & WithVideoFormat(VideoFormatT &&value)
AddMediaStreamRequest & AddMediaStreamTags(MediaStreamTagsKeyT &&key, MediaStreamTagsValueT &&value)
AddMediaStreamRequest & WithMediaStreamName(MediaStreamNameT &&value)
AddMediaStreamRequest & WithAttributes(AttributesT &&value)
AWS_MEDIACONNECT_API AddMediaStreamRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
AddMediaStreamRequest & WithDescription(DescriptionT &&value)
const MediaStreamAttributesRequest & GetAttributes() const
AddMediaStreamRequest & WithClockRate(int value)
AWS_MEDIACONNECT_API AddMediaStreamRequest()=default
AddMediaStreamRequest & WithMediaStreamTags(MediaStreamTagsT &&value)
AWS_MEDIACONNECT_API AddMediaStreamRequest(Aws::Utils::Json::JsonView jsonValue)
AddMediaStreamRequest & WithMediaStreamType(MediaStreamType value)
const Aws::Map< Aws::String, Aws::String > & GetMediaStreamTags() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue