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>
52 inline void SetSourceCidrBlock(
const char* value) { m_sourceCidrBlockHasBeenSet =
true; m_sourceCidrBlock.assign(value); }
67 inline void SetSourcePortRange(
const char* value) { m_sourcePortRangeHasBeenSet =
true; m_sourcePortRange.assign(value); }
81 inline void SetDestinationCidrBlock(
const char* value) { m_destinationCidrBlockHasBeenSet =
true; m_destinationCidrBlock.assign(value); }
96 inline void SetDestinationPortRange(
const char* value) { m_destinationPortRangeHasBeenSet =
true; m_destinationPortRange.assign(value); }
110 inline void SetProtocol(
const char* value) { m_protocolHasBeenSet =
true; m_protocol.assign(value); }
130 bool m_sourceCidrBlockHasBeenSet =
false;
133 bool m_sourcePortRangeHasBeenSet =
false;
136 bool m_destinationCidrBlockHasBeenSet =
false;
139 bool m_destinationPortRangeHasBeenSet =
false;
142 bool m_protocolHasBeenSet =
false;
145 bool m_metaDataHasBeenSet =
false;
const TransitGatewayPolicyRuleMetaData & GetMetaData() const
void SetDestinationCidrBlock(Aws::String &&value)
void SetProtocol(const Aws::String &value)
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)
void SetProtocol(Aws::String &&value)
TransitGatewayPolicyRule & WithMetaData(TransitGatewayPolicyRuleMetaData &&value)
const Aws::String & GetDestinationCidrBlock() const
TransitGatewayPolicyRule & WithSourcePortRange(const Aws::String &value)
void SetSourceCidrBlock(const char *value)
const Aws::String & GetProtocol() const
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 SetDestinationPortRange(const char *value)
void SetProtocol(const char *value)
void SetMetaData(const TransitGatewayPolicyRuleMetaData &value)
TransitGatewayPolicyRule & WithSourceCidrBlock(const char *value)
TransitGatewayPolicyRule & WithSourceCidrBlock(Aws::String &&value)
AWS_EC2_API TransitGatewayPolicyRule()
bool DestinationPortRangeHasBeenSet() const
bool SourceCidrBlockHasBeenSet() const
bool ProtocolHasBeenSet() const
TransitGatewayPolicyRule & WithDestinationPortRange(const Aws::String &value)
const Aws::String & GetSourceCidrBlock() const
void SetSourceCidrBlock(const Aws::String &value)
const Aws::String & GetDestinationPortRange() const
bool DestinationCidrBlockHasBeenSet() const
void SetDestinationPortRange(const Aws::String &value)
void SetSourcePortRange(const char *value)
void SetSourceCidrBlock(Aws::String &&value)
TransitGatewayPolicyRule & WithMetaData(const TransitGatewayPolicyRuleMetaData &value)
void SetDestinationPortRange(Aws::String &&value)
TransitGatewayPolicyRule & WithDestinationCidrBlock(const Aws::String &value)
const Aws::String & GetSourcePortRange() const
bool MetaDataHasBeenSet() const
TransitGatewayPolicyRule & WithProtocol(Aws::String &&value)
void SetMetaData(TransitGatewayPolicyRuleMetaData &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetSourcePortRange(Aws::String &&value)
void SetDestinationCidrBlock(const char *value)
AWS_EC2_API TransitGatewayPolicyRule(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SourcePortRangeHasBeenSet() const
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