AWS SDK for C++  1.9.104
AWS SDK for C++
DescribeSnapshotCopyGrantsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Redshift
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "DescribeSnapshotCopyGrants"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
47  inline const Aws::String& GetSnapshotCopyGrantName() const{ return m_snapshotCopyGrantName; }
48 
52  inline bool SnapshotCopyGrantNameHasBeenSet() const { return m_snapshotCopyGrantNameHasBeenSet; }
53 
57  inline void SetSnapshotCopyGrantName(const Aws::String& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = value; }
58 
62  inline void SetSnapshotCopyGrantName(Aws::String&& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = std::move(value); }
63 
67  inline void SetSnapshotCopyGrantName(const char* value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName.assign(value); }
68 
72  inline DescribeSnapshotCopyGrantsRequest& WithSnapshotCopyGrantName(const Aws::String& value) { SetSnapshotCopyGrantName(value); return *this;}
73 
77  inline DescribeSnapshotCopyGrantsRequest& WithSnapshotCopyGrantName(Aws::String&& value) { SetSnapshotCopyGrantName(std::move(value)); return *this;}
78 
82  inline DescribeSnapshotCopyGrantsRequest& WithSnapshotCopyGrantName(const char* value) { SetSnapshotCopyGrantName(value); return *this;}
83 
84 
93  inline int GetMaxRecords() const{ return m_maxRecords; }
94 
103  inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
104 
113  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
114 
123  inline DescribeSnapshotCopyGrantsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
124 
125 
136  inline const Aws::String& GetMarker() const{ return m_marker; }
137 
148  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
149 
160  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
161 
172  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
173 
184  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
185 
196  inline DescribeSnapshotCopyGrantsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
197 
208  inline DescribeSnapshotCopyGrantsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
209 
220  inline DescribeSnapshotCopyGrantsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
221 
222 
231  inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
232 
241  inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
242 
251  inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
252 
261  inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
262 
271  inline DescribeSnapshotCopyGrantsRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
272 
281  inline DescribeSnapshotCopyGrantsRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
282 
291  inline DescribeSnapshotCopyGrantsRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
292 
301  inline DescribeSnapshotCopyGrantsRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
302 
311  inline DescribeSnapshotCopyGrantsRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
312 
313 
322  inline const Aws::Vector<Aws::String>& GetTagValues() const{ return m_tagValues; }
323 
332  inline bool TagValuesHasBeenSet() const { return m_tagValuesHasBeenSet; }
333 
342  inline void SetTagValues(const Aws::Vector<Aws::String>& value) { m_tagValuesHasBeenSet = true; m_tagValues = value; }
343 
352  inline void SetTagValues(Aws::Vector<Aws::String>&& value) { m_tagValuesHasBeenSet = true; m_tagValues = std::move(value); }
353 
362  inline DescribeSnapshotCopyGrantsRequest& WithTagValues(const Aws::Vector<Aws::String>& value) { SetTagValues(value); return *this;}
363 
372  inline DescribeSnapshotCopyGrantsRequest& WithTagValues(Aws::Vector<Aws::String>&& value) { SetTagValues(std::move(value)); return *this;}
373 
382  inline DescribeSnapshotCopyGrantsRequest& AddTagValues(const Aws::String& value) { m_tagValuesHasBeenSet = true; m_tagValues.push_back(value); return *this; }
383 
392  inline DescribeSnapshotCopyGrantsRequest& AddTagValues(Aws::String&& value) { m_tagValuesHasBeenSet = true; m_tagValues.push_back(std::move(value)); return *this; }
393 
402  inline DescribeSnapshotCopyGrantsRequest& AddTagValues(const char* value) { m_tagValuesHasBeenSet = true; m_tagValues.push_back(value); return *this; }
403 
404  private:
405 
406  Aws::String m_snapshotCopyGrantName;
407  bool m_snapshotCopyGrantNameHasBeenSet;
408 
409  int m_maxRecords;
410  bool m_maxRecordsHasBeenSet;
411 
412  Aws::String m_marker;
413  bool m_markerHasBeenSet;
414 
415  Aws::Vector<Aws::String> m_tagKeys;
416  bool m_tagKeysHasBeenSet;
417 
418  Aws::Vector<Aws::String> m_tagValues;
419  bool m_tagValuesHasBeenSet;
420  };
421 
422 } // namespace Model
423 } // namespace Redshift
424 } // namespace Aws
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::SetSnapshotCopyGrantName
void SetSnapshotCopyGrantName(const char *value)
Definition: DescribeSnapshotCopyGrantsRequest.h:67
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::AddTagValues
DescribeSnapshotCopyGrantsRequest & AddTagValues(const Aws::String &value)
Definition: DescribeSnapshotCopyGrantsRequest.h:382
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::TagKeysHasBeenSet
bool TagKeysHasBeenSet() const
Definition: DescribeSnapshotCopyGrantsRequest.h:241
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::GetTagKeys
const Aws::Vector< Aws::String > & GetTagKeys() const
Definition: DescribeSnapshotCopyGrantsRequest.h:231
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::SetSnapshotCopyGrantName
void SetSnapshotCopyGrantName(const Aws::String &value)
Definition: DescribeSnapshotCopyGrantsRequest.h:57
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::WithTagValues
DescribeSnapshotCopyGrantsRequest & WithTagValues(Aws::Vector< Aws::String > &&value)
Definition: DescribeSnapshotCopyGrantsRequest.h:372
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::AddTagKeys
DescribeSnapshotCopyGrantsRequest & AddTagKeys(const Aws::String &value)
Definition: DescribeSnapshotCopyGrantsRequest.h:291
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeSnapshotCopyGrantsRequest.h:35
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::SetTagKeys
void SetTagKeys(const Aws::Vector< Aws::String > &value)
Definition: DescribeSnapshotCopyGrantsRequest.h:251
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::SetMarker
void SetMarker(const char *value)
Definition: DescribeSnapshotCopyGrantsRequest.h:184
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::WithTagKeys
DescribeSnapshotCopyGrantsRequest & WithTagKeys(Aws::Vector< Aws::String > &&value)
Definition: DescribeSnapshotCopyGrantsRequest.h:281
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::SnapshotCopyGrantNameHasBeenSet
bool SnapshotCopyGrantNameHasBeenSet() const
Definition: DescribeSnapshotCopyGrantsRequest.h:52
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
RedshiftRequest.h
AWSVector.h
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::AddTagKeys
DescribeSnapshotCopyGrantsRequest & AddTagKeys(Aws::String &&value)
Definition: DescribeSnapshotCopyGrantsRequest.h:301
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::SetTagValues
void SetTagValues(const Aws::Vector< Aws::String > &value)
Definition: DescribeSnapshotCopyGrantsRequest.h:342
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::WithSnapshotCopyGrantName
DescribeSnapshotCopyGrantsRequest & WithSnapshotCopyGrantName(Aws::String &&value)
Definition: DescribeSnapshotCopyGrantsRequest.h:77
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::WithMarker
DescribeSnapshotCopyGrantsRequest & WithMarker(const char *value)
Definition: DescribeSnapshotCopyGrantsRequest.h:220
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::SetTagKeys
void SetTagKeys(Aws::Vector< Aws::String > &&value)
Definition: DescribeSnapshotCopyGrantsRequest.h:261
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::TagValuesHasBeenSet
bool TagValuesHasBeenSet() const
Definition: DescribeSnapshotCopyGrantsRequest.h:332
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::GetSnapshotCopyGrantName
const Aws::String & GetSnapshotCopyGrantName() const
Definition: DescribeSnapshotCopyGrantsRequest.h:47
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::GetTagValues
const Aws::Vector< Aws::String > & GetTagValues() const
Definition: DescribeSnapshotCopyGrantsRequest.h:322
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::WithMarker
DescribeSnapshotCopyGrantsRequest & WithMarker(Aws::String &&value)
Definition: DescribeSnapshotCopyGrantsRequest.h:208
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::WithMaxRecords
DescribeSnapshotCopyGrantsRequest & WithMaxRecords(int value)
Definition: DescribeSnapshotCopyGrantsRequest.h:123
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::DescribeSnapshotCopyGrantsRequest
DescribeSnapshotCopyGrantsRequest()
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::SetMaxRecords
void SetMaxRecords(int value)
Definition: DescribeSnapshotCopyGrantsRequest.h:113
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::WithTagValues
DescribeSnapshotCopyGrantsRequest & WithTagValues(const Aws::Vector< Aws::String > &value)
Definition: DescribeSnapshotCopyGrantsRequest.h:362
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
AWSString.h
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::MarkerHasBeenSet
bool MarkerHasBeenSet() const
Definition: DescribeSnapshotCopyGrantsRequest.h:148
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::GetMaxRecords
int GetMaxRecords() const
Definition: DescribeSnapshotCopyGrantsRequest.h:93
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::AddTagValues
DescribeSnapshotCopyGrantsRequest & AddTagValues(const char *value)
Definition: DescribeSnapshotCopyGrantsRequest.h:402
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::WithSnapshotCopyGrantName
DescribeSnapshotCopyGrantsRequest & WithSnapshotCopyGrantName(const Aws::String &value)
Definition: DescribeSnapshotCopyGrantsRequest.h:72
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::WithSnapshotCopyGrantName
DescribeSnapshotCopyGrantsRequest & WithSnapshotCopyGrantName(const char *value)
Definition: DescribeSnapshotCopyGrantsRequest.h:82
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::AddTagKeys
DescribeSnapshotCopyGrantsRequest & AddTagKeys(const char *value)
Definition: DescribeSnapshotCopyGrantsRequest.h:311
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::WithTagKeys
DescribeSnapshotCopyGrantsRequest & WithTagKeys(const Aws::Vector< Aws::String > &value)
Definition: DescribeSnapshotCopyGrantsRequest.h:271
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::SetMarker
void SetMarker(const Aws::String &value)
Definition: DescribeSnapshotCopyGrantsRequest.h:160
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::GetMarker
const Aws::String & GetMarker() const
Definition: DescribeSnapshotCopyGrantsRequest.h:136
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::AddTagValues
DescribeSnapshotCopyGrantsRequest & AddTagValues(Aws::String &&value)
Definition: DescribeSnapshotCopyGrantsRequest.h:392
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::SetMarker
void SetMarker(Aws::String &&value)
Definition: DescribeSnapshotCopyGrantsRequest.h:172
Redshift_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::SetSnapshotCopyGrantName
void SetSnapshotCopyGrantName(Aws::String &&value)
Definition: DescribeSnapshotCopyGrantsRequest.h:62
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::SetTagValues
void SetTagValues(Aws::Vector< Aws::String > &&value)
Definition: DescribeSnapshotCopyGrantsRequest.h:352
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::WithMarker
DescribeSnapshotCopyGrantsRequest & WithMarker(const Aws::String &value)
Definition: DescribeSnapshotCopyGrantsRequest.h:196
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest
Definition: DescribeSnapshotCopyGrantsRequest.h:27
Aws::Redshift::Model::DescribeSnapshotCopyGrantsRequest::MaxRecordsHasBeenSet
bool MaxRecordsHasBeenSet() const
Definition: DescribeSnapshotCopyGrantsRequest.h:103