AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
VerifiedAccessEndpointCidrOptions.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
32 public:
33 AWS_EC2_API VerifiedAccessEndpointCidrOptions() = default;
36
37 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetCidr() const { return m_cidr; }
45 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
46 template <typename CidrT = Aws::String>
47 void SetCidr(CidrT&& value) {
48 m_cidrHasBeenSet = true;
49 m_cidr = std::forward<CidrT>(value);
50 }
51 template <typename CidrT = Aws::String>
53 SetCidr(std::forward<CidrT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<VerifiedAccessEndpointPortRange>& GetPortRanges() const { return m_portRanges; }
63 inline bool PortRangesHasBeenSet() const { return m_portRangesHasBeenSet; }
64 template <typename PortRangesT = Aws::Vector<VerifiedAccessEndpointPortRange>>
65 void SetPortRanges(PortRangesT&& value) {
66 m_portRangesHasBeenSet = true;
67 m_portRanges = std::forward<PortRangesT>(value);
68 }
69 template <typename PortRangesT = Aws::Vector<VerifiedAccessEndpointPortRange>>
71 SetPortRanges(std::forward<PortRangesT>(value));
72 return *this;
73 }
74 template <typename PortRangesT = VerifiedAccessEndpointPortRange>
76 m_portRangesHasBeenSet = true;
77 m_portRanges.emplace_back(std::forward<PortRangesT>(value));
78 return *this;
79 }
81
83
86 inline VerifiedAccessEndpointProtocol GetProtocol() const { return m_protocol; }
87 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
89 m_protocolHasBeenSet = true;
90 m_protocol = value;
91 }
93 SetProtocol(value);
94 return *this;
95 }
97
99
102 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
103 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
104 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
105 void SetSubnetIds(SubnetIdsT&& value) {
106 m_subnetIdsHasBeenSet = true;
107 m_subnetIds = std::forward<SubnetIdsT>(value);
108 }
109 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
111 SetSubnetIds(std::forward<SubnetIdsT>(value));
112 return *this;
113 }
114 template <typename SubnetIdsT = Aws::String>
116 m_subnetIdsHasBeenSet = true;
117 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_cidr;
123
125
127
128 Aws::Vector<Aws::String> m_subnetIds;
129 bool m_cidrHasBeenSet = false;
130 bool m_portRangesHasBeenSet = false;
131 bool m_protocolHasBeenSet = false;
132 bool m_subnetIdsHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace EC2
137} // namespace Aws
VerifiedAccessEndpointCidrOptions & AddPortRanges(PortRangesT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
VerifiedAccessEndpointCidrOptions & AddSubnetIds(SubnetIdsT &&value)
VerifiedAccessEndpointCidrOptions & WithSubnetIds(SubnetIdsT &&value)
VerifiedAccessEndpointCidrOptions & WithPortRanges(PortRangesT &&value)
AWS_EC2_API VerifiedAccessEndpointCidrOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< VerifiedAccessEndpointPortRange > & GetPortRanges() const
VerifiedAccessEndpointCidrOptions & WithProtocol(VerifiedAccessEndpointProtocol value)
AWS_EC2_API VerifiedAccessEndpointCidrOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
VerifiedAccessEndpointCidrOptions & WithCidr(CidrT &&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