AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
SubnetMapping.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
10#include <aws/network-firewall/model/IPAddressType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace NetworkFirewall {
21namespace Model {
22
33 public:
34 AWS_NETWORKFIREWALL_API SubnetMapping() = default;
35 AWS_NETWORKFIREWALL_API SubnetMapping(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_NETWORKFIREWALL_API SubnetMapping& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
43 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
44 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
45 template <typename SubnetIdT = Aws::String>
46 void SetSubnetId(SubnetIdT&& value) {
47 m_subnetIdHasBeenSet = true;
48 m_subnetId = std::forward<SubnetIdT>(value);
49 }
50 template <typename SubnetIdT = Aws::String>
51 SubnetMapping& WithSubnetId(SubnetIdT&& value) {
52 SetSubnetId(std::forward<SubnetIdT>(value));
53 return *this;
54 }
56
58
62 inline IPAddressType GetIPAddressType() const { return m_iPAddressType; }
63 inline bool IPAddressTypeHasBeenSet() const { return m_iPAddressTypeHasBeenSet; }
64 inline void SetIPAddressType(IPAddressType value) {
65 m_iPAddressTypeHasBeenSet = true;
66 m_iPAddressType = value;
67 }
69 SetIPAddressType(value);
70 return *this;
71 }
73 private:
74 Aws::String m_subnetId;
75
77 bool m_subnetIdHasBeenSet = false;
78 bool m_iPAddressTypeHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace NetworkFirewall
83} // namespace Aws
AWS_NETWORKFIREWALL_API SubnetMapping(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetSubnetId() const
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
SubnetMapping & WithSubnetId(SubnetIdT &&value)
SubnetMapping & WithIPAddressType(IPAddressType value)
void SetIPAddressType(IPAddressType value)
AWS_NETWORKFIREWALL_API SubnetMapping()=default
AWS_NETWORKFIREWALL_API SubnetMapping & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String