AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
InputConfiguration.h
1
6#pragma once
7#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediaconnect/model/Interface.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MediaConnect
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_MEDIACONNECT_API InputConfiguration() = default;
37 AWS_MEDIACONNECT_API InputConfiguration(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetInputIp() const { return m_inputIp; }
48 inline bool InputIpHasBeenSet() const { return m_inputIpHasBeenSet; }
49 template<typename InputIpT = Aws::String>
50 void SetInputIp(InputIpT&& value) { m_inputIpHasBeenSet = true; m_inputIp = std::forward<InputIpT>(value); }
51 template<typename InputIpT = Aws::String>
52 InputConfiguration& WithInputIp(InputIpT&& value) { SetInputIp(std::forward<InputIpT>(value)); return *this;}
54
56
59 inline int GetInputPort() const { return m_inputPort; }
60 inline bool InputPortHasBeenSet() const { return m_inputPortHasBeenSet; }
61 inline void SetInputPort(int value) { m_inputPortHasBeenSet = true; m_inputPort = value; }
62 inline InputConfiguration& WithInputPort(int value) { SetInputPort(value); return *this;}
64
66
69 inline const Interface& GetInterface() const { return m_interface; }
70 inline bool InterfaceHasBeenSet() const { return m_interfaceHasBeenSet; }
71 template<typename InterfaceT = Interface>
72 void SetInterface(InterfaceT&& value) { m_interfaceHasBeenSet = true; m_interface = std::forward<InterfaceT>(value); }
73 template<typename InterfaceT = Interface>
74 InputConfiguration& WithInterface(InterfaceT&& value) { SetInterface(std::forward<InterfaceT>(value)); return *this;}
76 private:
77
78 Aws::String m_inputIp;
79 bool m_inputIpHasBeenSet = false;
80
81 int m_inputPort{0};
82 bool m_inputPortHasBeenSet = false;
83
84 Interface m_interface;
85 bool m_interfaceHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace MediaConnect
90} // namespace Aws
InputConfiguration & WithInputIp(InputIpT &&value)
AWS_MEDIACONNECT_API InputConfiguration(Aws::Utils::Json::JsonView jsonValue)
InputConfiguration & WithInputPort(int value)
AWS_MEDIACONNECT_API InputConfiguration()=default
InputConfiguration & WithInterface(InterfaceT &&value)
AWS_MEDIACONNECT_API InputConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue