AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
InputSdpLocation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/medialive/MediaLive_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace MediaLive {
20namespace Model {
21
29 public:
30 AWS_MEDIALIVE_API InputSdpLocation() = default;
31 AWS_MEDIALIVE_API InputSdpLocation(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline int GetMediaIndex() const { return m_mediaIndex; }
40 inline bool MediaIndexHasBeenSet() const { return m_mediaIndexHasBeenSet; }
41 inline void SetMediaIndex(int value) {
42 m_mediaIndexHasBeenSet = true;
43 m_mediaIndex = value;
44 }
45 inline InputSdpLocation& WithMediaIndex(int value) {
46 SetMediaIndex(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetSdpUrl() const { return m_sdpUrl; }
56 inline bool SdpUrlHasBeenSet() const { return m_sdpUrlHasBeenSet; }
57 template <typename SdpUrlT = Aws::String>
58 void SetSdpUrl(SdpUrlT&& value) {
59 m_sdpUrlHasBeenSet = true;
60 m_sdpUrl = std::forward<SdpUrlT>(value);
61 }
62 template <typename SdpUrlT = Aws::String>
63 InputSdpLocation& WithSdpUrl(SdpUrlT&& value) {
64 SetSdpUrl(std::forward<SdpUrlT>(value));
65 return *this;
66 }
68 private:
69 int m_mediaIndex{0};
70
71 Aws::String m_sdpUrl;
72 bool m_mediaIndexHasBeenSet = false;
73 bool m_sdpUrlHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace MediaLive
78} // namespace Aws
InputSdpLocation & WithMediaIndex(int value)
AWS_MEDIALIVE_API InputSdpLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API InputSdpLocation(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSdpUrl() const
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIALIVE_API InputSdpLocation()=default
InputSdpLocation & WithSdpUrl(SdpUrlT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue