AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TransitGatewayPolicyRule.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/TransitGatewayPolicyRuleMetaData.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetSourceCidrBlock() const{ return m_sourceCidrBlock; }
49 inline bool SourceCidrBlockHasBeenSet() const { return m_sourceCidrBlockHasBeenSet; }
50 inline void SetSourceCidrBlock(const Aws::String& value) { m_sourceCidrBlockHasBeenSet = true; m_sourceCidrBlock = value; }
51 inline void SetSourceCidrBlock(Aws::String&& value) { m_sourceCidrBlockHasBeenSet = true; m_sourceCidrBlock = std::move(value); }
52 inline void SetSourceCidrBlock(const char* value) { m_sourceCidrBlockHasBeenSet = true; m_sourceCidrBlock.assign(value); }
53 inline TransitGatewayPolicyRule& WithSourceCidrBlock(const Aws::String& value) { SetSourceCidrBlock(value); return *this;}
54 inline TransitGatewayPolicyRule& WithSourceCidrBlock(Aws::String&& value) { SetSourceCidrBlock(std::move(value)); return *this;}
55 inline TransitGatewayPolicyRule& WithSourceCidrBlock(const char* value) { SetSourceCidrBlock(value); return *this;}
57
59
63 inline const Aws::String& GetSourcePortRange() const{ return m_sourcePortRange; }
64 inline bool SourcePortRangeHasBeenSet() const { return m_sourcePortRangeHasBeenSet; }
65 inline void SetSourcePortRange(const Aws::String& value) { m_sourcePortRangeHasBeenSet = true; m_sourcePortRange = value; }
66 inline void SetSourcePortRange(Aws::String&& value) { m_sourcePortRangeHasBeenSet = true; m_sourcePortRange = std::move(value); }
67 inline void SetSourcePortRange(const char* value) { m_sourcePortRangeHasBeenSet = true; m_sourcePortRange.assign(value); }
68 inline TransitGatewayPolicyRule& WithSourcePortRange(const Aws::String& value) { SetSourcePortRange(value); return *this;}
69 inline TransitGatewayPolicyRule& WithSourcePortRange(Aws::String&& value) { SetSourcePortRange(std::move(value)); return *this;}
70 inline TransitGatewayPolicyRule& WithSourcePortRange(const char* value) { SetSourcePortRange(value); return *this;}
72
74
77 inline const Aws::String& GetDestinationCidrBlock() const{ return m_destinationCidrBlock; }
78 inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
79 inline void SetDestinationCidrBlock(const Aws::String& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = value; }
80 inline void SetDestinationCidrBlock(Aws::String&& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = std::move(value); }
81 inline void SetDestinationCidrBlock(const char* value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock.assign(value); }
83 inline TransitGatewayPolicyRule& WithDestinationCidrBlock(Aws::String&& value) { SetDestinationCidrBlock(std::move(value)); return *this;}
84 inline TransitGatewayPolicyRule& WithDestinationCidrBlock(const char* value) { SetDestinationCidrBlock(value); return *this;}
86
88
92 inline const Aws::String& GetDestinationPortRange() const{ return m_destinationPortRange; }
93 inline bool DestinationPortRangeHasBeenSet() const { return m_destinationPortRangeHasBeenSet; }
94 inline void SetDestinationPortRange(const Aws::String& value) { m_destinationPortRangeHasBeenSet = true; m_destinationPortRange = value; }
95 inline void SetDestinationPortRange(Aws::String&& value) { m_destinationPortRangeHasBeenSet = true; m_destinationPortRange = std::move(value); }
96 inline void SetDestinationPortRange(const char* value) { m_destinationPortRangeHasBeenSet = true; m_destinationPortRange.assign(value); }
98 inline TransitGatewayPolicyRule& WithDestinationPortRange(Aws::String&& value) { SetDestinationPortRange(std::move(value)); return *this;}
99 inline TransitGatewayPolicyRule& WithDestinationPortRange(const char* value) { SetDestinationPortRange(value); return *this;}
101
103
106 inline const Aws::String& GetProtocol() const{ return m_protocol; }
107 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
108 inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
109 inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
110 inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
111 inline TransitGatewayPolicyRule& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
112 inline TransitGatewayPolicyRule& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
113 inline TransitGatewayPolicyRule& WithProtocol(const char* value) { SetProtocol(value); return *this;}
115
117
120 inline const TransitGatewayPolicyRuleMetaData& GetMetaData() const{ return m_metaData; }
121 inline bool MetaDataHasBeenSet() const { return m_metaDataHasBeenSet; }
122 inline void SetMetaData(const TransitGatewayPolicyRuleMetaData& value) { m_metaDataHasBeenSet = true; m_metaData = value; }
123 inline void SetMetaData(TransitGatewayPolicyRuleMetaData&& value) { m_metaDataHasBeenSet = true; m_metaData = std::move(value); }
125 inline TransitGatewayPolicyRule& WithMetaData(TransitGatewayPolicyRuleMetaData&& value) { SetMetaData(std::move(value)); return *this;}
127 private:
128
129 Aws::String m_sourceCidrBlock;
130 bool m_sourceCidrBlockHasBeenSet = false;
131
132 Aws::String m_sourcePortRange;
133 bool m_sourcePortRangeHasBeenSet = false;
134
135 Aws::String m_destinationCidrBlock;
136 bool m_destinationCidrBlockHasBeenSet = false;
137
138 Aws::String m_destinationPortRange;
139 bool m_destinationPortRangeHasBeenSet = false;
140
141 Aws::String m_protocol;
142 bool m_protocolHasBeenSet = false;
143
145 bool m_metaDataHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace EC2
150} // namespace Aws
const TransitGatewayPolicyRuleMetaData & GetMetaData() const
TransitGatewayPolicyRule & WithProtocol(const Aws::String &value)
TransitGatewayPolicyRule & WithDestinationCidrBlock(const char *value)
TransitGatewayPolicyRule & WithProtocol(const char *value)
void SetDestinationCidrBlock(const Aws::String &value)
TransitGatewayPolicyRule & WithDestinationCidrBlock(Aws::String &&value)
TransitGatewayPolicyRule & WithSourcePortRange(const char *value)
TransitGatewayPolicyRule & WithSourcePortRange(Aws::String &&value)
TransitGatewayPolicyRule & WithMetaData(TransitGatewayPolicyRuleMetaData &&value)
TransitGatewayPolicyRule & WithSourcePortRange(const Aws::String &value)
void SetSourcePortRange(const Aws::String &value)
TransitGatewayPolicyRule & WithDestinationPortRange(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetMetaData(const TransitGatewayPolicyRuleMetaData &value)
TransitGatewayPolicyRule & WithSourceCidrBlock(const char *value)
TransitGatewayPolicyRule & WithSourceCidrBlock(Aws::String &&value)
TransitGatewayPolicyRule & WithDestinationPortRange(const Aws::String &value)
void SetSourceCidrBlock(const Aws::String &value)
void SetDestinationPortRange(const Aws::String &value)
TransitGatewayPolicyRule & WithMetaData(const TransitGatewayPolicyRuleMetaData &value)
TransitGatewayPolicyRule & WithDestinationCidrBlock(const Aws::String &value)
TransitGatewayPolicyRule & WithProtocol(Aws::String &&value)
void SetMetaData(TransitGatewayPolicyRuleMetaData &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API TransitGatewayPolicyRule(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API TransitGatewayPolicyRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayPolicyRule & WithSourceCidrBlock(const Aws::String &value)
TransitGatewayPolicyRule & WithDestinationPortRange(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream