AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeSnapshotCopyGrantsResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 template<typename RESULT_TYPE>
25 class AmazonWebServiceResult;
26 
27 namespace Utils
28 {
29 namespace Xml
30 {
31  class XmlDocument;
32 } // namespace Xml
33 } // namespace Utils
34 namespace Redshift
35 {
36 namespace Model
37 {
42  {
43  public:
47 
58  inline const Aws::String& GetMarker() const{ return m_marker; }
59 
70  inline void SetMarker(const Aws::String& value) { m_marker = value; }
71 
82  inline void SetMarker(Aws::String&& value) { m_marker = value; }
83 
94  inline void SetMarker(const char* value) { m_marker.assign(value); }
95 
106  inline DescribeSnapshotCopyGrantsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
107 
118  inline DescribeSnapshotCopyGrantsResult& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
119 
130  inline DescribeSnapshotCopyGrantsResult& WithMarker(const char* value) { SetMarker(value); return *this;}
131 
135  inline const Aws::Vector<SnapshotCopyGrant>& GetSnapshotCopyGrants() const{ return m_snapshotCopyGrants; }
136 
140  inline void SetSnapshotCopyGrants(const Aws::Vector<SnapshotCopyGrant>& value) { m_snapshotCopyGrants = value; }
141 
145  inline void SetSnapshotCopyGrants(Aws::Vector<SnapshotCopyGrant>&& value) { m_snapshotCopyGrants = value; }
146 
150  inline DescribeSnapshotCopyGrantsResult& WithSnapshotCopyGrants(const Aws::Vector<SnapshotCopyGrant>& value) { SetSnapshotCopyGrants(value); return *this;}
151 
155  inline DescribeSnapshotCopyGrantsResult& WithSnapshotCopyGrants(Aws::Vector<SnapshotCopyGrant>&& value) { SetSnapshotCopyGrants(value); return *this;}
156 
160  inline DescribeSnapshotCopyGrantsResult& AddSnapshotCopyGrants(const SnapshotCopyGrant& value) { m_snapshotCopyGrants.push_back(value); return *this; }
161 
165  inline DescribeSnapshotCopyGrantsResult& AddSnapshotCopyGrants(SnapshotCopyGrant&& value) { m_snapshotCopyGrants.push_back(value); return *this; }
166 
167 
168  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
169 
170 
171  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
172 
173 
174  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
175 
176 
177  inline DescribeSnapshotCopyGrantsResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
178 
179 
180  inline DescribeSnapshotCopyGrantsResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
181 
182  private:
183  Aws::String m_marker;
184  Aws::Vector<SnapshotCopyGrant> m_snapshotCopyGrants;
185  ResponseMetadata m_responseMetadata;
186  };
187 
188 } // namespace Model
189 } // namespace Redshift
190 } // namespace Aws
DescribeSnapshotCopyGrantsResult & WithResponseMetadata(const ResponseMetadata &value)
DescribeSnapshotCopyGrantsResult & WithResponseMetadata(ResponseMetadata &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetSnapshotCopyGrants(Aws::Vector< SnapshotCopyGrant > &&value)
DescribeSnapshotCopyGrantsResult & WithMarker(Aws::String &&value)
DescribeSnapshotCopyGrantsResult & AddSnapshotCopyGrants(const SnapshotCopyGrant &value)
DescribeSnapshotCopyGrantsResult & WithSnapshotCopyGrants(Aws::Vector< SnapshotCopyGrant > &&value)
const Aws::Vector< SnapshotCopyGrant > & GetSnapshotCopyGrants() const
#define AWS_REDSHIFT_API
DescribeSnapshotCopyGrantsResult & AddSnapshotCopyGrants(SnapshotCopyGrant &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeSnapshotCopyGrantsResult & WithMarker(const char *value)
DescribeSnapshotCopyGrantsResult & WithMarker(const Aws::String &value)
void SetSnapshotCopyGrants(const Aws::Vector< SnapshotCopyGrant > &value)
DescribeSnapshotCopyGrantsResult & WithSnapshotCopyGrants(const Aws::Vector< SnapshotCopyGrant > &value)
JSON (JavaScript Object Notation).