AWS SDK for C++  1.9.69
AWS SDK for C++
TrafficMirrorPortRangeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
9 
10 namespace Aws
11 {
12 namespace Utils
13 {
14 namespace Xml
15 {
16  class XmlNode;
17 } // namespace Xml
18 } // namespace Utils
19 namespace EC2
20 {
21 namespace Model
22 {
23 
31  {
32  public:
36 
37  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38  void OutputToStream(Aws::OStream& oStream, const char* location) const;
39 
40 
45  inline int GetFromPort() const{ return m_fromPort; }
46 
51  inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
52 
57  inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
58 
63  inline TrafficMirrorPortRangeRequest& WithFromPort(int value) { SetFromPort(value); return *this;}
64 
65 
70  inline int GetToPort() const{ return m_toPort; }
71 
76  inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
77 
82  inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
83 
88  inline TrafficMirrorPortRangeRequest& WithToPort(int value) { SetToPort(value); return *this;}
89 
90  private:
91 
92  int m_fromPort;
93  bool m_fromPortHasBeenSet;
94 
95  int m_toPort;
96  bool m_toPortHasBeenSet;
97  };
98 
99 } // namespace Model
100 } // namespace EC2
101 } // namespace Aws
Aws::EC2::Model::TrafficMirrorPortRangeRequest::WithFromPort
TrafficMirrorPortRangeRequest & WithFromPort(int value)
Definition: TrafficMirrorPortRangeRequest.h:63
Aws::EC2::Model::TrafficMirrorPortRangeRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::TrafficMirrorPortRangeRequest
Definition: TrafficMirrorPortRangeRequest.h:31
Aws::EC2::Model::TrafficMirrorPortRangeRequest::FromPortHasBeenSet
bool FromPortHasBeenSet() const
Definition: TrafficMirrorPortRangeRequest.h:51
Aws::EC2::Model::TrafficMirrorPortRangeRequest::ToPortHasBeenSet
bool ToPortHasBeenSet() const
Definition: TrafficMirrorPortRangeRequest.h:76
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TrafficMirrorPortRangeRequest::TrafficMirrorPortRangeRequest
TrafficMirrorPortRangeRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TrafficMirrorPortRangeRequest::operator=
TrafficMirrorPortRangeRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TrafficMirrorPortRangeRequest::WithToPort
TrafficMirrorPortRangeRequest & WithToPort(int value)
Definition: TrafficMirrorPortRangeRequest.h:88
Aws::EC2::Model::TrafficMirrorPortRangeRequest::GetFromPort
int GetFromPort() const
Definition: TrafficMirrorPortRangeRequest.h:45
Aws::EC2::Model::TrafficMirrorPortRangeRequest::TrafficMirrorPortRangeRequest
TrafficMirrorPortRangeRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TrafficMirrorPortRangeRequest::GetToPort
int GetToPort() const
Definition: TrafficMirrorPortRangeRequest.h:70
Aws::EC2::Model::TrafficMirrorPortRangeRequest::SetFromPort
void SetFromPort(int value)
Definition: TrafficMirrorPortRangeRequest.h:57
Aws::EC2::Model::TrafficMirrorPortRangeRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::TrafficMirrorPortRangeRequest::SetToPort
void SetToPort(int value)
Definition: TrafficMirrorPortRangeRequest.h:82
EC2_EXPORTS.h