AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDnsAddresses(const Aws::Vector<Aws::String>& value) { m_dnsAddressesHasBeenSet = true; m_dnsAddresses = value; }
49 inline void SetDnsAddresses(Aws::Vector<Aws::String>&& value) { m_dnsAddressesHasBeenSet = true; m_dnsAddresses = std::move(value); }
51 inline InputDeviceNetworkSettings& WithDnsAddresses(Aws::Vector<Aws::String>&& value) { SetDnsAddresses(std::move(value)); return *this;}
52 inline InputDeviceNetworkSettings& AddDnsAddresses(const Aws::String& value) { m_dnsAddressesHasBeenSet = true; m_dnsAddresses.push_back(value); return *this; }
53 inline InputDeviceNetworkSettings& AddDnsAddresses(Aws::String&& value) { m_dnsAddressesHasBeenSet = true; m_dnsAddresses.push_back(std::move(value)); return *this; }
54 inline InputDeviceNetworkSettings& AddDnsAddresses(const char* value) { m_dnsAddressesHasBeenSet = true; m_dnsAddresses.push_back(value); return *this; }
56
58
61 inline const Aws::String& GetGateway() const{ return m_gateway; }
62 inline bool GatewayHasBeenSet() const { return m_gatewayHasBeenSet; }
63 inline void SetGateway(const Aws::String& value) { m_gatewayHasBeenSet = true; m_gateway = value; }
64 inline void SetGateway(Aws::String&& value) { m_gatewayHasBeenSet = true; m_gateway = std::move(value); }
65 inline void SetGateway(const char* value) { m_gatewayHasBeenSet = true; m_gateway.assign(value); }
66 inline InputDeviceNetworkSettings& WithGateway(const Aws::String& value) { SetGateway(value); return *this;}
67 inline InputDeviceNetworkSettings& WithGateway(Aws::String&& value) { SetGateway(std::move(value)); return *this;}
68 inline InputDeviceNetworkSettings& WithGateway(const char* value) { SetGateway(value); return *this;}
70
72
75 inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
76 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
77 inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
78 inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
79 inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
80 inline InputDeviceNetworkSettings& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
81 inline InputDeviceNetworkSettings& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
82 inline InputDeviceNetworkSettings& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
84
86
90 inline const InputDeviceIpScheme& GetIpScheme() const{ return m_ipScheme; }
91 inline bool IpSchemeHasBeenSet() const { return m_ipSchemeHasBeenSet; }
92 inline void SetIpScheme(const InputDeviceIpScheme& value) { m_ipSchemeHasBeenSet = true; m_ipScheme = value; }
93 inline void SetIpScheme(InputDeviceIpScheme&& value) { m_ipSchemeHasBeenSet = true; m_ipScheme = std::move(value); }
94 inline InputDeviceNetworkSettings& WithIpScheme(const InputDeviceIpScheme& value) { SetIpScheme(value); return *this;}
95 inline InputDeviceNetworkSettings& WithIpScheme(InputDeviceIpScheme&& value) { SetIpScheme(std::move(value)); return *this;}
97
99
102 inline const Aws::String& GetSubnetMask() const{ return m_subnetMask; }
103 inline bool SubnetMaskHasBeenSet() const { return m_subnetMaskHasBeenSet; }
104 inline void SetSubnetMask(const Aws::String& value) { m_subnetMaskHasBeenSet = true; m_subnetMask = value; }
105 inline void SetSubnetMask(Aws::String&& value) { m_subnetMaskHasBeenSet = true; m_subnetMask = std::move(value); }
106 inline void SetSubnetMask(const char* value) { m_subnetMaskHasBeenSet = true; m_subnetMask.assign(value); }
107 inline InputDeviceNetworkSettings& WithSubnetMask(const Aws::String& value) { SetSubnetMask(value); return *this;}
108 inline InputDeviceNetworkSettings& WithSubnetMask(Aws::String&& value) { SetSubnetMask(std::move(value)); return *this;}
109 inline InputDeviceNetworkSettings& WithSubnetMask(const char* value) { SetSubnetMask(value); return *this;}
111 private:
112
113 Aws::Vector<Aws::String> m_dnsAddresses;
114 bool m_dnsAddressesHasBeenSet = false;
115
116 Aws::String m_gateway;
117 bool m_gatewayHasBeenSet = false;
118
119 Aws::String m_ipAddress;
120 bool m_ipAddressHasBeenSet = false;
121
122 InputDeviceIpScheme m_ipScheme;
123 bool m_ipSchemeHasBeenSet = false;
124
125 Aws::String m_subnetMask;
126 bool m_subnetMaskHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace MediaLive
131} // namespace Aws
InputDeviceNetworkSettings & WithGateway(const char *value)
AWS_MEDIALIVE_API InputDeviceNetworkSettings(Aws::Utils::Json::JsonView jsonValue)
InputDeviceNetworkSettings & WithGateway(const Aws::String &value)
AWS_MEDIALIVE_API InputDeviceNetworkSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
InputDeviceNetworkSettings & AddDnsAddresses(const char *value)
InputDeviceNetworkSettings & WithIpAddress(const char *value)
InputDeviceNetworkSettings & WithDnsAddresses(const Aws::Vector< Aws::String > &value)
InputDeviceNetworkSettings & WithIpAddress(const Aws::String &value)
InputDeviceNetworkSettings & WithIpAddress(Aws::String &&value)
InputDeviceNetworkSettings & WithIpScheme(InputDeviceIpScheme &&value)
InputDeviceNetworkSettings & WithSubnetMask(const char *value)
InputDeviceNetworkSettings & WithIpScheme(const InputDeviceIpScheme &value)
void SetDnsAddresses(const Aws::Vector< Aws::String > &value)
InputDeviceNetworkSettings & WithGateway(Aws::String &&value)
InputDeviceNetworkSettings & WithDnsAddresses(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetDnsAddresses() const
InputDeviceNetworkSettings & WithSubnetMask(Aws::String &&value)
InputDeviceNetworkSettings & WithSubnetMask(const Aws::String &value)
InputDeviceNetworkSettings & AddDnsAddresses(Aws::String &&value)
void SetDnsAddresses(Aws::Vector< Aws::String > &&value)
InputDeviceNetworkSettings & AddDnsAddresses(const Aws::String &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