AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
VerifiedAccessEndpointCidrOptions.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/VerifiedAccessEndpointProtocol.h>
12#include <aws/ec2/model/VerifiedAccessEndpointPortRange.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_EC2_API VerifiedAccessEndpointCidrOptions() = default;
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetCidr() const { return m_cidr; }
51 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
52 template<typename CidrT = Aws::String>
53 void SetCidr(CidrT&& value) { m_cidrHasBeenSet = true; m_cidr = std::forward<CidrT>(value); }
54 template<typename CidrT = Aws::String>
55 VerifiedAccessEndpointCidrOptions& WithCidr(CidrT&& value) { SetCidr(std::forward<CidrT>(value)); return *this;}
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) { m_portRangesHasBeenSet = true; m_portRanges = std::forward<PortRangesT>(value); }
66 template<typename PortRangesT = Aws::Vector<VerifiedAccessEndpointPortRange>>
67 VerifiedAccessEndpointCidrOptions& WithPortRanges(PortRangesT&& value) { SetPortRanges(std::forward<PortRangesT>(value)); return *this;}
68 template<typename PortRangesT = VerifiedAccessEndpointPortRange>
69 VerifiedAccessEndpointCidrOptions& AddPortRanges(PortRangesT&& value) { m_portRangesHasBeenSet = true; m_portRanges.emplace_back(std::forward<PortRangesT>(value)); return *this; }
71
73
76 inline VerifiedAccessEndpointProtocol GetProtocol() const { return m_protocol; }
77 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
78 inline void SetProtocol(VerifiedAccessEndpointProtocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
81
83
86 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
87 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
88 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
89 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
90 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
91 VerifiedAccessEndpointCidrOptions& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
92 template<typename SubnetIdsT = Aws::String>
93 VerifiedAccessEndpointCidrOptions& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
95 private:
96
97 Aws::String m_cidr;
98 bool m_cidrHasBeenSet = false;
99
101 bool m_portRangesHasBeenSet = false;
102
104 bool m_protocolHasBeenSet = false;
105
106 Aws::Vector<Aws::String> m_subnetIds;
107 bool m_subnetIdsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace EC2
112} // 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