AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
InputConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
9#include <aws/mediaconnect/model/Interface.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MediaConnect {
21namespace Model {
22
30 public:
31 AWS_MEDIACONNECT_API InputConfiguration() = default;
32 AWS_MEDIACONNECT_API InputConfiguration(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetInputIp() const { return m_inputIp; }
42 inline bool InputIpHasBeenSet() const { return m_inputIpHasBeenSet; }
43 template <typename InputIpT = Aws::String>
44 void SetInputIp(InputIpT&& value) {
45 m_inputIpHasBeenSet = true;
46 m_inputIp = std::forward<InputIpT>(value);
47 }
48 template <typename InputIpT = Aws::String>
49 InputConfiguration& WithInputIp(InputIpT&& value) {
50 SetInputIp(std::forward<InputIpT>(value));
51 return *this;
52 }
54
56
59 inline int GetInputPort() const { return m_inputPort; }
60 inline bool InputPortHasBeenSet() const { return m_inputPortHasBeenSet; }
61 inline void SetInputPort(int value) {
62 m_inputPortHasBeenSet = true;
63 m_inputPort = value;
64 }
65 inline InputConfiguration& WithInputPort(int value) {
66 SetInputPort(value);
67 return *this;
68 }
70
72
75 inline const Interface& GetInterface() const { return m_interface; }
76 inline bool InterfaceHasBeenSet() const { return m_interfaceHasBeenSet; }
77 template <typename InterfaceT = Interface>
78 void SetInterface(InterfaceT&& value) {
79 m_interfaceHasBeenSet = true;
80 m_interface = std::forward<InterfaceT>(value);
81 }
82 template <typename InterfaceT = Interface>
83 InputConfiguration& WithInterface(InterfaceT&& value) {
84 SetInterface(std::forward<InterfaceT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_inputIp;
90
91 int m_inputPort{0};
92
93 Interface m_interface;
94 bool m_inputIpHasBeenSet = false;
95 bool m_inputPortHasBeenSet = false;
96 bool m_interfaceHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace MediaConnect
101} // 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