AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UpdateFlowMediaStreamRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mediaconnect/MediaConnectRequest.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 MediaConnect {
17namespace Model {
18
22 public:
23 AWS_MEDIACONNECT_API UpdateFlowMediaStreamRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateFlowMediaStream"; }
30
31 AWS_MEDIACONNECT_API Aws::String SerializePayload() const override;
32
34
37 inline const MediaStreamAttributesRequest& GetAttributes() const { return m_attributes; }
38 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
39 template <typename AttributesT = MediaStreamAttributesRequest>
40 void SetAttributes(AttributesT&& value) {
41 m_attributesHasBeenSet = true;
42 m_attributes = std::forward<AttributesT>(value);
43 }
44 template <typename AttributesT = MediaStreamAttributesRequest>
46 SetAttributes(std::forward<AttributesT>(value));
47 return *this;
48 }
50
52
55 inline int GetClockRate() const { return m_clockRate; }
56 inline bool ClockRateHasBeenSet() const { return m_clockRateHasBeenSet; }
57 inline void SetClockRate(int value) {
58 m_clockRateHasBeenSet = true;
59 m_clockRate = value;
60 }
62 SetClockRate(value);
63 return *this;
64 }
66
68
72 inline const Aws::String& GetDescription() const { return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 template <typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) {
76 m_descriptionHasBeenSet = true;
77 m_description = std::forward<DescriptionT>(value);
78 }
79 template <typename DescriptionT = Aws::String>
81 SetDescription(std::forward<DescriptionT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::String& GetFlowArn() const { return m_flowArn; }
92 inline bool FlowArnHasBeenSet() const { return m_flowArnHasBeenSet; }
93 template <typename FlowArnT = Aws::String>
94 void SetFlowArn(FlowArnT&& value) {
95 m_flowArnHasBeenSet = true;
96 m_flowArn = std::forward<FlowArnT>(value);
97 }
98 template <typename FlowArnT = Aws::String>
100 SetFlowArn(std::forward<FlowArnT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetMediaStreamName() const { return m_mediaStreamName; }
110 inline bool MediaStreamNameHasBeenSet() const { return m_mediaStreamNameHasBeenSet; }
111 template <typename MediaStreamNameT = Aws::String>
112 void SetMediaStreamName(MediaStreamNameT&& value) {
113 m_mediaStreamNameHasBeenSet = true;
114 m_mediaStreamName = std::forward<MediaStreamNameT>(value);
115 }
116 template <typename MediaStreamNameT = Aws::String>
118 SetMediaStreamName(std::forward<MediaStreamNameT>(value));
119 return *this;
120 }
122
124
127 inline MediaStreamType GetMediaStreamType() const { return m_mediaStreamType; }
128 inline bool MediaStreamTypeHasBeenSet() const { return m_mediaStreamTypeHasBeenSet; }
130 m_mediaStreamTypeHasBeenSet = true;
131 m_mediaStreamType = value;
132 }
134 SetMediaStreamType(value);
135 return *this;
136 }
138
140
143 inline const Aws::String& GetVideoFormat() const { return m_videoFormat; }
144 inline bool VideoFormatHasBeenSet() const { return m_videoFormatHasBeenSet; }
145 template <typename VideoFormatT = Aws::String>
146 void SetVideoFormat(VideoFormatT&& value) {
147 m_videoFormatHasBeenSet = true;
148 m_videoFormat = std::forward<VideoFormatT>(value);
149 }
150 template <typename VideoFormatT = Aws::String>
152 SetVideoFormat(std::forward<VideoFormatT>(value));
153 return *this;
154 }
156 private:
157 MediaStreamAttributesRequest m_attributes;
158
159 int m_clockRate{0};
160
161 Aws::String m_description;
162
163 Aws::String m_flowArn;
164
165 Aws::String m_mediaStreamName;
166
167 MediaStreamType m_mediaStreamType{MediaStreamType::NOT_SET};
168
169 Aws::String m_videoFormat;
170 bool m_attributesHasBeenSet = false;
171 bool m_clockRateHasBeenSet = false;
172 bool m_descriptionHasBeenSet = false;
173 bool m_flowArnHasBeenSet = false;
174 bool m_mediaStreamNameHasBeenSet = false;
175 bool m_mediaStreamTypeHasBeenSet = false;
176 bool m_videoFormatHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace MediaConnect
181} // namespace Aws
UpdateFlowMediaStreamRequest & WithAttributes(AttributesT &&value)
AWS_MEDIACONNECT_API UpdateFlowMediaStreamRequest()=default
AWS_MEDIACONNECT_API Aws::String SerializePayload() const override
UpdateFlowMediaStreamRequest & WithFlowArn(FlowArnT &&value)
const MediaStreamAttributesRequest & GetAttributes() const
UpdateFlowMediaStreamRequest & WithDescription(DescriptionT &&value)
UpdateFlowMediaStreamRequest & WithVideoFormat(VideoFormatT &&value)
UpdateFlowMediaStreamRequest & WithMediaStreamName(MediaStreamNameT &&value)
UpdateFlowMediaStreamRequest & WithMediaStreamType(MediaStreamType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String