AWS SDK for C++  1.9.104
AWS SDK for C++
AvailabilityZone.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace Redshift
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  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 
108  inline AvailabilityZone& WithSupportedPlatforms(const Aws::Vector<SupportedPlatform>& value) { SetSupportedPlatforms(value); return *this;}
109 
113  inline AvailabilityZone& WithSupportedPlatforms(Aws::Vector<SupportedPlatform>&& value) { SetSupportedPlatforms(std::move(value)); return *this;}
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;
129 
130  Aws::Vector<SupportedPlatform> m_supportedPlatforms;
131  bool m_supportedPlatformsHasBeenSet;
132  };
133 
134 } // namespace Model
135 } // namespace Redshift
136 } // namespace Aws
Aws::Redshift::Model::AvailabilityZone::WithName
AvailabilityZone & WithName(const char *value)
Definition: AvailabilityZone.h:82
Aws::Redshift::Model::AvailabilityZone::SetName
void SetName(const Aws::String &value)
Definition: AvailabilityZone.h:57
Aws::Redshift::Model::AvailabilityZone::WithSupportedPlatforms
AvailabilityZone & WithSupportedPlatforms(const Aws::Vector< SupportedPlatform > &value)
Definition: AvailabilityZone.h:108
Aws::Redshift::Model::AvailabilityZone::WithSupportedPlatforms
AvailabilityZone & WithSupportedPlatforms(Aws::Vector< SupportedPlatform > &&value)
Definition: AvailabilityZone.h:113
Aws::Redshift::Model::AvailabilityZone::SetSupportedPlatforms
void SetSupportedPlatforms(Aws::Vector< SupportedPlatform > &&value)
Definition: AvailabilityZone.h:103
Aws::Redshift::Model::AvailabilityZone::SupportedPlatformsHasBeenSet
bool SupportedPlatformsHasBeenSet() const
Definition: AvailabilityZone.h:93
Aws::Redshift::Model::AvailabilityZone::AvailabilityZone
AvailabilityZone()
Aws::Redshift::Model::AvailabilityZone::WithName
AvailabilityZone & WithName(Aws::String &&value)
Definition: AvailabilityZone.h:77
Aws::Redshift::Model::AvailabilityZone::SetSupportedPlatforms
void SetSupportedPlatforms(const Aws::Vector< SupportedPlatform > &value)
Definition: AvailabilityZone.h:98
Aws::Redshift::Model::AvailabilityZone::NameHasBeenSet
bool NameHasBeenSet() const
Definition: AvailabilityZone.h:52
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
SupportedPlatform.h
Aws::Redshift::Model::AvailabilityZone::GetSupportedPlatforms
const Aws::Vector< SupportedPlatform > & GetSupportedPlatforms() const
Definition: AvailabilityZone.h:88
Aws::Redshift::Model::AvailabilityZone::AvailabilityZone
AvailabilityZone(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSVector.h
Aws::Redshift::Model::AvailabilityZone
Definition: AvailabilityZone.h:34
Aws::Redshift::Model::AvailabilityZone::SetName
void SetName(Aws::String &&value)
Definition: AvailabilityZone.h:62
Aws::Redshift::Model::AvailabilityZone::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::AvailabilityZone::AddSupportedPlatforms
AvailabilityZone & AddSupportedPlatforms(const SupportedPlatform &value)
Definition: AvailabilityZone.h:118
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::AvailabilityZone::AddSupportedPlatforms
AvailabilityZone & AddSupportedPlatforms(SupportedPlatform &&value)
Definition: AvailabilityZone.h:123
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
AWSString.h
Aws::Redshift::Model::AvailabilityZone::SetName
void SetName(const char *value)
Definition: AvailabilityZone.h:67
Aws::Redshift::Model::SupportedPlatform
Definition: SupportedPlatform.h:33
Aws::Redshift::Model::AvailabilityZone::GetName
const Aws::String & GetName() const
Definition: AvailabilityZone.h:47
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::AvailabilityZone::operator=
AvailabilityZone & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::AvailabilityZone::WithName
AvailabilityZone & WithName(const Aws::String &value)
Definition: AvailabilityZone.h:72
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::AvailabilityZone::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const