AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
NatRuleRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/networkmanager/NetworkManager_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace NetworkManager {
20namespace Model {
21
32 public:
33 AWS_NETWORKMANAGER_API NatRuleRequest() = default;
34 AWS_NETWORKMANAGER_API NatRuleRequest(Aws::Utils::Json::JsonView jsonValue);
35 AWS_NETWORKMANAGER_API NatRuleRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline int GetRuleNumber() const { return m_ruleNumber; }
44 inline bool RuleNumberHasBeenSet() const { return m_ruleNumberHasBeenSet; }
45 inline void SetRuleNumber(int value) {
46 m_ruleNumberHasBeenSet = true;
47 m_ruleNumber = value;
48 }
49 inline NatRuleRequest& WithRuleNumber(int value) {
50 SetRuleNumber(value);
51 return *this;
52 }
54
56
61 inline const Aws::String& GetMatchSourceCidr() const { return m_matchSourceCidr; }
62 inline bool MatchSourceCidrHasBeenSet() const { return m_matchSourceCidrHasBeenSet; }
63 template <typename MatchSourceCidrT = Aws::String>
64 void SetMatchSourceCidr(MatchSourceCidrT&& value) {
65 m_matchSourceCidrHasBeenSet = true;
66 m_matchSourceCidr = std::forward<MatchSourceCidrT>(value);
67 }
68 template <typename MatchSourceCidrT = Aws::String>
69 NatRuleRequest& WithMatchSourceCidr(MatchSourceCidrT&& value) {
70 SetMatchSourceCidr(std::forward<MatchSourceCidrT>(value));
71 return *this;
72 }
74
76
83 inline const Aws::String& GetNatCidr() const { return m_natCidr; }
84 inline bool NatCidrHasBeenSet() const { return m_natCidrHasBeenSet; }
85 template <typename NatCidrT = Aws::String>
86 void SetNatCidr(NatCidrT&& value) {
87 m_natCidrHasBeenSet = true;
88 m_natCidr = std::forward<NatCidrT>(value);
89 }
90 template <typename NatCidrT = Aws::String>
91 NatRuleRequest& WithNatCidr(NatCidrT&& value) {
92 SetNatCidr(std::forward<NatCidrT>(value));
93 return *this;
94 }
96 private:
97 int m_ruleNumber{0};
98
99 Aws::String m_matchSourceCidr;
100
101 Aws::String m_natCidr;
102 bool m_ruleNumberHasBeenSet = false;
103 bool m_matchSourceCidrHasBeenSet = false;
104 bool m_natCidrHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace NetworkManager
109} // namespace Aws
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKMANAGER_API NatRuleRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKMANAGER_API NatRuleRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMatchSourceCidr(MatchSourceCidrT &&value)
NatRuleRequest & WithNatCidr(NatCidrT &&value)
AWS_NETWORKMANAGER_API NatRuleRequest()=default
NatRuleRequest & WithMatchSourceCidr(MatchSourceCidrT &&value)
const Aws::String & GetMatchSourceCidr() const
const Aws::String & GetNatCidr() const
NatRuleRequest & WithRuleNumber(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue