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); }
138 inline void SetRuleAction(
const char* value) { m_ruleActionHasBeenSet =
true; m_ruleAction.assign(value); }
150 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
156 bool m_ruleGroupArnHasBeenSet =
false;
159 bool m_sourcesHasBeenSet =
false;
162 bool m_destinationsHasBeenSet =
false;
165 bool m_sourcePortsHasBeenSet =
false;
168 bool m_destinationPortsHasBeenSet =
false;
171 bool m_protocolsHasBeenSet =
false;
174 bool m_ruleActionHasBeenSet =
false;
177 bool m_priorityHasBeenSet =
false;
bool ProtocolsHasBeenSet() const
FirewallStatelessRule & WithSourcePorts(const Aws::Vector< PortRange > &value)
void SetDestinationPorts(Aws::Vector< PortRange > &&value)
FirewallStatelessRule & WithSources(Aws::Vector< Aws::String > &&value)
FirewallStatelessRule & AddDestinations(const char *value)
FirewallStatelessRule & WithRuleGroupArn(Aws::String &&value)
void SetProtocols(const Aws::Vector< int > &value)
FirewallStatelessRule & WithRuleAction(const Aws::String &value)
void SetSourcePorts(const Aws::Vector< PortRange > &value)
FirewallStatelessRule & AddDestinations(const Aws::String &value)
void SetRuleGroupArn(const char *value)
FirewallStatelessRule & WithPriority(int value)
void SetRuleGroupArn(Aws::String &&value)
FirewallStatelessRule & AddDestinationPorts(PortRange &&value)
FirewallStatelessRule & WithRuleGroupArn(const Aws::String &value)
void SetRuleAction(const char *value)
FirewallStatelessRule & AddDestinations(Aws::String &&value)
FirewallStatelessRule & AddProtocols(int value)
void SetSources(const Aws::Vector< Aws::String > &value)
void SetDestinationPorts(const Aws::Vector< PortRange > &value)
FirewallStatelessRule & AddDestinationPorts(const PortRange &value)
void SetSourcePorts(Aws::Vector< PortRange > &&value)
const Aws::Vector< Aws::String > & GetDestinations() const
FirewallStatelessRule & AddSources(const char *value)
FirewallStatelessRule & WithProtocols(Aws::Vector< int > &&value)
FirewallStatelessRule & WithDestinations(const Aws::Vector< Aws::String > &value)
AWS_EC2_API FirewallStatelessRule(const Aws::Utils::Xml::XmlNode &xmlNode)
FirewallStatelessRule & AddSourcePorts(PortRange &&value)
const Aws::String & GetRuleGroupArn() const
const Aws::Vector< int > & GetProtocols() const
FirewallStatelessRule & AddSourcePorts(const PortRange &value)
bool PriorityHasBeenSet() const
bool RuleGroupArnHasBeenSet() const
FirewallStatelessRule & AddSources(const Aws::String &value)
const Aws::String & GetRuleAction() const
bool SourcesHasBeenSet() const
void SetRuleAction(Aws::String &&value)
FirewallStatelessRule & AddSources(Aws::String &&value)
FirewallStatelessRule & WithProtocols(const Aws::Vector< int > &value)
void SetSources(Aws::Vector< Aws::String > &&value)
AWS_EC2_API FirewallStatelessRule()
FirewallStatelessRule & WithDestinationPorts(Aws::Vector< PortRange > &&value)
void SetRuleGroupArn(const Aws::String &value)
FirewallStatelessRule & WithRuleAction(Aws::String &&value)
bool RuleActionHasBeenSet() const
bool SourcePortsHasBeenSet() const
void SetPriority(int value)
FirewallStatelessRule & WithSourcePorts(Aws::Vector< PortRange > &&value)
const Aws::Vector< Aws::String > & GetSources() const
void SetRuleAction(const Aws::String &value)
FirewallStatelessRule & WithRuleGroupArn(const char *value)
bool DestinationPortsHasBeenSet() const
AWS_EC2_API FirewallStatelessRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< PortRange > & GetDestinationPorts() const
FirewallStatelessRule & WithRuleAction(const char *value)
void SetDestinations(Aws::Vector< Aws::String > &&value)
FirewallStatelessRule & WithDestinationPorts(const Aws::Vector< PortRange > &value)
void SetProtocols(Aws::Vector< int > &&value)
void SetDestinations(const Aws::Vector< Aws::String > &value)
bool DestinationsHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
FirewallStatelessRule & WithDestinations(Aws::Vector< Aws::String > &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< PortRange > & GetSourcePorts() const
FirewallStatelessRule & WithSources(const Aws::Vector< Aws::String > &value)
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