AWS SDK for C++

AWS SDK for C++ Version 1.11.934

Loading...
Searching...
No Matches
AttachmentNatConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/networkmanager/NetworkManager_EXPORTS.h>
10#include <aws/networkmanager/model/NatGatewaySupportState.h>
11#include <aws/networkmanager/model/NatRule.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace NetworkManager {
23namespace Model {
24
32 public:
33 AWS_NETWORKMANAGER_API AttachmentNatConfiguration() = default;
34 AWS_NETWORKMANAGER_API AttachmentNatConfiguration(Aws::Utils::Json::JsonView jsonValue);
36 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
43 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
44 template <typename AttachmentIdT = Aws::String>
45 void SetAttachmentId(AttachmentIdT&& value) {
46 m_attachmentIdHasBeenSet = true;
47 m_attachmentId = std::forward<AttachmentIdT>(value);
48 }
49 template <typename AttachmentIdT = Aws::String>
51 SetAttachmentId(std::forward<AttachmentIdT>(value));
52 return *this;
53 }
55
57
60 inline NatGatewaySupportState GetNatGatewaySupport() const { return m_natGatewaySupport; }
61 inline bool NatGatewaySupportHasBeenSet() const { return m_natGatewaySupportHasBeenSet; }
63 m_natGatewaySupportHasBeenSet = true;
64 m_natGatewaySupport = value;
65 }
71
73
77 inline bool GetNatSystemRouteSupport() const { return m_natSystemRouteSupport; }
78 inline bool NatSystemRouteSupportHasBeenSet() const { return m_natSystemRouteSupportHasBeenSet; }
79 inline void SetNatSystemRouteSupport(bool value) {
80 m_natSystemRouteSupportHasBeenSet = true;
81 m_natSystemRouteSupport = value;
82 }
85 return *this;
86 }
88
90
93 inline const Aws::Vector<NatRule>& GetNatGatewayRules() const { return m_natGatewayRules; }
94 inline bool NatGatewayRulesHasBeenSet() const { return m_natGatewayRulesHasBeenSet; }
95 template <typename NatGatewayRulesT = Aws::Vector<NatRule>>
96 void SetNatGatewayRules(NatGatewayRulesT&& value) {
97 m_natGatewayRulesHasBeenSet = true;
98 m_natGatewayRules = std::forward<NatGatewayRulesT>(value);
99 }
100 template <typename NatGatewayRulesT = Aws::Vector<NatRule>>
102 SetNatGatewayRules(std::forward<NatGatewayRulesT>(value));
103 return *this;
104 }
105 template <typename NatGatewayRulesT = NatRule>
107 m_natGatewayRulesHasBeenSet = true;
108 m_natGatewayRules.emplace_back(std::forward<NatGatewayRulesT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_attachmentId;
114
116
117 bool m_natSystemRouteSupport{false};
118
119 Aws::Vector<NatRule> m_natGatewayRules;
120 bool m_attachmentIdHasBeenSet = false;
121 bool m_natGatewaySupportHasBeenSet = false;
122 bool m_natSystemRouteSupportHasBeenSet = false;
123 bool m_natGatewayRulesHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace NetworkManager
128} // namespace Aws
AWS_NETWORKMANAGER_API AttachmentNatConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AttachmentNatConfiguration & AddNatGatewayRules(NatGatewayRulesT &&value)
AttachmentNatConfiguration & WithNatGatewaySupport(NatGatewaySupportState value)
AWS_NETWORKMANAGER_API AttachmentNatConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AttachmentNatConfiguration & WithAttachmentId(AttachmentIdT &&value)
AWS_NETWORKMANAGER_API AttachmentNatConfiguration()=default
AttachmentNatConfiguration & WithNatSystemRouteSupport(bool value)
AttachmentNatConfiguration & WithNatGatewayRules(NatGatewayRulesT &&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