AWS SDK for C++  1.9.104
AWS SDK for C++
DescribeSnapshotCopyGrantsResult.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 
53  inline const Aws::String& GetMarker() const{ return m_marker; }
54 
65  inline void SetMarker(const Aws::String& value) { m_marker = value; }
66 
77  inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
78 
89  inline void SetMarker(const char* value) { m_marker.assign(value); }
90 
101  inline DescribeSnapshotCopyGrantsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
102 
113  inline DescribeSnapshotCopyGrantsResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
114 
125  inline DescribeSnapshotCopyGrantsResult& WithMarker(const char* value) { SetMarker(value); return *this;}
126 
127 
131  inline const Aws::Vector<SnapshotCopyGrant>& GetSnapshotCopyGrants() const{ return m_snapshotCopyGrants; }
132 
136  inline void SetSnapshotCopyGrants(const Aws::Vector<SnapshotCopyGrant>& value) { m_snapshotCopyGrants = value; }
137 
141  inline void SetSnapshotCopyGrants(Aws::Vector<SnapshotCopyGrant>&& value) { m_snapshotCopyGrants = std::move(value); }
142 
146  inline DescribeSnapshotCopyGrantsResult& WithSnapshotCopyGrants(const Aws::Vector<SnapshotCopyGrant>& value) { SetSnapshotCopyGrants(value); return *this;}
147 
151  inline DescribeSnapshotCopyGrantsResult& WithSnapshotCopyGrants(Aws::Vector<SnapshotCopyGrant>&& value) { SetSnapshotCopyGrants(std::move(value)); return *this;}
152 
156  inline DescribeSnapshotCopyGrantsResult& AddSnapshotCopyGrants(const SnapshotCopyGrant& value) { m_snapshotCopyGrants.push_back(value); return *this; }
157 
161  inline DescribeSnapshotCopyGrantsResult& AddSnapshotCopyGrants(SnapshotCopyGrant&& value) { m_snapshotCopyGrants.push_back(std::move(value)); return *this; }
162 
163 
164 
165  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
166 
167 
168  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
169 
170 
171  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
172 
173 
174  inline DescribeSnapshotCopyGrantsResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
175 
176 
177  inline DescribeSnapshotCopyGrantsResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
178 
179  private:
180 
181  Aws::String m_marker;
182 
183  Aws::Vector<SnapshotCopyGrant> m_snapshotCopyGrants;
184 
185  ResponseMetadata m_responseMetadata;
186  };
187 
188 } // namespace Model
189 } // namespace Redshift
190 } // namespace Aws
Aws::Redshift::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::Redshift::Model::DescribeSnapshotCopyGrantsResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeSnapshotCopyGrantsResult.h:165
Aws::Redshift::Model::DescribeSnapshotCopyGrantsResult::WithResponseMetadata
DescribeSnapshotCopyGrantsResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeSnapshotCopyGrantsResult.h:177
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Redshift::Model::DescribeSnapshotCopyGrantsResult::DescribeSnapshotCopyGrantsResult
DescribeSnapshotCopyGrantsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
SnapshotCopyGrant.h
Aws::Redshift::Model::DescribeSnapshotCopyGrantsResult::WithSnapshotCopyGrants
DescribeSnapshotCopyGrantsResult & WithSnapshotCopyGrants(const Aws::Vector< SnapshotCopyGrant > &value)
Definition: DescribeSnapshotCopyGrantsResult.h:146
Aws::Redshift::Model::DescribeSnapshotCopyGrantsResult::WithSnapshotCopyGrants
DescribeSnapshotCopyGrantsResult & WithSnapshotCopyGrants(Aws::Vector< SnapshotCopyGrant > &&value)
Definition: DescribeSnapshotCopyGrantsResult.h:151
Aws::Redshift::Model::DescribeSnapshotCopyGrantsResult::SetSnapshotCopyGrants
void SetSnapshotCopyGrants(const Aws::Vector< SnapshotCopyGrant > &value)
Definition: DescribeSnapshotCopyGrantsResult.h:136
Aws::Redshift::Model::SnapshotCopyGrant
Definition: SnapshotCopyGrant.h:40
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Redshift::Model::DescribeSnapshotCopyGrantsResult::SetMarker
void SetMarker(Aws::String &&value)
Definition: DescribeSnapshotCopyGrantsResult.h:77
Aws::Redshift::Model::DescribeSnapshotCopyGrantsResult::GetSnapshotCopyGrants
const Aws::Vector< SnapshotCopyGrant > & GetSnapshotCopyGrants() const
Definition: DescribeSnapshotCopyGrantsResult.h:131
AWSVector.h
Aws::Redshift::Model::DescribeSnapshotCopyGrantsResult::WithMarker
DescribeSnapshotCopyGrantsResult & WithMarker(const Aws::String &value)
Definition: DescribeSnapshotCopyGrantsResult.h:101
Aws::Redshift::Model::DescribeSnapshotCopyGrantsResult::SetSnapshotCopyGrants
void SetSnapshotCopyGrants(Aws::Vector< SnapshotCopyGrant > &&value)
Definition: DescribeSnapshotCopyGrantsResult.h:141
Aws::Redshift::Model::DescribeSnapshotCopyGrantsResult::WithMarker
DescribeSnapshotCopyGrantsResult & WithMarker(Aws::String &&value)
Definition: DescribeSnapshotCopyGrantsResult.h:113
Aws::Redshift::Model::DescribeSnapshotCopyGrantsResult::DescribeSnapshotCopyGrantsResult
DescribeSnapshotCopyGrantsResult()
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::DescribeSnapshotCopyGrantsResult
Definition: DescribeSnapshotCopyGrantsResult.h:36
Aws::Redshift::Model::DescribeSnapshotCopyGrantsResult::AddSnapshotCopyGrants
DescribeSnapshotCopyGrantsResult & AddSnapshotCopyGrants(SnapshotCopyGrant &&value)
Definition: DescribeSnapshotCopyGrantsResult.h:161
Aws::Redshift::Model::DescribeSnapshotCopyGrantsResult::SetMarker
void SetMarker(const Aws::String &value)
Definition: DescribeSnapshotCopyGrantsResult.h:65
AWSString.h
Aws::Redshift::Model::DescribeSnapshotCopyGrantsResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeSnapshotCopyGrantsResult.h:171
Aws::Redshift::Model::DescribeSnapshotCopyGrantsResult::GetMarker
const Aws::String & GetMarker() const
Definition: DescribeSnapshotCopyGrantsResult.h:53
Aws::Redshift::Model::DescribeSnapshotCopyGrantsResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeSnapshotCopyGrantsResult.h:168
Aws::Redshift::Model::DescribeSnapshotCopyGrantsResult::WithResponseMetadata
DescribeSnapshotCopyGrantsResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeSnapshotCopyGrantsResult.h:174
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::DescribeSnapshotCopyGrantsResult::operator=
DescribeSnapshotCopyGrantsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Redshift::Model::DescribeSnapshotCopyGrantsResult::AddSnapshotCopyGrants
DescribeSnapshotCopyGrantsResult & AddSnapshotCopyGrants(const SnapshotCopyGrant &value)
Definition: DescribeSnapshotCopyGrantsResult.h:156
ResponseMetadata.h
Aws::Redshift::Model::DescribeSnapshotCopyGrantsResult::SetMarker
void SetMarker(const char *value)
Definition: DescribeSnapshotCopyGrantsResult.h:89
Aws::Redshift::Model::DescribeSnapshotCopyGrantsResult::WithMarker
DescribeSnapshotCopyGrantsResult & WithMarker(const char *value)
Definition: DescribeSnapshotCopyGrantsResult.h:125