AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
VerifiedAccessEndpointPortRange.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9
10namespace Aws
11{
12namespace Utils
13{
14namespace Xml
15{
16 class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2
20{
21namespace Model
22{
23
30 {
31 public:
32 AWS_EC2_API VerifiedAccessEndpointPortRange() = default;
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
39
41
44 inline int GetFromPort() const { return m_fromPort; }
45 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
46 inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
47 inline VerifiedAccessEndpointPortRange& WithFromPort(int value) { SetFromPort(value); return *this;}
49
51
54 inline int GetToPort() const { return m_toPort; }
55 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
56 inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
57 inline VerifiedAccessEndpointPortRange& WithToPort(int value) { SetToPort(value); return *this;}
59 private:
60
61 int m_fromPort{0};
62 bool m_fromPortHasBeenSet = false;
63
64 int m_toPort{0};
65 bool m_toPortHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace EC2
70} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API VerifiedAccessEndpointPortRange(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API VerifiedAccessEndpointPortRange & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VerifiedAccessEndpointPortRange & WithToPort(int value)
VerifiedAccessEndpointPortRange & WithFromPort(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_ostream< char, std::char_traits< char > > OStream