AWS SDK for C++  1.9.104
AWS SDK for C++
DescribeReservedNodesResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace Redshift
27 {
28 namespace Model
29 {
36  {
37  public:
41 
42 
51  inline const Aws::String& GetMarker() const{ return m_marker; }
52 
61  inline void SetMarker(const Aws::String& value) { m_marker = value; }
62 
71  inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
72 
81  inline void SetMarker(const char* value) { m_marker.assign(value); }
82 
91  inline DescribeReservedNodesResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
92 
101  inline DescribeReservedNodesResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
102 
111  inline DescribeReservedNodesResult& WithMarker(const char* value) { SetMarker(value); return *this;}
112 
113 
117  inline const Aws::Vector<ReservedNode>& GetReservedNodes() const{ return m_reservedNodes; }
118 
122  inline void SetReservedNodes(const Aws::Vector<ReservedNode>& value) { m_reservedNodes = value; }
123 
127  inline void SetReservedNodes(Aws::Vector<ReservedNode>&& value) { m_reservedNodes = std::move(value); }
128 
132  inline DescribeReservedNodesResult& WithReservedNodes(const Aws::Vector<ReservedNode>& value) { SetReservedNodes(value); return *this;}
133 
137  inline DescribeReservedNodesResult& WithReservedNodes(Aws::Vector<ReservedNode>&& value) { SetReservedNodes(std::move(value)); return *this;}
138 
142  inline DescribeReservedNodesResult& AddReservedNodes(const ReservedNode& value) { m_reservedNodes.push_back(value); return *this; }
143 
147  inline DescribeReservedNodesResult& AddReservedNodes(ReservedNode&& value) { m_reservedNodes.push_back(std::move(value)); return *this; }
148 
149 
150 
151  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
152 
153 
154  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
155 
156 
157  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
158 
159 
160  inline DescribeReservedNodesResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
161 
162 
163  inline DescribeReservedNodesResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
164 
165  private:
166 
167  Aws::String m_marker;
168 
169  Aws::Vector<ReservedNode> m_reservedNodes;
170 
171  ResponseMetadata m_responseMetadata;
172  };
173 
174 } // namespace Model
175 } // namespace Redshift
176 } // namespace Aws
Aws::Redshift::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Redshift::Model::DescribeReservedNodesResult::AddReservedNodes
DescribeReservedNodesResult & AddReservedNodes(const ReservedNode &value)
Definition: DescribeReservedNodesResult.h:142
Aws::Redshift::Model::DescribeReservedNodesResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeReservedNodesResult.h:151
Aws::Redshift::Model::DescribeReservedNodesResult::WithMarker
DescribeReservedNodesResult & WithMarker(Aws::String &&value)
Definition: DescribeReservedNodesResult.h:101
Aws::Redshift::Model::DescribeReservedNodesResult::WithReservedNodes
DescribeReservedNodesResult & WithReservedNodes(Aws::Vector< ReservedNode > &&value)
Definition: DescribeReservedNodesResult.h:137
Aws::Redshift::Model::DescribeReservedNodesResult::WithMarker
DescribeReservedNodesResult & WithMarker(const char *value)
Definition: DescribeReservedNodesResult.h:111
Aws::Redshift::Model::ReservedNode
Definition: ReservedNode.h:38
Aws::Redshift::Model::DescribeReservedNodesResult::GetMarker
const Aws::String & GetMarker() const
Definition: DescribeReservedNodesResult.h:51
Aws::Redshift::Model::DescribeReservedNodesResult::DescribeReservedNodesResult
DescribeReservedNodesResult()
Aws::Redshift::Model::DescribeReservedNodesResult::SetMarker
void SetMarker(const Aws::String &value)
Definition: DescribeReservedNodesResult.h:61
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Redshift::Model::DescribeReservedNodesResult::GetReservedNodes
const Aws::Vector< ReservedNode > & GetReservedNodes() const
Definition: DescribeReservedNodesResult.h:117
AWSVector.h
Aws::Redshift::Model::DescribeReservedNodesResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeReservedNodesResult.h:157
Aws::Redshift::Model::DescribeReservedNodesResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeReservedNodesResult.h:154
Aws::Redshift::Model::DescribeReservedNodesResult::SetMarker
void SetMarker(const char *value)
Definition: DescribeReservedNodesResult.h:81
Aws::Redshift::Model::DescribeReservedNodesResult::SetMarker
void SetMarker(Aws::String &&value)
Definition: DescribeReservedNodesResult.h:71
Aws::Redshift::Model::DescribeReservedNodesResult::SetReservedNodes
void SetReservedNodes(Aws::Vector< ReservedNode > &&value)
Definition: DescribeReservedNodesResult.h:127
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
AWSString.h
Aws::Redshift::Model::DescribeReservedNodesResult::AddReservedNodes
DescribeReservedNodesResult & AddReservedNodes(ReservedNode &&value)
Definition: DescribeReservedNodesResult.h:147
Aws::Redshift::Model::DescribeReservedNodesResult::SetReservedNodes
void SetReservedNodes(const Aws::Vector< ReservedNode > &value)
Definition: DescribeReservedNodesResult.h:122
Aws::Redshift::Model::DescribeReservedNodesResult::DescribeReservedNodesResult
DescribeReservedNodesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::DescribeReservedNodesResult::WithResponseMetadata
DescribeReservedNodesResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeReservedNodesResult.h:163
Redshift_EXPORTS.h
Aws::Redshift::Model::DescribeReservedNodesResult::WithMarker
DescribeReservedNodesResult & WithMarker(const Aws::String &value)
Definition: DescribeReservedNodesResult.h:91
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ResponseMetadata.h
ReservedNode.h
Aws::Redshift::Model::DescribeReservedNodesResult::WithResponseMetadata
DescribeReservedNodesResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeReservedNodesResult.h:160
Aws::Redshift::Model::DescribeReservedNodesResult::operator=
DescribeReservedNodesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Redshift::Model::DescribeReservedNodesResult
Definition: DescribeReservedNodesResult.h:36
Aws::Redshift::Model::DescribeReservedNodesResult::WithReservedNodes
DescribeReservedNodesResult & WithReservedNodes(const Aws::Vector< ReservedNode > &value)
Definition: DescribeReservedNodesResult.h:132