AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Subnet.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticache/model/AvailabilityZone.h>
11#include <aws/elasticache/model/SubnetOutpost.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/elasticache/model/NetworkType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace ElastiCache
26{
27namespace Model
28{
29
37 class Subnet
38 {
39 public:
40 AWS_ELASTICACHE_API Subnet() = default;
41 AWS_ELASTICACHE_API Subnet(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_ELASTICACHE_API Subnet& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline const Aws::String& GetSubnetIdentifier() const { return m_subnetIdentifier; }
53 inline bool SubnetIdentifierHasBeenSet() const { return m_subnetIdentifierHasBeenSet; }
54 template<typename SubnetIdentifierT = Aws::String>
55 void SetSubnetIdentifier(SubnetIdentifierT&& value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier = std::forward<SubnetIdentifierT>(value); }
56 template<typename SubnetIdentifierT = Aws::String>
57 Subnet& WithSubnetIdentifier(SubnetIdentifierT&& value) { SetSubnetIdentifier(std::forward<SubnetIdentifierT>(value)); return *this;}
59
61
64 inline const AvailabilityZone& GetSubnetAvailabilityZone() const { return m_subnetAvailabilityZone; }
65 inline bool SubnetAvailabilityZoneHasBeenSet() const { return m_subnetAvailabilityZoneHasBeenSet; }
66 template<typename SubnetAvailabilityZoneT = AvailabilityZone>
67 void SetSubnetAvailabilityZone(SubnetAvailabilityZoneT&& value) { m_subnetAvailabilityZoneHasBeenSet = true; m_subnetAvailabilityZone = std::forward<SubnetAvailabilityZoneT>(value); }
68 template<typename SubnetAvailabilityZoneT = AvailabilityZone>
69 Subnet& WithSubnetAvailabilityZone(SubnetAvailabilityZoneT&& value) { SetSubnetAvailabilityZone(std::forward<SubnetAvailabilityZoneT>(value)); return *this;}
71
73
76 inline const SubnetOutpost& GetSubnetOutpost() const { return m_subnetOutpost; }
77 inline bool SubnetOutpostHasBeenSet() const { return m_subnetOutpostHasBeenSet; }
78 template<typename SubnetOutpostT = SubnetOutpost>
79 void SetSubnetOutpost(SubnetOutpostT&& value) { m_subnetOutpostHasBeenSet = true; m_subnetOutpost = std::forward<SubnetOutpostT>(value); }
80 template<typename SubnetOutpostT = SubnetOutpost>
81 Subnet& WithSubnetOutpost(SubnetOutpostT&& value) { SetSubnetOutpost(std::forward<SubnetOutpostT>(value)); return *this;}
83
85
91 inline const Aws::Vector<NetworkType>& GetSupportedNetworkTypes() const { return m_supportedNetworkTypes; }
92 inline bool SupportedNetworkTypesHasBeenSet() const { return m_supportedNetworkTypesHasBeenSet; }
93 template<typename SupportedNetworkTypesT = Aws::Vector<NetworkType>>
94 void SetSupportedNetworkTypes(SupportedNetworkTypesT&& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes = std::forward<SupportedNetworkTypesT>(value); }
95 template<typename SupportedNetworkTypesT = Aws::Vector<NetworkType>>
96 Subnet& WithSupportedNetworkTypes(SupportedNetworkTypesT&& value) { SetSupportedNetworkTypes(std::forward<SupportedNetworkTypesT>(value)); return *this;}
97 inline Subnet& AddSupportedNetworkTypes(NetworkType value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes.push_back(value); return *this; }
99 private:
100
101 Aws::String m_subnetIdentifier;
102 bool m_subnetIdentifierHasBeenSet = false;
103
104 AvailabilityZone m_subnetAvailabilityZone;
105 bool m_subnetAvailabilityZoneHasBeenSet = false;
106
107 SubnetOutpost m_subnetOutpost;
108 bool m_subnetOutpostHasBeenSet = false;
109
110 Aws::Vector<NetworkType> m_supportedNetworkTypes;
111 bool m_supportedNetworkTypesHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace ElastiCache
116} // namespace Aws
bool SubnetOutpostHasBeenSet() const
Definition Subnet.h:77
Subnet & WithSubnetIdentifier(SubnetIdentifierT &&value)
Definition Subnet.h:57
AWS_ELASTICACHE_API Subnet()=default
void SetSubnetIdentifier(SubnetIdentifierT &&value)
Definition Subnet.h:55
AWS_ELASTICACHE_API Subnet & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Subnet & WithSupportedNetworkTypes(SupportedNetworkTypesT &&value)
Definition Subnet.h:96
Subnet & AddSupportedNetworkTypes(NetworkType value)
Definition Subnet.h:97
Subnet & WithSubnetAvailabilityZone(SubnetAvailabilityZoneT &&value)
Definition Subnet.h:69
AWS_ELASTICACHE_API Subnet(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SubnetIdentifierHasBeenSet() const
Definition Subnet.h:53
const Aws::String & GetSubnetIdentifier() const
Definition Subnet.h:52
void SetSupportedNetworkTypes(SupportedNetworkTypesT &&value)
Definition Subnet.h:94
void SetSubnetAvailabilityZone(SubnetAvailabilityZoneT &&value)
Definition Subnet.h:67
const AvailabilityZone & GetSubnetAvailabilityZone() const
Definition Subnet.h:64
const SubnetOutpost & GetSubnetOutpost() const
Definition Subnet.h:76
bool SubnetAvailabilityZoneHasBeenSet() const
Definition Subnet.h:65
void SetSubnetOutpost(SubnetOutpostT &&value)
Definition Subnet.h:79
bool SupportedNetworkTypesHasBeenSet() const
Definition Subnet.h:92
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< NetworkType > & GetSupportedNetworkTypes() const
Definition Subnet.h:91
Subnet & WithSubnetOutpost(SubnetOutpostT &&value)
Definition Subnet.h:81
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