AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SubnetMapping.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/network-firewall/model/IPAddressType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace NetworkFirewall
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_NETWORKFIREWALL_API SubnetMapping() = default;
40 AWS_NETWORKFIREWALL_API SubnetMapping(Aws::Utils::Json::JsonView jsonValue);
41 AWS_NETWORKFIREWALL_API SubnetMapping& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
50 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
51 template<typename SubnetIdT = Aws::String>
52 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
53 template<typename SubnetIdT = Aws::String>
54 SubnetMapping& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
56
58
62 inline IPAddressType GetIPAddressType() const { return m_iPAddressType; }
63 inline bool IPAddressTypeHasBeenSet() const { return m_iPAddressTypeHasBeenSet; }
64 inline void SetIPAddressType(IPAddressType value) { m_iPAddressTypeHasBeenSet = true; m_iPAddressType = value; }
65 inline SubnetMapping& WithIPAddressType(IPAddressType value) { SetIPAddressType(value); return *this;}
67 private:
68
69 Aws::String m_subnetId;
70 bool m_subnetIdHasBeenSet = false;
71
73 bool m_iPAddressTypeHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace NetworkFirewall
78} // namespace Aws
const Aws::String & GetSubnetId() const
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKFIREWALL_API SubnetMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
SubnetMapping & WithSubnetId(SubnetIdT &&value)
SubnetMapping & WithIPAddressType(IPAddressType value)
void SetIPAddressType(IPAddressType value)
AWS_NETWORKFIREWALL_API SubnetMapping()=default
AWS_NETWORKFIREWALL_API SubnetMapping(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue