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/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/redshift/model/AvailabilityZone.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace Redshift
23{
24namespace Model
25{
26
32 class Subnet
33 {
34 public:
35 AWS_REDSHIFT_API Subnet();
36 AWS_REDSHIFT_API Subnet(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_REDSHIFT_API Subnet& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetSubnetIdentifier() const{ return m_subnetIdentifier; }
48 inline bool SubnetIdentifierHasBeenSet() const { return m_subnetIdentifierHasBeenSet; }
49 inline void SetSubnetIdentifier(const Aws::String& value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier = value; }
50 inline void SetSubnetIdentifier(Aws::String&& value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier = std::move(value); }
51 inline void SetSubnetIdentifier(const char* value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier.assign(value); }
52 inline Subnet& WithSubnetIdentifier(const Aws::String& value) { SetSubnetIdentifier(value); return *this;}
53 inline Subnet& WithSubnetIdentifier(Aws::String&& value) { SetSubnetIdentifier(std::move(value)); return *this;}
54 inline Subnet& WithSubnetIdentifier(const char* value) { SetSubnetIdentifier(value); return *this;}
56
58
61 inline const AvailabilityZone& GetSubnetAvailabilityZone() const{ return m_subnetAvailabilityZone; }
62 inline bool SubnetAvailabilityZoneHasBeenSet() const { return m_subnetAvailabilityZoneHasBeenSet; }
63 inline void SetSubnetAvailabilityZone(const AvailabilityZone& value) { m_subnetAvailabilityZoneHasBeenSet = true; m_subnetAvailabilityZone = value; }
64 inline void SetSubnetAvailabilityZone(AvailabilityZone&& value) { m_subnetAvailabilityZoneHasBeenSet = true; m_subnetAvailabilityZone = std::move(value); }
65 inline Subnet& WithSubnetAvailabilityZone(const AvailabilityZone& value) { SetSubnetAvailabilityZone(value); return *this;}
66 inline Subnet& WithSubnetAvailabilityZone(AvailabilityZone&& value) { SetSubnetAvailabilityZone(std::move(value)); return *this;}
68
70
73 inline const Aws::String& GetSubnetStatus() const{ return m_subnetStatus; }
74 inline bool SubnetStatusHasBeenSet() const { return m_subnetStatusHasBeenSet; }
75 inline void SetSubnetStatus(const Aws::String& value) { m_subnetStatusHasBeenSet = true; m_subnetStatus = value; }
76 inline void SetSubnetStatus(Aws::String&& value) { m_subnetStatusHasBeenSet = true; m_subnetStatus = std::move(value); }
77 inline void SetSubnetStatus(const char* value) { m_subnetStatusHasBeenSet = true; m_subnetStatus.assign(value); }
78 inline Subnet& WithSubnetStatus(const Aws::String& value) { SetSubnetStatus(value); return *this;}
79 inline Subnet& WithSubnetStatus(Aws::String&& value) { SetSubnetStatus(std::move(value)); return *this;}
80 inline Subnet& WithSubnetStatus(const char* value) { SetSubnetStatus(value); return *this;}
82 private:
83
84 Aws::String m_subnetIdentifier;
85 bool m_subnetIdentifierHasBeenSet = false;
86
87 AvailabilityZone m_subnetAvailabilityZone;
88 bool m_subnetAvailabilityZoneHasBeenSet = false;
89
90 Aws::String m_subnetStatus;
91 bool m_subnetStatusHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Redshift
96} // namespace Aws
void SetSubnetAvailabilityZone(AvailabilityZone &&value)
Definition Subnet.h:64
AWS_REDSHIFT_API Subnet & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Subnet & WithSubnetStatus(Aws::String &&value)
Definition Subnet.h:79
bool SubnetIdentifierHasBeenSet() const
Definition Subnet.h:48
bool SubnetAvailabilityZoneHasBeenSet() const
Definition Subnet.h:62
Subnet & WithSubnetAvailabilityZone(AvailabilityZone &&value)
Definition Subnet.h:66
const AvailabilityZone & GetSubnetAvailabilityZone() const
Definition Subnet.h:61
Subnet & WithSubnetAvailabilityZone(const AvailabilityZone &value)
Definition Subnet.h:65
void SetSubnetAvailabilityZone(const AvailabilityZone &value)
Definition Subnet.h:63
bool SubnetStatusHasBeenSet() const
Definition Subnet.h:74
Subnet & WithSubnetIdentifier(const Aws::String &value)
Definition Subnet.h:52
Subnet & WithSubnetIdentifier(Aws::String &&value)
Definition Subnet.h:53
const Aws::String & GetSubnetStatus() const
Definition Subnet.h:73
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetSubnetStatus(Aws::String &&value)
Definition Subnet.h:76
void SetSubnetIdentifier(Aws::String &&value)
Definition Subnet.h:50
Subnet & WithSubnetStatus(const char *value)
Definition Subnet.h:80
Subnet & WithSubnetStatus(const Aws::String &value)
Definition Subnet.h:78
AWS_REDSHIFT_API Subnet()
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Subnet & WithSubnetIdentifier(const char *value)
Definition Subnet.h:54
const Aws::String & GetSubnetIdentifier() const
Definition Subnet.h:47
AWS_REDSHIFT_API Subnet(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSubnetIdentifier(const char *value)
Definition Subnet.h:51
void SetSubnetStatus(const char *value)
Definition Subnet.h:77
void SetSubnetIdentifier(const Aws::String &value)
Definition Subnet.h:49
void SetSubnetStatus(const Aws::String &value)
Definition Subnet.h:75
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream