AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AnalysisPacketHeader.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/PortRange.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_EC2_API AnalysisPacketHeader() = default;
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::Vector<Aws::String>& GetDestinationAddresses() const { return m_destinationAddresses; }
51 inline bool DestinationAddressesHasBeenSet() const { return m_destinationAddressesHasBeenSet; }
52 template<typename DestinationAddressesT = Aws::Vector<Aws::String>>
53 void SetDestinationAddresses(DestinationAddressesT&& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses = std::forward<DestinationAddressesT>(value); }
54 template<typename DestinationAddressesT = Aws::Vector<Aws::String>>
55 AnalysisPacketHeader& WithDestinationAddresses(DestinationAddressesT&& value) { SetDestinationAddresses(std::forward<DestinationAddressesT>(value)); return *this;}
56 template<typename DestinationAddressesT = Aws::String>
57 AnalysisPacketHeader& AddDestinationAddresses(DestinationAddressesT&& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses.emplace_back(std::forward<DestinationAddressesT>(value)); return *this; }
59
61
64 inline const Aws::Vector<PortRange>& GetDestinationPortRanges() const { return m_destinationPortRanges; }
65 inline bool DestinationPortRangesHasBeenSet() const { return m_destinationPortRangesHasBeenSet; }
66 template<typename DestinationPortRangesT = Aws::Vector<PortRange>>
67 void SetDestinationPortRanges(DestinationPortRangesT&& value) { m_destinationPortRangesHasBeenSet = true; m_destinationPortRanges = std::forward<DestinationPortRangesT>(value); }
68 template<typename DestinationPortRangesT = Aws::Vector<PortRange>>
69 AnalysisPacketHeader& WithDestinationPortRanges(DestinationPortRangesT&& value) { SetDestinationPortRanges(std::forward<DestinationPortRangesT>(value)); return *this;}
70 template<typename DestinationPortRangesT = PortRange>
71 AnalysisPacketHeader& AddDestinationPortRanges(DestinationPortRangesT&& value) { m_destinationPortRangesHasBeenSet = true; m_destinationPortRanges.emplace_back(std::forward<DestinationPortRangesT>(value)); return *this; }
73
75
78 inline const Aws::String& GetProtocol() const { return m_protocol; }
79 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
80 template<typename ProtocolT = Aws::String>
81 void SetProtocol(ProtocolT&& value) { m_protocolHasBeenSet = true; m_protocol = std::forward<ProtocolT>(value); }
82 template<typename ProtocolT = Aws::String>
83 AnalysisPacketHeader& WithProtocol(ProtocolT&& value) { SetProtocol(std::forward<ProtocolT>(value)); return *this;}
85
87
90 inline const Aws::Vector<Aws::String>& GetSourceAddresses() const { return m_sourceAddresses; }
91 inline bool SourceAddressesHasBeenSet() const { return m_sourceAddressesHasBeenSet; }
92 template<typename SourceAddressesT = Aws::Vector<Aws::String>>
93 void SetSourceAddresses(SourceAddressesT&& value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses = std::forward<SourceAddressesT>(value); }
94 template<typename SourceAddressesT = Aws::Vector<Aws::String>>
95 AnalysisPacketHeader& WithSourceAddresses(SourceAddressesT&& value) { SetSourceAddresses(std::forward<SourceAddressesT>(value)); return *this;}
96 template<typename SourceAddressesT = Aws::String>
97 AnalysisPacketHeader& AddSourceAddresses(SourceAddressesT&& value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses.emplace_back(std::forward<SourceAddressesT>(value)); return *this; }
99
101
104 inline const Aws::Vector<PortRange>& GetSourcePortRanges() const { return m_sourcePortRanges; }
105 inline bool SourcePortRangesHasBeenSet() const { return m_sourcePortRangesHasBeenSet; }
106 template<typename SourcePortRangesT = Aws::Vector<PortRange>>
107 void SetSourcePortRanges(SourcePortRangesT&& value) { m_sourcePortRangesHasBeenSet = true; m_sourcePortRanges = std::forward<SourcePortRangesT>(value); }
108 template<typename SourcePortRangesT = Aws::Vector<PortRange>>
109 AnalysisPacketHeader& WithSourcePortRanges(SourcePortRangesT&& value) { SetSourcePortRanges(std::forward<SourcePortRangesT>(value)); return *this;}
110 template<typename SourcePortRangesT = PortRange>
111 AnalysisPacketHeader& AddSourcePortRanges(SourcePortRangesT&& value) { m_sourcePortRangesHasBeenSet = true; m_sourcePortRanges.emplace_back(std::forward<SourcePortRangesT>(value)); return *this; }
113 private:
114
115 Aws::Vector<Aws::String> m_destinationAddresses;
116 bool m_destinationAddressesHasBeenSet = false;
117
118 Aws::Vector<PortRange> m_destinationPortRanges;
119 bool m_destinationPortRangesHasBeenSet = false;
120
121 Aws::String m_protocol;
122 bool m_protocolHasBeenSet = false;
123
124 Aws::Vector<Aws::String> m_sourceAddresses;
125 bool m_sourceAddressesHasBeenSet = false;
126
127 Aws::Vector<PortRange> m_sourcePortRanges;
128 bool m_sourcePortRangesHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace EC2
133} // namespace Aws
const Aws::Vector< PortRange > & GetDestinationPortRanges() const
AnalysisPacketHeader & WithDestinationPortRanges(DestinationPortRangesT &&value)
void SetSourceAddresses(SourceAddressesT &&value)
AnalysisPacketHeader & WithProtocol(ProtocolT &&value)
const Aws::String & GetProtocol() const
AWS_EC2_API AnalysisPacketHeader(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< PortRange > & GetSourcePortRanges() const
const Aws::Vector< Aws::String > & GetDestinationAddresses() const
void SetSourcePortRanges(SourcePortRangesT &&value)
const Aws::Vector< Aws::String > & GetSourceAddresses() const
AnalysisPacketHeader & AddSourcePortRanges(SourcePortRangesT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AnalysisPacketHeader & WithDestinationAddresses(DestinationAddressesT &&value)
void SetDestinationAddresses(DestinationAddressesT &&value)
AnalysisPacketHeader & AddDestinationPortRanges(DestinationPortRangesT &&value)
AWS_EC2_API AnalysisPacketHeader & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDestinationPortRanges(DestinationPortRangesT &&value)
AWS_EC2_API AnalysisPacketHeader()=default
AnalysisPacketHeader & AddSourceAddresses(SourceAddressesT &&value)
AnalysisPacketHeader & WithSourceAddresses(SourceAddressesT &&value)
AnalysisPacketHeader & WithSourcePortRanges(SourcePortRangesT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AnalysisPacketHeader & AddDestinationAddresses(DestinationAddressesT &&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