AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ModifyVerifiedAccessEndpointEniOptions.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/VerifiedAccessEndpointProtocol.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/ModifyVerifiedAccessEndpointPortRange.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
35 {
36 public:
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline VerifiedAccessEndpointProtocol GetProtocol() const { return m_protocol; }
50 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
51 inline void SetProtocol(VerifiedAccessEndpointProtocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
54
56
59 inline int GetPort() const { return m_port; }
60 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
61 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
62 inline ModifyVerifiedAccessEndpointEniOptions& WithPort(int value) { SetPort(value); return *this;}
64
66
69 inline const Aws::Vector<ModifyVerifiedAccessEndpointPortRange>& GetPortRanges() const { return m_portRanges; }
70 inline bool PortRangesHasBeenSet() const { return m_portRangesHasBeenSet; }
71 template<typename PortRangesT = Aws::Vector<ModifyVerifiedAccessEndpointPortRange>>
72 void SetPortRanges(PortRangesT&& value) { m_portRangesHasBeenSet = true; m_portRanges = std::forward<PortRangesT>(value); }
73 template<typename PortRangesT = Aws::Vector<ModifyVerifiedAccessEndpointPortRange>>
74 ModifyVerifiedAccessEndpointEniOptions& WithPortRanges(PortRangesT&& value) { SetPortRanges(std::forward<PortRangesT>(value)); return *this;}
75 template<typename PortRangesT = ModifyVerifiedAccessEndpointPortRange>
76 ModifyVerifiedAccessEndpointEniOptions& AddPortRanges(PortRangesT&& value) { m_portRangesHasBeenSet = true; m_portRanges.emplace_back(std::forward<PortRangesT>(value)); return *this; }
78 private:
79
81 bool m_protocolHasBeenSet = false;
82
83 int m_port{0};
84 bool m_portHasBeenSet = false;
85
87 bool m_portRangesHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace EC2
92} // namespace Aws
AWS_EC2_API ModifyVerifiedAccessEndpointEniOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ModifyVerifiedAccessEndpointEniOptions & WithProtocol(VerifiedAccessEndpointProtocol value)
AWS_EC2_API ModifyVerifiedAccessEndpointEniOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
ModifyVerifiedAccessEndpointEniOptions & WithPortRanges(PortRangesT &&value)
ModifyVerifiedAccessEndpointEniOptions & AddPortRanges(PortRangesT &&value)
const Aws::Vector< ModifyVerifiedAccessEndpointPortRange > & GetPortRanges() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream