7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/PortRange.h>
44 template <
typename RuleGroupArnT = Aws::String>
46 m_ruleGroupArnHasBeenSet =
true;
47 m_ruleGroupArn = std::forward<RuleGroupArnT>(value);
49 template <
typename RuleGroupArnT = Aws::String>
62 template <
typename SourcesT = Aws::Vector<Aws::String>>
64 m_sourcesHasBeenSet =
true;
65 m_sources = std::forward<SourcesT>(value);
67 template <
typename SourcesT = Aws::Vector<Aws::String>>
72 template <
typename SourcesT = Aws::String>
74 m_sourcesHasBeenSet =
true;
75 m_sources.emplace_back(std::forward<SourcesT>(value));
86 template <
typename DestinationsT = Aws::Vector<Aws::String>>
88 m_destinationsHasBeenSet =
true;
89 m_destinations = std::forward<DestinationsT>(value);
91 template <
typename DestinationsT = Aws::Vector<Aws::String>>
96 template <
typename DestinationsT = Aws::String>
98 m_destinationsHasBeenSet =
true;
99 m_destinations.emplace_back(std::forward<DestinationsT>(value));
110 template <
typename SourcePortsT = Aws::Vector<PortRange>>
112 m_sourcePortsHasBeenSet =
true;
113 m_sourcePorts = std::forward<SourcePortsT>(value);
115 template <
typename SourcePortsT = Aws::Vector<PortRange>>
120 template <
typename SourcePortsT = PortRange>
122 m_sourcePortsHasBeenSet =
true;
123 m_sourcePorts.emplace_back(std::forward<SourcePortsT>(value));
134 template <
typename DestinationPortsT = Aws::Vector<PortRange>>
136 m_destinationPortsHasBeenSet =
true;
137 m_destinationPorts = std::forward<DestinationPortsT>(value);
139 template <
typename DestinationPortsT = Aws::Vector<PortRange>>
144 template <
typename DestinationPortsT = PortRange>
146 m_destinationPortsHasBeenSet =
true;
147 m_destinationPorts.emplace_back(std::forward<DestinationPortsT>(value));
158 template <
typename ProtocolT = Aws::String>
160 m_protocolHasBeenSet =
true;
161 m_protocol = std::forward<ProtocolT>(value);
163 template <
typename ProtocolT = Aws::String>
177 template <
typename RuleActionT = Aws::String>
179 m_ruleActionHasBeenSet =
true;
180 m_ruleAction = std::forward<RuleActionT>(value);
182 template <
typename RuleActionT = Aws::String>
196 template <
typename DirectionT = Aws::String>
198 m_directionHasBeenSet =
true;
199 m_direction = std::forward<DirectionT>(value);
201 template <
typename DirectionT = Aws::String>
223 bool m_ruleGroupArnHasBeenSet =
false;
224 bool m_sourcesHasBeenSet =
false;
225 bool m_destinationsHasBeenSet =
false;
226 bool m_sourcePortsHasBeenSet =
false;
227 bool m_destinationPortsHasBeenSet =
false;
228 bool m_protocolHasBeenSet =
false;
229 bool m_ruleActionHasBeenSet =
false;
230 bool m_directionHasBeenSet =
false;
FirewallStatefulRule & WithProtocol(ProtocolT &&value)
const Aws::Vector< PortRange > & GetDestinationPorts() const
FirewallStatefulRule & AddSources(SourcesT &&value)
FirewallStatefulRule & AddDestinationPorts(DestinationPortsT &&value)
FirewallStatefulRule & WithDestinationPorts(DestinationPortsT &&value)
const Aws::String & GetRuleGroupArn() const
void SetDestinations(DestinationsT &&value)
const Aws::String & GetProtocol() const
void SetDirection(DirectionT &&value)
FirewallStatefulRule & WithSourcePorts(SourcePortsT &&value)
void SetProtocol(ProtocolT &&value)
FirewallStatefulRule & AddDestinations(DestinationsT &&value)
const Aws::String & GetDirection() const
FirewallStatefulRule & AddSourcePorts(SourcePortsT &&value)
FirewallStatefulRule & WithRuleGroupArn(RuleGroupArnT &&value)
FirewallStatefulRule & WithSources(SourcesT &&value)
FirewallStatefulRule & WithDestinations(DestinationsT &&value)
bool DirectionHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API FirewallStatefulRule(const Aws::Utils::Xml::XmlNode &xmlNode)
FirewallStatefulRule & WithRuleAction(RuleActionT &&value)
void SetDestinationPorts(DestinationPortsT &&value)
bool SourcesHasBeenSet() const
const Aws::String & GetRuleAction() const
FirewallStatefulRule & WithDirection(DirectionT &&value)
bool ProtocolHasBeenSet() const
void SetRuleGroupArn(RuleGroupArnT &&value)
const Aws::Vector< PortRange > & GetSourcePorts() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetSources(SourcesT &&value)
bool SourcePortsHasBeenSet() const
const Aws::Vector< Aws::String > & GetSources() const
bool DestinationsHasBeenSet() const
AWS_EC2_API FirewallStatefulRule()=default
void SetRuleAction(RuleActionT &&value)
bool RuleGroupArnHasBeenSet() const
bool DestinationPortsHasBeenSet() const
AWS_EC2_API FirewallStatefulRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSourcePorts(SourcePortsT &&value)
bool RuleActionHasBeenSet() const
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