AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DestinationConfiguration.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 DestinationConfiguration() = default;
39 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetDestinationIp() const { return m_destinationIp; }
48 inline bool DestinationIpHasBeenSet() const { return m_destinationIpHasBeenSet; }
49 template<typename DestinationIpT = Aws::String>
50 void SetDestinationIp(DestinationIpT&& value) { m_destinationIpHasBeenSet = true; m_destinationIp = std::forward<DestinationIpT>(value); }
51 template<typename DestinationIpT = Aws::String>
52 DestinationConfiguration& WithDestinationIp(DestinationIpT&& value) { SetDestinationIp(std::forward<DestinationIpT>(value)); return *this;}
54
56
60 inline int GetDestinationPort() const { return m_destinationPort; }
61 inline bool DestinationPortHasBeenSet() const { return m_destinationPortHasBeenSet; }
62 inline void SetDestinationPort(int value) { m_destinationPortHasBeenSet = true; m_destinationPort = value; }
63 inline DestinationConfiguration& WithDestinationPort(int value) { SetDestinationPort(value); return *this;}
65
67
71 inline const Interface& GetInterface() const { return m_interface; }
72 inline bool InterfaceHasBeenSet() const { return m_interfaceHasBeenSet; }
73 template<typename InterfaceT = Interface>
74 void SetInterface(InterfaceT&& value) { m_interfaceHasBeenSet = true; m_interface = std::forward<InterfaceT>(value); }
75 template<typename InterfaceT = Interface>
76 DestinationConfiguration& WithInterface(InterfaceT&& value) { SetInterface(std::forward<InterfaceT>(value)); return *this;}
78
80
86 inline const Aws::String& GetOutboundIp() const { return m_outboundIp; }
87 inline bool OutboundIpHasBeenSet() const { return m_outboundIpHasBeenSet; }
88 template<typename OutboundIpT = Aws::String>
89 void SetOutboundIp(OutboundIpT&& value) { m_outboundIpHasBeenSet = true; m_outboundIp = std::forward<OutboundIpT>(value); }
90 template<typename OutboundIpT = Aws::String>
91 DestinationConfiguration& WithOutboundIp(OutboundIpT&& value) { SetOutboundIp(std::forward<OutboundIpT>(value)); return *this;}
93 private:
94
95 Aws::String m_destinationIp;
96 bool m_destinationIpHasBeenSet = false;
97
98 int m_destinationPort{0};
99 bool m_destinationPortHasBeenSet = false;
100
101 Interface m_interface;
102 bool m_interfaceHasBeenSet = false;
103
104 Aws::String m_outboundIp;
105 bool m_outboundIpHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace MediaConnect
110} // namespace Aws
AWS_MEDIACONNECT_API DestinationConfiguration()=default
AWS_MEDIACONNECT_API DestinationConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIACONNECT_API DestinationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
DestinationConfiguration & WithOutboundIp(OutboundIpT &&value)
DestinationConfiguration & WithDestinationIp(DestinationIpT &&value)
DestinationConfiguration & WithDestinationPort(int value)
DestinationConfiguration & WithInterface(InterfaceT &&value)
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