AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
InputDestination.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/medialive/MediaLive_EXPORTS.h>
10#include <aws/medialive/model/InputDestinationRoute.h>
11#include <aws/medialive/model/InputDestinationVpc.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MediaLive {
23namespace Model {
24
31 public:
32 AWS_MEDIALIVE_API InputDestination() = default;
33 AWS_MEDIALIVE_API InputDestination(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::String& GetIp() const { return m_ip; }
44 inline bool IpHasBeenSet() const { return m_ipHasBeenSet; }
45 template <typename IpT = Aws::String>
46 void SetIp(IpT&& value) {
47 m_ipHasBeenSet = true;
48 m_ip = std::forward<IpT>(value);
49 }
50 template <typename IpT = Aws::String>
51 InputDestination& WithIp(IpT&& value) {
52 SetIp(std::forward<IpT>(value));
53 return *this;
54 }
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) {
65 m_portHasBeenSet = true;
66 m_port = std::forward<PortT>(value);
67 }
68 template <typename PortT = Aws::String>
69 InputDestination& WithPort(PortT&& value) {
70 SetPort(std::forward<PortT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetUrl() const { return m_url; }
81 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
82 template <typename UrlT = Aws::String>
83 void SetUrl(UrlT&& value) {
84 m_urlHasBeenSet = true;
85 m_url = std::forward<UrlT>(value);
86 }
87 template <typename UrlT = Aws::String>
88 InputDestination& WithUrl(UrlT&& value) {
89 SetUrl(std::forward<UrlT>(value));
90 return *this;
91 }
93
95
96 inline const InputDestinationVpc& GetVpc() const { return m_vpc; }
97 inline bool VpcHasBeenSet() const { return m_vpcHasBeenSet; }
98 template <typename VpcT = InputDestinationVpc>
99 void SetVpc(VpcT&& value) {
100 m_vpcHasBeenSet = true;
101 m_vpc = std::forward<VpcT>(value);
102 }
103 template <typename VpcT = InputDestinationVpc>
104 InputDestination& WithVpc(VpcT&& value) {
105 SetVpc(std::forward<VpcT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetNetwork() const { return m_network; }
115 inline bool NetworkHasBeenSet() const { return m_networkHasBeenSet; }
116 template <typename NetworkT = Aws::String>
117 void SetNetwork(NetworkT&& value) {
118 m_networkHasBeenSet = true;
119 m_network = std::forward<NetworkT>(value);
120 }
121 template <typename NetworkT = Aws::String>
122 InputDestination& WithNetwork(NetworkT&& value) {
123 SetNetwork(std::forward<NetworkT>(value));
124 return *this;
125 }
127
129
134 inline const Aws::Vector<InputDestinationRoute>& GetNetworkRoutes() const { return m_networkRoutes; }
135 inline bool NetworkRoutesHasBeenSet() const { return m_networkRoutesHasBeenSet; }
136 template <typename NetworkRoutesT = Aws::Vector<InputDestinationRoute>>
137 void SetNetworkRoutes(NetworkRoutesT&& value) {
138 m_networkRoutesHasBeenSet = true;
139 m_networkRoutes = std::forward<NetworkRoutesT>(value);
140 }
141 template <typename NetworkRoutesT = Aws::Vector<InputDestinationRoute>>
142 InputDestination& WithNetworkRoutes(NetworkRoutesT&& value) {
143 SetNetworkRoutes(std::forward<NetworkRoutesT>(value));
144 return *this;
145 }
146 template <typename NetworkRoutesT = InputDestinationRoute>
147 InputDestination& AddNetworkRoutes(NetworkRoutesT&& value) {
148 m_networkRoutesHasBeenSet = true;
149 m_networkRoutes.emplace_back(std::forward<NetworkRoutesT>(value));
150 return *this;
151 }
153 private:
154 Aws::String m_ip;
155
156 Aws::String m_port;
157
158 Aws::String m_url;
159
161
162 Aws::String m_network;
163
165 bool m_ipHasBeenSet = false;
166 bool m_portHasBeenSet = false;
167 bool m_urlHasBeenSet = false;
168 bool m_vpcHasBeenSet = false;
169 bool m_networkHasBeenSet = false;
170 bool m_networkRoutesHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace MediaLive
175} // 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