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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/PortRange.h>
52 inline void SetRuleGroupArn(
const char* value) { m_ruleGroupArnHasBeenSet =
true; m_ruleGroupArn.assign(value); }
124 inline void SetProtocol(
const char* value) { m_protocolHasBeenSet =
true; m_protocol.assign(value); }
139 inline void SetRuleAction(
const char* value) { m_ruleActionHasBeenSet =
true; m_ruleAction.assign(value); }
154 inline void SetDirection(
const char* value) { m_directionHasBeenSet =
true; m_direction.assign(value); }
162 bool m_ruleGroupArnHasBeenSet =
false;
165 bool m_sourcesHasBeenSet =
false;
168 bool m_destinationsHasBeenSet =
false;
171 bool m_sourcePortsHasBeenSet =
false;
174 bool m_destinationPortsHasBeenSet =
false;
177 bool m_protocolHasBeenSet =
false;
180 bool m_ruleActionHasBeenSet =
false;
183 bool m_directionHasBeenSet =
false;
FirewallStatefulRule & WithSources(Aws::Vector< Aws::String > &&value)
void SetRuleAction(Aws::String &&value)
FirewallStatefulRule & WithDirection(Aws::String &&value)
const Aws::Vector< PortRange > & GetDestinationPorts() const
FirewallStatefulRule & WithDestinations(Aws::Vector< Aws::String > &&value)
void SetSources(Aws::Vector< Aws::String > &&value)
FirewallStatefulRule & AddSourcePorts(PortRange &&value)
FirewallStatefulRule & WithRuleAction(const char *value)
const Aws::String & GetRuleGroupArn() const
FirewallStatefulRule & AddDestinations(const char *value)
const Aws::String & GetProtocol() const
AWS_EC2_API FirewallStatefulRule()
FirewallStatefulRule & WithRuleAction(Aws::String &&value)
void SetDestinations(const Aws::Vector< Aws::String > &value)
const Aws::String & GetDirection() const
void SetDestinationPorts(Aws::Vector< PortRange > &&value)
FirewallStatefulRule & WithSourcePorts(const Aws::Vector< PortRange > &value)
void SetSourcePorts(const Aws::Vector< PortRange > &value)
void SetSources(const Aws::Vector< Aws::String > &value)
FirewallStatefulRule & AddDestinationPorts(PortRange &&value)
void SetProtocol(Aws::String &&value)
void SetDirection(const Aws::String &value)
bool DirectionHasBeenSet() const
void SetRuleAction(const Aws::String &value)
FirewallStatefulRule & WithProtocol(Aws::String &&value)
void SetProtocol(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
FirewallStatefulRule & WithProtocol(const Aws::String &value)
void SetProtocol(const Aws::String &value)
void SetRuleGroupArn(const char *value)
AWS_EC2_API FirewallStatefulRule(const Aws::Utils::Xml::XmlNode &xmlNode)
FirewallStatefulRule & AddDestinations(const Aws::String &value)
bool SourcesHasBeenSet() const
FirewallStatefulRule & WithSourcePorts(Aws::Vector< PortRange > &&value)
void SetRuleAction(const char *value)
FirewallStatefulRule & WithRuleAction(const Aws::String &value)
FirewallStatefulRule & WithDirection(const Aws::String &value)
void SetRuleGroupArn(const Aws::String &value)
const Aws::String & GetRuleAction() const
FirewallStatefulRule & WithProtocol(const char *value)
FirewallStatefulRule & WithRuleGroupArn(const char *value)
bool ProtocolHasBeenSet() const
const Aws::Vector< PortRange > & GetSourcePorts() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
FirewallStatefulRule & AddDestinations(Aws::String &&value)
FirewallStatefulRule & AddSources(Aws::String &&value)
FirewallStatefulRule & WithDestinationPorts(const Aws::Vector< PortRange > &value)
bool SourcePortsHasBeenSet() const
void SetDirection(const char *value)
const Aws::Vector< Aws::String > & GetSources() const
FirewallStatefulRule & WithSources(const Aws::Vector< Aws::String > &value)
void SetDestinationPorts(const Aws::Vector< PortRange > &value)
void SetDestinations(Aws::Vector< Aws::String > &&value)
bool DestinationsHasBeenSet() const
void SetSourcePorts(Aws::Vector< PortRange > &&value)
FirewallStatefulRule & AddDestinationPorts(const PortRange &value)
void SetDirection(Aws::String &&value)
FirewallStatefulRule & WithDestinationPorts(Aws::Vector< PortRange > &&value)
bool RuleGroupArnHasBeenSet() const
FirewallStatefulRule & WithDestinations(const Aws::Vector< Aws::String > &value)
bool DestinationPortsHasBeenSet() const
AWS_EC2_API FirewallStatefulRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
FirewallStatefulRule & WithRuleGroupArn(Aws::String &&value)
FirewallStatefulRule & WithDirection(const char *value)
FirewallStatefulRule & AddSources(const char *value)
FirewallStatefulRule & WithRuleGroupArn(const Aws::String &value)
void SetRuleGroupArn(Aws::String &&value)
FirewallStatefulRule & AddSourcePorts(const PortRange &value)
bool RuleActionHasBeenSet() const
FirewallStatefulRule & AddSources(const Aws::String &value)
const Aws::Vector< Aws::String > & GetDestinations() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream