AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
InputDestination.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/medialive/model/InputDestinationVpc.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/medialive/model/InputDestinationRoute.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace MediaLive
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_MEDIALIVE_API InputDestination() = default;
38 AWS_MEDIALIVE_API InputDestination(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::String& GetIp() const { return m_ip; }
50 inline bool IpHasBeenSet() const { return m_ipHasBeenSet; }
51 template<typename IpT = Aws::String>
52 void SetIp(IpT&& value) { m_ipHasBeenSet = true; m_ip = std::forward<IpT>(value); }
53 template<typename IpT = Aws::String>
54 InputDestination& WithIp(IpT&& value) { SetIp(std::forward<IpT>(value)); return *this;}
56
58
61 inline const Aws::String& GetPort() const { return m_port; }
62 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
63 template<typename PortT = Aws::String>
64 void SetPort(PortT&& value) { m_portHasBeenSet = true; m_port = std::forward<PortT>(value); }
65 template<typename PortT = Aws::String>
66 InputDestination& WithPort(PortT&& value) { SetPort(std::forward<PortT>(value)); return *this;}
68
70
74 inline const Aws::String& GetUrl() const { return m_url; }
75 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
76 template<typename UrlT = Aws::String>
77 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
78 template<typename UrlT = Aws::String>
79 InputDestination& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
81
83
84 inline const InputDestinationVpc& GetVpc() const { return m_vpc; }
85 inline bool VpcHasBeenSet() const { return m_vpcHasBeenSet; }
86 template<typename VpcT = InputDestinationVpc>
87 void SetVpc(VpcT&& value) { m_vpcHasBeenSet = true; m_vpc = std::forward<VpcT>(value); }
88 template<typename VpcT = InputDestinationVpc>
89 InputDestination& WithVpc(VpcT&& value) { SetVpc(std::forward<VpcT>(value)); return *this;}
91
93
96 inline const Aws::String& GetNetwork() const { return m_network; }
97 inline bool NetworkHasBeenSet() const { return m_networkHasBeenSet; }
98 template<typename NetworkT = Aws::String>
99 void SetNetwork(NetworkT&& value) { m_networkHasBeenSet = true; m_network = std::forward<NetworkT>(value); }
100 template<typename NetworkT = Aws::String>
101 InputDestination& WithNetwork(NetworkT&& value) { SetNetwork(std::forward<NetworkT>(value)); return *this;}
103
105
110 inline const Aws::Vector<InputDestinationRoute>& GetNetworkRoutes() const { return m_networkRoutes; }
111 inline bool NetworkRoutesHasBeenSet() const { return m_networkRoutesHasBeenSet; }
112 template<typename NetworkRoutesT = Aws::Vector<InputDestinationRoute>>
113 void SetNetworkRoutes(NetworkRoutesT&& value) { m_networkRoutesHasBeenSet = true; m_networkRoutes = std::forward<NetworkRoutesT>(value); }
114 template<typename NetworkRoutesT = Aws::Vector<InputDestinationRoute>>
115 InputDestination& WithNetworkRoutes(NetworkRoutesT&& value) { SetNetworkRoutes(std::forward<NetworkRoutesT>(value)); return *this;}
116 template<typename NetworkRoutesT = InputDestinationRoute>
117 InputDestination& AddNetworkRoutes(NetworkRoutesT&& value) { m_networkRoutesHasBeenSet = true; m_networkRoutes.emplace_back(std::forward<NetworkRoutesT>(value)); return *this; }
119 private:
120
121 Aws::String m_ip;
122 bool m_ipHasBeenSet = false;
123
124 Aws::String m_port;
125 bool m_portHasBeenSet = false;
126
127 Aws::String m_url;
128 bool m_urlHasBeenSet = false;
129
131 bool m_vpcHasBeenSet = false;
132
133 Aws::String m_network;
134 bool m_networkHasBeenSet = false;
135
137 bool m_networkRoutesHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace MediaLive
142} // namespace Aws
const Aws::Vector< InputDestinationRoute > & GetNetworkRoutes() const
AWS_MEDIALIVE_API InputDestination()=default
InputDestination & WithPort(PortT &&value)
InputDestination & WithUrl(UrlT &&value)
InputDestination & WithVpc(VpcT &&value)
const Aws::String & GetPort() const
InputDestination & WithNetwork(NetworkT &&value)
AWS_MEDIALIVE_API InputDestination & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API InputDestination(Aws::Utils::Json::JsonView jsonValue)
InputDestination & WithNetworkRoutes(NetworkRoutesT &&value)
void SetNetworkRoutes(NetworkRoutesT &&value)
InputDestination & AddNetworkRoutes(NetworkRoutesT &&value)
InputDestination & WithIp(IpT &&value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetNetwork() const
const InputDestinationVpc & GetVpc() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue