AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
AvailabilityZone.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace Redshift
24{
25namespace Model
26{
27
34 {
35 public:
39
40 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
47 inline const Aws::String& GetName() const{ return m_name; }
48
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53
57 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68
72 inline AvailabilityZone& WithName(const Aws::String& value) { SetName(value); return *this;}
73
77 inline AvailabilityZone& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78
82 inline AvailabilityZone& WithName(const char* value) { SetName(value); return *this;}
83
84
88 inline const Aws::Vector<SupportedPlatform>& GetSupportedPlatforms() const{ return m_supportedPlatforms; }
89
93 inline bool SupportedPlatformsHasBeenSet() const { return m_supportedPlatformsHasBeenSet; }
94
98 inline void SetSupportedPlatforms(const Aws::Vector<SupportedPlatform>& value) { m_supportedPlatformsHasBeenSet = true; m_supportedPlatforms = value; }
99
103 inline void SetSupportedPlatforms(Aws::Vector<SupportedPlatform>&& value) { m_supportedPlatformsHasBeenSet = true; m_supportedPlatforms = std::move(value); }
104
109
114
118 inline AvailabilityZone& AddSupportedPlatforms(const SupportedPlatform& value) { m_supportedPlatformsHasBeenSet = true; m_supportedPlatforms.push_back(value); return *this; }
119
123 inline AvailabilityZone& AddSupportedPlatforms(SupportedPlatform&& value) { m_supportedPlatformsHasBeenSet = true; m_supportedPlatforms.push_back(std::move(value)); return *this; }
124
125 private:
126
127 Aws::String m_name;
128 bool m_nameHasBeenSet = false;
129
130 Aws::Vector<SupportedPlatform> m_supportedPlatforms;
131 bool m_supportedPlatformsHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace Redshift
136} // namespace Aws
#define AWS_REDSHIFT_API
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetName(const Aws::String &value)
AvailabilityZone & WithName(const Aws::String &value)
void SetSupportedPlatforms(const Aws::Vector< SupportedPlatform > &value)
const Aws::Vector< SupportedPlatform > & GetSupportedPlatforms() const
void SetSupportedPlatforms(Aws::Vector< SupportedPlatform > &&value)
AvailabilityZone & WithName(Aws::String &&value)
AvailabilityZone & WithSupportedPlatforms(Aws::Vector< SupportedPlatform > &&value)
AWS_REDSHIFT_API AvailabilityZone(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetName() const
AvailabilityZone & WithName(const char *value)
AvailabilityZone & AddSupportedPlatforms(SupportedPlatform &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AvailabilityZone & WithSupportedPlatforms(const Aws::Vector< SupportedPlatform > &value)
AvailabilityZone & AddSupportedPlatforms(const SupportedPlatform &value)
AWS_REDSHIFT_API AvailabilityZone & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
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