AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
InputDeviceNetworkSettings.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/InputDeviceIpScheme.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 InputDeviceNetworkSettings() = default;
34 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<Aws::String>& GetDnsAddresses() const { return m_dnsAddresses; }
41 inline bool DnsAddressesHasBeenSet() const { return m_dnsAddressesHasBeenSet; }
42 template <typename DnsAddressesT = Aws::Vector<Aws::String>>
43 void SetDnsAddresses(DnsAddressesT&& value) {
44 m_dnsAddressesHasBeenSet = true;
45 m_dnsAddresses = std::forward<DnsAddressesT>(value);
46 }
47 template <typename DnsAddressesT = Aws::Vector<Aws::String>>
49 SetDnsAddresses(std::forward<DnsAddressesT>(value));
50 return *this;
51 }
52 template <typename DnsAddressesT = Aws::String>
54 m_dnsAddressesHasBeenSet = true;
55 m_dnsAddresses.emplace_back(std::forward<DnsAddressesT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetGateway() const { return m_gateway; }
65 inline bool GatewayHasBeenSet() const { return m_gatewayHasBeenSet; }
66 template <typename GatewayT = Aws::String>
67 void SetGateway(GatewayT&& value) {
68 m_gatewayHasBeenSet = true;
69 m_gateway = std::forward<GatewayT>(value);
70 }
71 template <typename GatewayT = Aws::String>
73 SetGateway(std::forward<GatewayT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
83 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
84 template <typename IpAddressT = Aws::String>
85 void SetIpAddress(IpAddressT&& value) {
86 m_ipAddressHasBeenSet = true;
87 m_ipAddress = std::forward<IpAddressT>(value);
88 }
89 template <typename IpAddressT = Aws::String>
91 SetIpAddress(std::forward<IpAddressT>(value));
92 return *this;
93 }
95
97
101 inline InputDeviceIpScheme GetIpScheme() const { return m_ipScheme; }
102 inline bool IpSchemeHasBeenSet() const { return m_ipSchemeHasBeenSet; }
103 inline void SetIpScheme(InputDeviceIpScheme value) {
104 m_ipSchemeHasBeenSet = true;
105 m_ipScheme = value;
106 }
108 SetIpScheme(value);
109 return *this;
110 }
112
114
117 inline const Aws::String& GetSubnetMask() const { return m_subnetMask; }
118 inline bool SubnetMaskHasBeenSet() const { return m_subnetMaskHasBeenSet; }
119 template <typename SubnetMaskT = Aws::String>
120 void SetSubnetMask(SubnetMaskT&& value) {
121 m_subnetMaskHasBeenSet = true;
122 m_subnetMask = std::forward<SubnetMaskT>(value);
123 }
124 template <typename SubnetMaskT = Aws::String>
126 SetSubnetMask(std::forward<SubnetMaskT>(value));
127 return *this;
128 }
130 private:
131 Aws::Vector<Aws::String> m_dnsAddresses;
132
133 Aws::String m_gateway;
134
135 Aws::String m_ipAddress;
136
138
139 Aws::String m_subnetMask;
140 bool m_dnsAddressesHasBeenSet = false;
141 bool m_gatewayHasBeenSet = false;
142 bool m_ipAddressHasBeenSet = false;
143 bool m_ipSchemeHasBeenSet = false;
144 bool m_subnetMaskHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace MediaLive
149} // namespace Aws
AWS_MEDIALIVE_API InputDeviceNetworkSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API InputDeviceNetworkSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API InputDeviceNetworkSettings()=default
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
InputDeviceNetworkSettings & WithDnsAddresses(DnsAddressesT &&value)
InputDeviceNetworkSettings & WithIpScheme(InputDeviceIpScheme value)
const Aws::Vector< Aws::String > & GetDnsAddresses() const
InputDeviceNetworkSettings & WithGateway(GatewayT &&value)
InputDeviceNetworkSettings & AddDnsAddresses(DnsAddressesT &&value)
InputDeviceNetworkSettings & WithIpAddress(IpAddressT &&value)
InputDeviceNetworkSettings & WithSubnetMask(SubnetMaskT &&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