AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
VerifiedAccessEndpointEniOptions.h
1
6#pragma once
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/VerifiedAccessEndpointPortRange.h>
12#include <aws/ec2/model/VerifiedAccessEndpointProtocol.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
31 public:
32 AWS_EC2_API VerifiedAccessEndpointEniOptions() = 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
40
43 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
44 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
45 template <typename NetworkInterfaceIdT = Aws::String>
46 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) {
47 m_networkInterfaceIdHasBeenSet = true;
48 m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value);
49 }
50 template <typename NetworkInterfaceIdT = Aws::String>
52 SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value));
53 return *this;
54 }
56
58
61 inline VerifiedAccessEndpointProtocol GetProtocol() const { return m_protocol; }
62 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
64 m_protocolHasBeenSet = true;
65 m_protocol = value;
66 }
68 SetProtocol(value);
69 return *this;
70 }
72
74
77 inline int GetPort() const { return m_port; }
78 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
79 inline void SetPort(int value) {
80 m_portHasBeenSet = true;
81 m_port = value;
82 }
84 SetPort(value);
85 return *this;
86 }
88
90
93 inline const Aws::Vector<VerifiedAccessEndpointPortRange>& GetPortRanges() const { return m_portRanges; }
94 inline bool PortRangesHasBeenSet() const { return m_portRangesHasBeenSet; }
95 template <typename PortRangesT = Aws::Vector<VerifiedAccessEndpointPortRange>>
96 void SetPortRanges(PortRangesT&& value) {
97 m_portRangesHasBeenSet = true;
98 m_portRanges = std::forward<PortRangesT>(value);
99 }
100 template <typename PortRangesT = Aws::Vector<VerifiedAccessEndpointPortRange>>
102 SetPortRanges(std::forward<PortRangesT>(value));
103 return *this;
104 }
105 template <typename PortRangesT = VerifiedAccessEndpointPortRange>
107 m_portRangesHasBeenSet = true;
108 m_portRanges.emplace_back(std::forward<PortRangesT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_networkInterfaceId;
114
116
117 int m_port{0};
118
120 bool m_networkInterfaceIdHasBeenSet = false;
121 bool m_protocolHasBeenSet = false;
122 bool m_portHasBeenSet = false;
123 bool m_portRangesHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace EC2
128} // namespace Aws
VerifiedAccessEndpointEniOptions & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
const Aws::Vector< VerifiedAccessEndpointPortRange > & GetPortRanges() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
VerifiedAccessEndpointEniOptions & WithPort(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
VerifiedAccessEndpointEniOptions & WithProtocol(VerifiedAccessEndpointProtocol value)
AWS_EC2_API VerifiedAccessEndpointEniOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VerifiedAccessEndpointEniOptions & AddPortRanges(PortRangesT &&value)
AWS_EC2_API VerifiedAccessEndpointEniOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
VerifiedAccessEndpointEniOptions & WithPortRanges(PortRangesT &&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