AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AddMediaStreamRequest.h
1
6#pragma once
7#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
8#include <aws/mediaconnect/model/MediaStreamAttributesRequest.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
34 {
35 public:
36 AWS_MEDIACONNECT_API AddMediaStreamRequest();
37 AWS_MEDIACONNECT_API AddMediaStreamRequest(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const MediaStreamAttributesRequest& GetAttributes() const{ return m_attributes; }
47 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
48 inline void SetAttributes(const MediaStreamAttributesRequest& value) { m_attributesHasBeenSet = true; m_attributes = value; }
49 inline void SetAttributes(MediaStreamAttributesRequest&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
51 inline AddMediaStreamRequest& WithAttributes(MediaStreamAttributesRequest&& value) { SetAttributes(std::move(value)); return *this;}
53
55
60 inline int GetClockRate() const{ return m_clockRate; }
61 inline bool ClockRateHasBeenSet() const { return m_clockRateHasBeenSet; }
62 inline void SetClockRate(int value) { m_clockRateHasBeenSet = true; m_clockRate = value; }
63 inline AddMediaStreamRequest& WithClockRate(int value) { SetClockRate(value); return *this;}
65
67
71 inline const Aws::String& GetDescription() const{ return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
74 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
75 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
76 inline AddMediaStreamRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
77 inline AddMediaStreamRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
78 inline AddMediaStreamRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
80
82
85 inline int GetMediaStreamId() const{ return m_mediaStreamId; }
86 inline bool MediaStreamIdHasBeenSet() const { return m_mediaStreamIdHasBeenSet; }
87 inline void SetMediaStreamId(int value) { m_mediaStreamIdHasBeenSet = true; m_mediaStreamId = value; }
88 inline AddMediaStreamRequest& WithMediaStreamId(int value) { SetMediaStreamId(value); return *this;}
90
92
95 inline const Aws::String& GetMediaStreamName() const{ return m_mediaStreamName; }
96 inline bool MediaStreamNameHasBeenSet() const { return m_mediaStreamNameHasBeenSet; }
97 inline void SetMediaStreamName(const Aws::String& value) { m_mediaStreamNameHasBeenSet = true; m_mediaStreamName = value; }
98 inline void SetMediaStreamName(Aws::String&& value) { m_mediaStreamNameHasBeenSet = true; m_mediaStreamName = std::move(value); }
99 inline void SetMediaStreamName(const char* value) { m_mediaStreamNameHasBeenSet = true; m_mediaStreamName.assign(value); }
100 inline AddMediaStreamRequest& WithMediaStreamName(const Aws::String& value) { SetMediaStreamName(value); return *this;}
101 inline AddMediaStreamRequest& WithMediaStreamName(Aws::String&& value) { SetMediaStreamName(std::move(value)); return *this;}
102 inline AddMediaStreamRequest& WithMediaStreamName(const char* value) { SetMediaStreamName(value); return *this;}
104
106
109 inline const MediaStreamType& GetMediaStreamType() const{ return m_mediaStreamType; }
110 inline bool MediaStreamTypeHasBeenSet() const { return m_mediaStreamTypeHasBeenSet; }
111 inline void SetMediaStreamType(const MediaStreamType& value) { m_mediaStreamTypeHasBeenSet = true; m_mediaStreamType = value; }
112 inline void SetMediaStreamType(MediaStreamType&& value) { m_mediaStreamTypeHasBeenSet = true; m_mediaStreamType = std::move(value); }
114 inline AddMediaStreamRequest& WithMediaStreamType(MediaStreamType&& value) { SetMediaStreamType(std::move(value)); return *this;}
116
118
121 inline const Aws::String& GetVideoFormat() const{ return m_videoFormat; }
122 inline bool VideoFormatHasBeenSet() const { return m_videoFormatHasBeenSet; }
123 inline void SetVideoFormat(const Aws::String& value) { m_videoFormatHasBeenSet = true; m_videoFormat = value; }
124 inline void SetVideoFormat(Aws::String&& value) { m_videoFormatHasBeenSet = true; m_videoFormat = std::move(value); }
125 inline void SetVideoFormat(const char* value) { m_videoFormatHasBeenSet = true; m_videoFormat.assign(value); }
126 inline AddMediaStreamRequest& WithVideoFormat(const Aws::String& value) { SetVideoFormat(value); return *this;}
127 inline AddMediaStreamRequest& WithVideoFormat(Aws::String&& value) { SetVideoFormat(std::move(value)); return *this;}
128 inline AddMediaStreamRequest& WithVideoFormat(const char* value) { SetVideoFormat(value); return *this;}
130 private:
131
132 MediaStreamAttributesRequest m_attributes;
133 bool m_attributesHasBeenSet = false;
134
135 int m_clockRate;
136 bool m_clockRateHasBeenSet = false;
137
138 Aws::String m_description;
139 bool m_descriptionHasBeenSet = false;
140
141 int m_mediaStreamId;
142 bool m_mediaStreamIdHasBeenSet = false;
143
144 Aws::String m_mediaStreamName;
145 bool m_mediaStreamNameHasBeenSet = false;
146
147 MediaStreamType m_mediaStreamType;
148 bool m_mediaStreamTypeHasBeenSet = false;
149
150 Aws::String m_videoFormat;
151 bool m_videoFormatHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace MediaConnect
156} // namespace Aws
AddMediaStreamRequest & WithMediaStreamType(MediaStreamType &&value)
AddMediaStreamRequest & WithMediaStreamName(const Aws::String &value)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AddMediaStreamRequest & WithMediaStreamName(Aws::String &&value)
AddMediaStreamRequest & WithVideoFormat(const char *value)
AddMediaStreamRequest & WithMediaStreamId(int value)
void SetAttributes(MediaStreamAttributesRequest &&value)
AddMediaStreamRequest & WithAttributes(MediaStreamAttributesRequest &&value)
AddMediaStreamRequest & WithDescription(const Aws::String &value)
void SetAttributes(const MediaStreamAttributesRequest &value)
AddMediaStreamRequest & WithVideoFormat(const Aws::String &value)
AddMediaStreamRequest & WithMediaStreamType(const MediaStreamType &value)
AWS_MEDIACONNECT_API AddMediaStreamRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
const MediaStreamAttributesRequest & GetAttributes() const
AddMediaStreamRequest & WithDescription(Aws::String &&value)
AddMediaStreamRequest & WithAttributes(const MediaStreamAttributesRequest &value)
AddMediaStreamRequest & WithMediaStreamName(const char *value)
AddMediaStreamRequest & WithClockRate(int value)
AddMediaStreamRequest & WithDescription(const char *value)
AddMediaStreamRequest & WithVideoFormat(Aws::String &&value)
void SetMediaStreamType(const MediaStreamType &value)
AWS_MEDIACONNECT_API AddMediaStreamRequest(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue