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>
50 template<
typename RuleGroupArnT = Aws::String>
51 void SetRuleGroupArn(RuleGroupArnT&& value) { m_ruleGroupArnHasBeenSet =
true; m_ruleGroupArn = std::forward<RuleGroupArnT>(value); }
52 template<
typename RuleGroupArnT = Aws::String>
62 template<
typename SourcesT = Aws::Vector<Aws::String>>
63 void SetSources(SourcesT&& value) { m_sourcesHasBeenSet =
true; m_sources = std::forward<SourcesT>(value); }
64 template<
typename SourcesT = Aws::Vector<Aws::String>>
66 template<
typename SourcesT = Aws::String>
76 template<
typename DestinationsT = Aws::Vector<Aws::String>>
77 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet =
true; m_destinations = std::forward<DestinationsT>(value); }
78 template<
typename DestinationsT = Aws::Vector<Aws::String>>
80 template<
typename DestinationsT = Aws::String>
90 template<
typename SourcePortsT = Aws::Vector<PortRange>>
91 void SetSourcePorts(SourcePortsT&& value) { m_sourcePortsHasBeenSet =
true; m_sourcePorts = std::forward<SourcePortsT>(value); }
92 template<
typename SourcePortsT = Aws::Vector<PortRange>>
94 template<
typename SourcePortsT = PortRange>
104 template<
typename DestinationPortsT = Aws::Vector<PortRange>>
105 void SetDestinationPorts(DestinationPortsT&& value) { m_destinationPortsHasBeenSet =
true; m_destinationPorts = std::forward<DestinationPortsT>(value); }
106 template<
typename DestinationPortsT = Aws::Vector<PortRange>>
108 template<
typename DestinationPortsT = PortRange>
118 template<
typename ProtocolsT = Aws::Vector<
int>>
119 void SetProtocols(ProtocolsT&& value) { m_protocolsHasBeenSet =
true; m_protocols = std::forward<ProtocolsT>(value); }
120 template<
typename ProtocolsT = Aws::Vector<
int>>
132 template<
typename RuleActionT = Aws::String>
133 void SetRuleAction(RuleActionT&& value) { m_ruleActionHasBeenSet =
true; m_ruleAction = std::forward<RuleActionT>(value); }
134 template<
typename RuleActionT = Aws::String>
144 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
150 bool m_ruleGroupArnHasBeenSet =
false;
153 bool m_sourcesHasBeenSet =
false;
156 bool m_destinationsHasBeenSet =
false;
159 bool m_sourcePortsHasBeenSet =
false;
162 bool m_destinationPortsHasBeenSet =
false;
165 bool m_protocolsHasBeenSet =
false;
168 bool m_ruleActionHasBeenSet =
false;
171 bool m_priorityHasBeenSet =
false;
bool ProtocolsHasBeenSet() const
FirewallStatelessRule & WithSourcePorts(SourcePortsT &&value)
FirewallStatelessRule & AddDestinationPorts(DestinationPortsT &&value)
FirewallStatelessRule & WithSources(SourcesT &&value)
FirewallStatelessRule & WithPriority(int value)
FirewallStatelessRule & AddSources(SourcesT &&value)
FirewallStatelessRule & AddProtocols(int value)
void SetDestinations(DestinationsT &&value)
FirewallStatelessRule & AddSourcePorts(SourcePortsT &&value)
void SetSources(SourcesT &&value)
void SetSourcePorts(SourcePortsT &&value)
const Aws::Vector< Aws::String > & GetDestinations() const
void SetRuleAction(RuleActionT &&value)
AWS_EC2_API FirewallStatelessRule(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetRuleGroupArn() const
FirewallStatelessRule & AddDestinations(DestinationsT &&value)
const Aws::Vector< int > & GetProtocols() const
bool PriorityHasBeenSet() const
bool RuleGroupArnHasBeenSet() const
FirewallStatelessRule & WithDestinations(DestinationsT &&value)
const Aws::String & GetRuleAction() const
bool SourcesHasBeenSet() const
void SetDestinationPorts(DestinationPortsT &&value)
void SetRuleGroupArn(RuleGroupArnT &&value)
bool RuleActionHasBeenSet() const
bool SourcePortsHasBeenSet() const
void SetPriority(int value)
AWS_EC2_API FirewallStatelessRule()=default
FirewallStatelessRule & WithRuleAction(RuleActionT &&value)
const Aws::Vector< Aws::String > & GetSources() const
bool DestinationPortsHasBeenSet() const
AWS_EC2_API FirewallStatelessRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< PortRange > & GetDestinationPorts() const
FirewallStatelessRule & WithRuleGroupArn(RuleGroupArnT &&value)
FirewallStatelessRule & WithDestinationPorts(DestinationPortsT &&value)
FirewallStatelessRule & WithProtocols(ProtocolsT &&value)
void SetProtocols(ProtocolsT &&value)
bool DestinationsHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< PortRange > & GetSourcePorts() 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