AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSubnetIdentifier(const Aws::String& value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier = value; }
55 inline void SetSubnetIdentifier(Aws::String&& value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier = std::move(value); }
56 inline void SetSubnetIdentifier(const char* value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier.assign(value); }
57 inline Subnet& WithSubnetIdentifier(const Aws::String& value) { SetSubnetIdentifier(value); return *this;}
58 inline Subnet& WithSubnetIdentifier(Aws::String&& value) { SetSubnetIdentifier(std::move(value)); return *this;}
59 inline Subnet& WithSubnetIdentifier(const char* value) { SetSubnetIdentifier(value); return *this;}
61
63
66 inline const AvailabilityZone& GetSubnetAvailabilityZone() const{ return m_subnetAvailabilityZone; }
67 inline bool SubnetAvailabilityZoneHasBeenSet() const { return m_subnetAvailabilityZoneHasBeenSet; }
68 inline void SetSubnetAvailabilityZone(const AvailabilityZone& value) { m_subnetAvailabilityZoneHasBeenSet = true; m_subnetAvailabilityZone = value; }
69 inline void SetSubnetAvailabilityZone(AvailabilityZone&& value) { m_subnetAvailabilityZoneHasBeenSet = true; m_subnetAvailabilityZone = std::move(value); }
70 inline Subnet& WithSubnetAvailabilityZone(const AvailabilityZone& value) { SetSubnetAvailabilityZone(value); return *this;}
71 inline Subnet& WithSubnetAvailabilityZone(AvailabilityZone&& value) { SetSubnetAvailabilityZone(std::move(value)); return *this;}
73
75
78 inline const SubnetOutpost& GetSubnetOutpost() const{ return m_subnetOutpost; }
79 inline bool SubnetOutpostHasBeenSet() const { return m_subnetOutpostHasBeenSet; }
80 inline void SetSubnetOutpost(const SubnetOutpost& value) { m_subnetOutpostHasBeenSet = true; m_subnetOutpost = value; }
81 inline void SetSubnetOutpost(SubnetOutpost&& value) { m_subnetOutpostHasBeenSet = true; m_subnetOutpost = std::move(value); }
82 inline Subnet& WithSubnetOutpost(const SubnetOutpost& value) { SetSubnetOutpost(value); return *this;}
83 inline Subnet& WithSubnetOutpost(SubnetOutpost&& value) { SetSubnetOutpost(std::move(value)); return *this;}
85
87
93 inline const Aws::Vector<NetworkType>& GetSupportedNetworkTypes() const{ return m_supportedNetworkTypes; }
94 inline bool SupportedNetworkTypesHasBeenSet() const { return m_supportedNetworkTypesHasBeenSet; }
95 inline void SetSupportedNetworkTypes(const Aws::Vector<NetworkType>& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes = value; }
96 inline void SetSupportedNetworkTypes(Aws::Vector<NetworkType>&& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes = std::move(value); }
98 inline Subnet& WithSupportedNetworkTypes(Aws::Vector<NetworkType>&& value) { SetSupportedNetworkTypes(std::move(value)); return *this;}
99 inline Subnet& AddSupportedNetworkTypes(const NetworkType& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes.push_back(value); return *this; }
100 inline Subnet& AddSupportedNetworkTypes(NetworkType&& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes.push_back(std::move(value)); return *this; }
102 private:
103
104 Aws::String m_subnetIdentifier;
105 bool m_subnetIdentifierHasBeenSet = false;
106
107 AvailabilityZone m_subnetAvailabilityZone;
108 bool m_subnetAvailabilityZoneHasBeenSet = false;
109
110 SubnetOutpost m_subnetOutpost;
111 bool m_subnetOutpostHasBeenSet = false;
112
113 Aws::Vector<NetworkType> m_supportedNetworkTypes;
114 bool m_supportedNetworkTypesHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace ElastiCache
119} // namespace Aws
Subnet & WithSubnetIdentifier(const char *value)
Definition Subnet.h:59
bool SubnetOutpostHasBeenSet() const
Definition Subnet.h:79
void SetSubnetAvailabilityZone(const AvailabilityZone &value)
Definition Subnet.h:68
Subnet & WithSubnetOutpost(SubnetOutpost &&value)
Definition Subnet.h:83
void SetSubnetIdentifier(const char *value)
Definition Subnet.h:56
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 & WithSubnetAvailabilityZone(const AvailabilityZone &value)
Definition Subnet.h:70
Subnet & WithSupportedNetworkTypes(Aws::Vector< NetworkType > &&value)
Definition Subnet.h:98
Subnet & AddSupportedNetworkTypes(const NetworkType &value)
Definition Subnet.h:99
void SetSupportedNetworkTypes(const Aws::Vector< NetworkType > &value)
Definition Subnet.h:95
AWS_ELASTICACHE_API Subnet()
void SetSupportedNetworkTypes(Aws::Vector< NetworkType > &&value)
Definition Subnet.h:96
Subnet & WithSubnetIdentifier(const Aws::String &value)
Definition Subnet.h:57
Subnet & WithSubnetAvailabilityZone(AvailabilityZone &&value)
Definition Subnet.h:71
AWS_ELASTICACHE_API Subnet(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SubnetIdentifierHasBeenSet() const
Definition Subnet.h:53
Subnet & WithSupportedNetworkTypes(const Aws::Vector< NetworkType > &value)
Definition Subnet.h:97
const Aws::String & GetSubnetIdentifier() const
Definition Subnet.h:52
Subnet & WithSubnetOutpost(const SubnetOutpost &value)
Definition Subnet.h:82
void SetSubnetOutpost(const SubnetOutpost &value)
Definition Subnet.h:80
const AvailabilityZone & GetSubnetAvailabilityZone() const
Definition Subnet.h:66
void SetSubnetOutpost(SubnetOutpost &&value)
Definition Subnet.h:81
const SubnetOutpost & GetSubnetOutpost() const
Definition Subnet.h:78
Subnet & AddSupportedNetworkTypes(NetworkType &&value)
Definition Subnet.h:100
void SetSubnetIdentifier(const Aws::String &value)
Definition Subnet.h:54
Subnet & WithSubnetIdentifier(Aws::String &&value)
Definition Subnet.h:58
void SetSubnetIdentifier(Aws::String &&value)
Definition Subnet.h:55
void SetSubnetAvailabilityZone(AvailabilityZone &&value)
Definition Subnet.h:69
bool SubnetAvailabilityZoneHasBeenSet() const
Definition Subnet.h:67
bool SupportedNetworkTypesHasBeenSet() const
Definition Subnet.h:94
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< NetworkType > & GetSupportedNetworkTypes() const
Definition Subnet.h:93
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