AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
InputDeviceNetworkSettings.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/medialive/model/InputDeviceIpScheme.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MediaLive
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_MEDIALIVE_API InputDeviceNetworkSettings() = default;
39 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Aws::String>& GetDnsAddresses() const { return m_dnsAddresses; }
47 inline bool DnsAddressesHasBeenSet() const { return m_dnsAddressesHasBeenSet; }
48 template<typename DnsAddressesT = Aws::Vector<Aws::String>>
49 void SetDnsAddresses(DnsAddressesT&& value) { m_dnsAddressesHasBeenSet = true; m_dnsAddresses = std::forward<DnsAddressesT>(value); }
50 template<typename DnsAddressesT = Aws::Vector<Aws::String>>
51 InputDeviceNetworkSettings& WithDnsAddresses(DnsAddressesT&& value) { SetDnsAddresses(std::forward<DnsAddressesT>(value)); return *this;}
52 template<typename DnsAddressesT = Aws::String>
53 InputDeviceNetworkSettings& AddDnsAddresses(DnsAddressesT&& value) { m_dnsAddressesHasBeenSet = true; m_dnsAddresses.emplace_back(std::forward<DnsAddressesT>(value)); return *this; }
55
57
60 inline const Aws::String& GetGateway() const { return m_gateway; }
61 inline bool GatewayHasBeenSet() const { return m_gatewayHasBeenSet; }
62 template<typename GatewayT = Aws::String>
63 void SetGateway(GatewayT&& value) { m_gatewayHasBeenSet = true; m_gateway = std::forward<GatewayT>(value); }
64 template<typename GatewayT = Aws::String>
65 InputDeviceNetworkSettings& WithGateway(GatewayT&& value) { SetGateway(std::forward<GatewayT>(value)); return *this;}
67
69
72 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
73 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
74 template<typename IpAddressT = Aws::String>
75 void SetIpAddress(IpAddressT&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::forward<IpAddressT>(value); }
76 template<typename IpAddressT = Aws::String>
77 InputDeviceNetworkSettings& WithIpAddress(IpAddressT&& value) { SetIpAddress(std::forward<IpAddressT>(value)); return *this;}
79
81
85 inline InputDeviceIpScheme GetIpScheme() const { return m_ipScheme; }
86 inline bool IpSchemeHasBeenSet() const { return m_ipSchemeHasBeenSet; }
87 inline void SetIpScheme(InputDeviceIpScheme value) { m_ipSchemeHasBeenSet = true; m_ipScheme = value; }
90
92
95 inline const Aws::String& GetSubnetMask() const { return m_subnetMask; }
96 inline bool SubnetMaskHasBeenSet() const { return m_subnetMaskHasBeenSet; }
97 template<typename SubnetMaskT = Aws::String>
98 void SetSubnetMask(SubnetMaskT&& value) { m_subnetMaskHasBeenSet = true; m_subnetMask = std::forward<SubnetMaskT>(value); }
99 template<typename SubnetMaskT = Aws::String>
100 InputDeviceNetworkSettings& WithSubnetMask(SubnetMaskT&& value) { SetSubnetMask(std::forward<SubnetMaskT>(value)); return *this;}
102 private:
103
104 Aws::Vector<Aws::String> m_dnsAddresses;
105 bool m_dnsAddressesHasBeenSet = false;
106
107 Aws::String m_gateway;
108 bool m_gatewayHasBeenSet = false;
109
110 Aws::String m_ipAddress;
111 bool m_ipAddressHasBeenSet = false;
112
114 bool m_ipSchemeHasBeenSet = false;
115
116 Aws::String m_subnetMask;
117 bool m_subnetMaskHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace MediaLive
122} // 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