AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 AvailabilityZone& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
60 inline const Aws::Vector<SupportedPlatform>& GetSupportedPlatforms() const { return m_supportedPlatforms; }
61 inline bool SupportedPlatformsHasBeenSet() const { return m_supportedPlatformsHasBeenSet; }
62 template<typename SupportedPlatformsT = Aws::Vector<SupportedPlatform>>
63 void SetSupportedPlatforms(SupportedPlatformsT&& value) { m_supportedPlatformsHasBeenSet = true; m_supportedPlatforms = std::forward<SupportedPlatformsT>(value); }
64 template<typename SupportedPlatformsT = Aws::Vector<SupportedPlatform>>
65 AvailabilityZone& WithSupportedPlatforms(SupportedPlatformsT&& value) { SetSupportedPlatforms(std::forward<SupportedPlatformsT>(value)); return *this;}
66 template<typename SupportedPlatformsT = SupportedPlatform>
67 AvailabilityZone& AddSupportedPlatforms(SupportedPlatformsT&& value) { m_supportedPlatformsHasBeenSet = true; m_supportedPlatforms.emplace_back(std::forward<SupportedPlatformsT>(value)); return *this; }
69 private:
70
71 Aws::String m_name;
72 bool m_nameHasBeenSet = false;
73
74 Aws::Vector<SupportedPlatform> m_supportedPlatforms;
75 bool m_supportedPlatformsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Redshift
80} // namespace Aws
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_REDSHIFT_API AvailabilityZone()=default
void SetSupportedPlatforms(SupportedPlatformsT &&value)
const Aws::Vector< SupportedPlatform > & GetSupportedPlatforms() const
AvailabilityZone & WithName(NameT &&value)
AvailabilityZone & AddSupportedPlatforms(SupportedPlatformsT &&value)
AWS_REDSHIFT_API AvailabilityZone(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetName() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AvailabilityZone & WithSupportedPlatforms(SupportedPlatformsT &&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