AWS SDK for C++

AWS SDK for C++ Version 1.11.925

Loading...
Searching...
No Matches
TransitGatewayNatRuleRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
31 public:
32 AWS_EC2_API TransitGatewayNatRuleRequest() = default;
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
44 inline int GetRuleNumber() const { return m_ruleNumber; }
45 inline bool RuleNumberHasBeenSet() const { return m_ruleNumberHasBeenSet; }
46 inline void SetRuleNumber(int value) {
47 m_ruleNumberHasBeenSet = true;
48 m_ruleNumber = value;
49 }
51 SetRuleNumber(value);
52 return *this;
53 }
55
57
62 inline const Aws::String& GetMatchSourceCidr() const { return m_matchSourceCidr; }
63 inline bool MatchSourceCidrHasBeenSet() const { return m_matchSourceCidrHasBeenSet; }
64 template <typename MatchSourceCidrT = Aws::String>
65 void SetMatchSourceCidr(MatchSourceCidrT&& value) {
66 m_matchSourceCidrHasBeenSet = true;
67 m_matchSourceCidr = std::forward<MatchSourceCidrT>(value);
68 }
69 template <typename MatchSourceCidrT = Aws::String>
71 SetMatchSourceCidr(std::forward<MatchSourceCidrT>(value));
72 return *this;
73 }
75
77
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>
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 EC2
109} // namespace Aws
AWS_EC2_API TransitGatewayNatRuleRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API TransitGatewayNatRuleRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API TransitGatewayNatRuleRequest()=default
TransitGatewayNatRuleRequest & WithRuleNumber(int value)
TransitGatewayNatRuleRequest & WithNatCidr(NatCidrT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayNatRuleRequest & WithMatchSourceCidr(MatchSourceCidrT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream