AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
InputDestinationRequest.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/InputRequestDestinationRoute.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MediaLive {
22namespace Model {
23
30 public:
31 AWS_MEDIALIVE_API InputDestinationRequest() = default;
34 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetStreamName() const { return m_streamName; }
42 inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
43 template <typename StreamNameT = Aws::String>
44 void SetStreamName(StreamNameT&& value) {
45 m_streamNameHasBeenSet = true;
46 m_streamName = std::forward<StreamNameT>(value);
47 }
48 template <typename StreamNameT = Aws::String>
50 SetStreamName(std::forward<StreamNameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetNetwork() const { return m_network; }
61 inline bool NetworkHasBeenSet() const { return m_networkHasBeenSet; }
62 template <typename NetworkT = Aws::String>
63 void SetNetwork(NetworkT&& value) {
64 m_networkHasBeenSet = true;
65 m_network = std::forward<NetworkT>(value);
66 }
67 template <typename NetworkT = Aws::String>
69 SetNetwork(std::forward<NetworkT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::Vector<InputRequestDestinationRoute>& GetNetworkRoutes() const { return m_networkRoutes; }
81 inline bool NetworkRoutesHasBeenSet() const { return m_networkRoutesHasBeenSet; }
82 template <typename NetworkRoutesT = Aws::Vector<InputRequestDestinationRoute>>
83 void SetNetworkRoutes(NetworkRoutesT&& value) {
84 m_networkRoutesHasBeenSet = true;
85 m_networkRoutes = std::forward<NetworkRoutesT>(value);
86 }
87 template <typename NetworkRoutesT = Aws::Vector<InputRequestDestinationRoute>>
88 InputDestinationRequest& WithNetworkRoutes(NetworkRoutesT&& value) {
89 SetNetworkRoutes(std::forward<NetworkRoutesT>(value));
90 return *this;
91 }
92 template <typename NetworkRoutesT = InputRequestDestinationRoute>
93 InputDestinationRequest& AddNetworkRoutes(NetworkRoutesT&& value) {
94 m_networkRoutesHasBeenSet = true;
95 m_networkRoutes.emplace_back(std::forward<NetworkRoutesT>(value));
96 return *this;
97 }
99
101
106 inline const Aws::String& GetStaticIpAddress() const { return m_staticIpAddress; }
107 inline bool StaticIpAddressHasBeenSet() const { return m_staticIpAddressHasBeenSet; }
108 template <typename StaticIpAddressT = Aws::String>
109 void SetStaticIpAddress(StaticIpAddressT&& value) {
110 m_staticIpAddressHasBeenSet = true;
111 m_staticIpAddress = std::forward<StaticIpAddressT>(value);
112 }
113 template <typename StaticIpAddressT = Aws::String>
114 InputDestinationRequest& WithStaticIpAddress(StaticIpAddressT&& value) {
115 SetStaticIpAddress(std::forward<StaticIpAddressT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_streamName;
121
122 Aws::String m_network;
123
125
126 Aws::String m_staticIpAddress;
127 bool m_streamNameHasBeenSet = false;
128 bool m_networkHasBeenSet = false;
129 bool m_networkRoutesHasBeenSet = false;
130 bool m_staticIpAddressHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace MediaLive
135} // namespace Aws
const Aws::Vector< InputRequestDestinationRoute > & GetNetworkRoutes() const
InputDestinationRequest & WithNetwork(NetworkT &&value)
AWS_MEDIALIVE_API InputDestinationRequest(Aws::Utils::Json::JsonView jsonValue)
InputDestinationRequest & WithStaticIpAddress(StaticIpAddressT &&value)
AWS_MEDIALIVE_API InputDestinationRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
InputDestinationRequest & WithNetworkRoutes(NetworkRoutesT &&value)
AWS_MEDIALIVE_API InputDestinationRequest()=default
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
InputDestinationRequest & AddNetworkRoutes(NetworkRoutesT &&value)
InputDestinationRequest & WithStreamName(StreamNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue