AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeSnapshotCopyGrantsRequest.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
20 
21 namespace Aws
22 {
23 namespace Redshift
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
40  inline const Aws::String& GetSnapshotCopyGrantName() const{ return m_snapshotCopyGrantName; }
41 
45  inline void SetSnapshotCopyGrantName(const Aws::String& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = value; }
46 
50  inline void SetSnapshotCopyGrantName(Aws::String&& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = value; }
51 
55  inline void SetSnapshotCopyGrantName(const char* value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName.assign(value); }
56 
60  inline DescribeSnapshotCopyGrantsRequest& WithSnapshotCopyGrantName(const Aws::String& value) { SetSnapshotCopyGrantName(value); return *this;}
61 
65  inline DescribeSnapshotCopyGrantsRequest& WithSnapshotCopyGrantName(Aws::String&& value) { SetSnapshotCopyGrantName(value); return *this;}
66 
70  inline DescribeSnapshotCopyGrantsRequest& WithSnapshotCopyGrantName(const char* value) { SetSnapshotCopyGrantName(value); return *this;}
71 
80  inline int GetMaxRecords() const{ return m_maxRecords; }
81 
90  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
91 
100  inline DescribeSnapshotCopyGrantsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
101 
112  inline const Aws::String& GetMarker() const{ return m_marker; }
113 
124  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
125 
136  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = value; }
137 
148  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
149 
160  inline DescribeSnapshotCopyGrantsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
161 
172  inline DescribeSnapshotCopyGrantsRequest& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
173 
184  inline DescribeSnapshotCopyGrantsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
185 
194  inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
195 
204  inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
205 
214  inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
215 
224  inline DescribeSnapshotCopyGrantsRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
225 
234  inline DescribeSnapshotCopyGrantsRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(value); return *this;}
235 
244  inline DescribeSnapshotCopyGrantsRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
245 
254  inline DescribeSnapshotCopyGrantsRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
255 
264  inline DescribeSnapshotCopyGrantsRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
265 
274  inline const Aws::Vector<Aws::String>& GetTagValues() const{ return m_tagValues; }
275 
284  inline void SetTagValues(const Aws::Vector<Aws::String>& value) { m_tagValuesHasBeenSet = true; m_tagValues = value; }
285 
294  inline void SetTagValues(Aws::Vector<Aws::String>&& value) { m_tagValuesHasBeenSet = true; m_tagValues = value; }
295 
304  inline DescribeSnapshotCopyGrantsRequest& WithTagValues(const Aws::Vector<Aws::String>& value) { SetTagValues(value); return *this;}
305 
314  inline DescribeSnapshotCopyGrantsRequest& WithTagValues(Aws::Vector<Aws::String>&& value) { SetTagValues(value); return *this;}
315 
324  inline DescribeSnapshotCopyGrantsRequest& AddTagValues(const Aws::String& value) { m_tagValuesHasBeenSet = true; m_tagValues.push_back(value); return *this; }
325 
334  inline DescribeSnapshotCopyGrantsRequest& AddTagValues(Aws::String&& value) { m_tagValuesHasBeenSet = true; m_tagValues.push_back(value); return *this; }
335 
344  inline DescribeSnapshotCopyGrantsRequest& AddTagValues(const char* value) { m_tagValuesHasBeenSet = true; m_tagValues.push_back(value); return *this; }
345 
346  private:
347  Aws::String m_snapshotCopyGrantName;
348  bool m_snapshotCopyGrantNameHasBeenSet;
349  int m_maxRecords;
350  bool m_maxRecordsHasBeenSet;
351  Aws::String m_marker;
352  bool m_markerHasBeenSet;
353  Aws::Vector<Aws::String> m_tagKeys;
354  bool m_tagKeysHasBeenSet;
355  Aws::Vector<Aws::String> m_tagValues;
356  bool m_tagValuesHasBeenSet;
357  };
358 
359 } // namespace Model
360 } // namespace Redshift
361 } // namespace Aws
DescribeSnapshotCopyGrantsRequest & AddTagValues(const char *value)
DescribeSnapshotCopyGrantsRequest & AddTagKeys(const char *value)
DescribeSnapshotCopyGrantsRequest & WithSnapshotCopyGrantName(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeSnapshotCopyGrantsRequest & WithTagKeys(const Aws::Vector< Aws::String > &value)
DescribeSnapshotCopyGrantsRequest & AddTagKeys(const Aws::String &value)
DescribeSnapshotCopyGrantsRequest & WithSnapshotCopyGrantName(Aws::String &&value)
DescribeSnapshotCopyGrantsRequest & WithMarker(Aws::String &&value)
DescribeSnapshotCopyGrantsRequest & AddTagValues(Aws::String &&value)
#define AWS_REDSHIFT_API
DescribeSnapshotCopyGrantsRequest & WithSnapshotCopyGrantName(const char *value)
DescribeSnapshotCopyGrantsRequest & WithMarker(const char *value)
DescribeSnapshotCopyGrantsRequest & WithTagKeys(Aws::Vector< Aws::String > &&value)
DescribeSnapshotCopyGrantsRequest & WithTagValues(const Aws::Vector< Aws::String > &value)
DescribeSnapshotCopyGrantsRequest & WithTagValues(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeSnapshotCopyGrantsRequest & AddTagValues(const Aws::String &value)
DescribeSnapshotCopyGrantsRequest & WithMarker(const Aws::String &value)
DescribeSnapshotCopyGrantsRequest & AddTagKeys(Aws::String &&value)
JSON (JavaScript Object Notation).