AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AvailabilityZone.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift/model/SupportedPlatform.h>
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:
36 AWS_REDSHIFT_API AvailabilityZone();
37 AWS_REDSHIFT_API AvailabilityZone(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_REDSHIFT_API AvailabilityZone& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
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
45
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline AvailabilityZone& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline AvailabilityZone& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline AvailabilityZone& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::Vector<SupportedPlatform>& GetSupportedPlatforms() const{ return m_supportedPlatforms; }
63 inline bool SupportedPlatformsHasBeenSet() const { return m_supportedPlatformsHasBeenSet; }
64 inline void SetSupportedPlatforms(const Aws::Vector<SupportedPlatform>& value) { m_supportedPlatformsHasBeenSet = true; m_supportedPlatforms = value; }
65 inline void SetSupportedPlatforms(Aws::Vector<SupportedPlatform>&& value) { m_supportedPlatformsHasBeenSet = true; m_supportedPlatforms = std::move(value); }
68 inline AvailabilityZone& AddSupportedPlatforms(const SupportedPlatform& value) { m_supportedPlatformsHasBeenSet = true; m_supportedPlatforms.push_back(value); return *this; }
69 inline AvailabilityZone& AddSupportedPlatforms(SupportedPlatform&& value) { m_supportedPlatformsHasBeenSet = true; m_supportedPlatforms.push_back(std::move(value)); return *this; }
71 private:
72
73 Aws::String m_name;
74 bool m_nameHasBeenSet = false;
75
76 Aws::Vector<SupportedPlatform> m_supportedPlatforms;
77 bool m_supportedPlatformsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace Redshift
82} // namespace Aws
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