AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SecondaryClusterInfo.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/ClusterNode.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
35 {
36 public:
37 AWS_REDSHIFT_API SecondaryClusterInfo();
38 AWS_REDSHIFT_API SecondaryClusterInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_REDSHIFT_API SecondaryClusterInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
50 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
51 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
52 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
53 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
54 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
55 inline SecondaryClusterInfo& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
56 inline SecondaryClusterInfo& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
57 inline SecondaryClusterInfo& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
59
61
64 inline const Aws::Vector<ClusterNode>& GetClusterNodes() const{ return m_clusterNodes; }
65 inline bool ClusterNodesHasBeenSet() const { return m_clusterNodesHasBeenSet; }
66 inline void SetClusterNodes(const Aws::Vector<ClusterNode>& value) { m_clusterNodesHasBeenSet = true; m_clusterNodes = value; }
67 inline void SetClusterNodes(Aws::Vector<ClusterNode>&& value) { m_clusterNodesHasBeenSet = true; m_clusterNodes = std::move(value); }
69 inline SecondaryClusterInfo& WithClusterNodes(Aws::Vector<ClusterNode>&& value) { SetClusterNodes(std::move(value)); return *this;}
70 inline SecondaryClusterInfo& AddClusterNodes(const ClusterNode& value) { m_clusterNodesHasBeenSet = true; m_clusterNodes.push_back(value); return *this; }
71 inline SecondaryClusterInfo& AddClusterNodes(ClusterNode&& value) { m_clusterNodesHasBeenSet = true; m_clusterNodes.push_back(std::move(value)); return *this; }
73 private:
74
75 Aws::String m_availabilityZone;
76 bool m_availabilityZoneHasBeenSet = false;
77
78 Aws::Vector<ClusterNode> m_clusterNodes;
79 bool m_clusterNodesHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace Redshift
84} // namespace Aws
const Aws::Vector< ClusterNode > & GetClusterNodes() const
SecondaryClusterInfo & WithClusterNodes(Aws::Vector< ClusterNode > &&value)
AWS_REDSHIFT_API SecondaryClusterInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SecondaryClusterInfo & WithAvailabilityZone(const char *value)
SecondaryClusterInfo & AddClusterNodes(const ClusterNode &value)
SecondaryClusterInfo & AddClusterNodes(ClusterNode &&value)
SecondaryClusterInfo & WithClusterNodes(const Aws::Vector< ClusterNode > &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SecondaryClusterInfo & WithAvailabilityZone(Aws::String &&value)
void SetClusterNodes(const Aws::Vector< ClusterNode > &value)
AWS_REDSHIFT_API SecondaryClusterInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetClusterNodes(Aws::Vector< ClusterNode > &&value)
SecondaryClusterInfo & WithAvailabilityZone(const Aws::String &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetAvailabilityZone(const Aws::String &value)
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