AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SecondaryClusterInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11#include <aws/redshift/model/ClusterNode.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace Redshift {
22namespace Model {
23
31 public:
32 AWS_REDSHIFT_API SecondaryClusterInfo() = default;
33 AWS_REDSHIFT_API SecondaryClusterInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_REDSHIFT_API SecondaryClusterInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
44 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
45 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
46 template <typename AvailabilityZoneT = Aws::String>
47 void SetAvailabilityZone(AvailabilityZoneT&& value) {
48 m_availabilityZoneHasBeenSet = true;
49 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
50 }
51 template <typename AvailabilityZoneT = Aws::String>
52 SecondaryClusterInfo& WithAvailabilityZone(AvailabilityZoneT&& value) {
53 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<ClusterNode>& GetClusterNodes() const { return m_clusterNodes; }
63 inline bool ClusterNodesHasBeenSet() const { return m_clusterNodesHasBeenSet; }
64 template <typename ClusterNodesT = Aws::Vector<ClusterNode>>
65 void SetClusterNodes(ClusterNodesT&& value) {
66 m_clusterNodesHasBeenSet = true;
67 m_clusterNodes = std::forward<ClusterNodesT>(value);
68 }
69 template <typename ClusterNodesT = Aws::Vector<ClusterNode>>
70 SecondaryClusterInfo& WithClusterNodes(ClusterNodesT&& value) {
71 SetClusterNodes(std::forward<ClusterNodesT>(value));
72 return *this;
73 }
74 template <typename ClusterNodesT = ClusterNode>
75 SecondaryClusterInfo& AddClusterNodes(ClusterNodesT&& value) {
76 m_clusterNodesHasBeenSet = true;
77 m_clusterNodes.emplace_back(std::forward<ClusterNodesT>(value));
78 return *this;
79 }
81 private:
82 Aws::String m_availabilityZone;
83
84 Aws::Vector<ClusterNode> m_clusterNodes;
85 bool m_availabilityZoneHasBeenSet = false;
86 bool m_clusterNodesHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace Redshift
91} // namespace Aws
const Aws::Vector< ClusterNode > & GetClusterNodes() const
void SetAvailabilityZone(AvailabilityZoneT &&value)
AWS_REDSHIFT_API SecondaryClusterInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SecondaryClusterInfo & WithClusterNodes(ClusterNodesT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SecondaryClusterInfo & AddClusterNodes(ClusterNodesT &&value)
AWS_REDSHIFT_API SecondaryClusterInfo()=default
AWS_REDSHIFT_API SecondaryClusterInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
SecondaryClusterInfo & WithAvailabilityZone(AvailabilityZoneT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
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