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>
50 template<
typename SourceC
idrBlockT = Aws::String>
51 void SetSourceCidrBlock(SourceCidrBlockT&& value) { m_sourceCidrBlockHasBeenSet =
true; m_sourceCidrBlock = std::forward<SourceCidrBlockT>(value); }
52 template<
typename SourceC
idrBlockT = Aws::String>
63 template<
typename SourcePortRangeT = Aws::String>
64 void SetSourcePortRange(SourcePortRangeT&& value) { m_sourcePortRangeHasBeenSet =
true; m_sourcePortRange = std::forward<SourcePortRangeT>(value); }
65 template<
typename SourcePortRangeT = Aws::String>
75 template<
typename DestinationC
idrBlockT = Aws::String>
76 void SetDestinationCidrBlock(DestinationCidrBlockT&& value) { m_destinationCidrBlockHasBeenSet =
true; m_destinationCidrBlock = std::forward<DestinationCidrBlockT>(value); }
77 template<
typename DestinationC
idrBlockT = Aws::String>
88 template<
typename DestinationPortRangeT = Aws::String>
89 void SetDestinationPortRange(DestinationPortRangeT&& value) { m_destinationPortRangeHasBeenSet =
true; m_destinationPortRange = std::forward<DestinationPortRangeT>(value); }
90 template<
typename DestinationPortRangeT = Aws::String>
100 template<
typename ProtocolT = Aws::String>
101 void SetProtocol(ProtocolT&& value) { m_protocolHasBeenSet =
true; m_protocol = std::forward<ProtocolT>(value); }
102 template<
typename ProtocolT = Aws::String>
112 template<
typename MetaDataT = TransitGatewayPolicyRuleMetaData>
113 void SetMetaData(MetaDataT&& value) { m_metaDataHasBeenSet =
true; m_metaData = std::forward<MetaDataT>(value); }
114 template<
typename MetaDataT = TransitGatewayPolicyRuleMetaData>
120 bool m_sourceCidrBlockHasBeenSet =
false;
123 bool m_sourcePortRangeHasBeenSet =
false;
126 bool m_destinationCidrBlockHasBeenSet =
false;
129 bool m_destinationPortRangeHasBeenSet =
false;
132 bool m_protocolHasBeenSet =
false;
135 bool m_metaDataHasBeenSet =
false;
const TransitGatewayPolicyRuleMetaData & GetMetaData() const
AWS_EC2_API TransitGatewayPolicyRule()=default
TransitGatewayPolicyRule & WithMetaData(MetaDataT &&value)
void SetDestinationCidrBlock(DestinationCidrBlockT &&value)
void SetSourcePortRange(SourcePortRangeT &&value)
const Aws::String & GetDestinationCidrBlock() const
const Aws::String & GetProtocol() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool DestinationPortRangeHasBeenSet() const
void SetSourceCidrBlock(SourceCidrBlockT &&value)
TransitGatewayPolicyRule & WithDestinationCidrBlock(DestinationCidrBlockT &&value)
bool SourceCidrBlockHasBeenSet() const
bool ProtocolHasBeenSet() const
TransitGatewayPolicyRule & WithProtocol(ProtocolT &&value)
void SetDestinationPortRange(DestinationPortRangeT &&value)
const Aws::String & GetSourceCidrBlock() const
TransitGatewayPolicyRule & WithSourceCidrBlock(SourceCidrBlockT &&value)
const Aws::String & GetDestinationPortRange() const
bool DestinationCidrBlockHasBeenSet() const
const Aws::String & GetSourcePortRange() const
bool MetaDataHasBeenSet() const
TransitGatewayPolicyRule & WithSourcePortRange(SourcePortRangeT &&value)
TransitGatewayPolicyRule & WithDestinationPortRange(DestinationPortRangeT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API TransitGatewayPolicyRule(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SourcePortRangeHasBeenSet() const
AWS_EC2_API TransitGatewayPolicyRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetProtocol(ProtocolT &&value)
void SetMetaData(MetaDataT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream