AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
SubnetMapping.h
Go to the documentation of this file.
1
6#pragma once
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:
43
44
48 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
49
53 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
54
58 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
59
63 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
64
68 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
69
73 inline SubnetMapping& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
74
78 inline SubnetMapping& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
79
83 inline SubnetMapping& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
84
85
90 inline const IPAddressType& GetIPAddressType() const{ return m_iPAddressType; }
91
96 inline bool IPAddressTypeHasBeenSet() const { return m_iPAddressTypeHasBeenSet; }
97
102 inline void SetIPAddressType(const IPAddressType& value) { m_iPAddressTypeHasBeenSet = true; m_iPAddressType = value; }
103
108 inline void SetIPAddressType(IPAddressType&& value) { m_iPAddressTypeHasBeenSet = true; m_iPAddressType = std::move(value); }
109
114 inline SubnetMapping& WithIPAddressType(const IPAddressType& value) { SetIPAddressType(value); return *this;}
115
120 inline SubnetMapping& WithIPAddressType(IPAddressType&& value) { SetIPAddressType(std::move(value)); return *this;}
121
122 private:
123
124 Aws::String m_subnetId;
125 bool m_subnetIdHasBeenSet = false;
126
127 IPAddressType m_iPAddressType;
128 bool m_iPAddressTypeHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace NetworkFirewall
133} // namespace Aws
#define AWS_NETWORKFIREWALL_API
const IPAddressType & GetIPAddressType() const
Definition: SubnetMapping.h:90
const Aws::String & GetSubnetId() const
Definition: SubnetMapping.h:48
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKFIREWALL_API SubnetMapping()
void SetIPAddressType(IPAddressType &&value)
SubnetMapping & WithIPAddressType(const IPAddressType &value)
AWS_NETWORKFIREWALL_API SubnetMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSubnetId(const Aws::String &value)
Definition: SubnetMapping.h:58
void SetIPAddressType(const IPAddressType &value)
SubnetMapping & WithSubnetId(const char *value)
Definition: SubnetMapping.h:83
SubnetMapping & WithSubnetId(Aws::String &&value)
Definition: SubnetMapping.h:78
AWS_NETWORKFIREWALL_API SubnetMapping(Aws::Utils::Json::JsonView jsonValue)
SubnetMapping & WithIPAddressType(IPAddressType &&value)
void SetSubnetId(Aws::String &&value)
Definition: SubnetMapping.h:63
SubnetMapping & WithSubnetId(const Aws::String &value)
Definition: SubnetMapping.h:73
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String