AWS SDK for C++  1.9.103
AWS SDK for C++
DescribeTagsRequest.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 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "DescribeTags"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
48  inline const Aws::String& GetResourceName() const{ return m_resourceName; }
49 
55  inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
56 
62  inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
63 
69  inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
70 
76  inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
77 
83  inline DescribeTagsRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
84 
90  inline DescribeTagsRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
91 
97  inline DescribeTagsRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
98 
99 
112  inline const Aws::String& GetResourceType() const{ return m_resourceType; }
113 
126  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
127 
140  inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
141 
154  inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
155 
168  inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
169 
182  inline DescribeTagsRequest& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
183 
196  inline DescribeTagsRequest& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
197 
210  inline DescribeTagsRequest& WithResourceType(const char* value) { SetResourceType(value); return *this;}
211 
212 
220  inline int GetMaxRecords() const{ return m_maxRecords; }
221 
229  inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
230 
238  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
239 
247  inline DescribeTagsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
248 
249 
258  inline const Aws::String& GetMarker() const{ return m_marker; }
259 
268  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
269 
278  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
279 
288  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
289 
298  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
299 
308  inline DescribeTagsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
309 
318  inline DescribeTagsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
319 
328  inline DescribeTagsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
329 
330 
339  inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
340 
349  inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
350 
359  inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
360 
369  inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
370 
379  inline DescribeTagsRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
380 
389  inline DescribeTagsRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
390 
399  inline DescribeTagsRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
400 
409  inline DescribeTagsRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
410 
419  inline DescribeTagsRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
420 
421 
430  inline const Aws::Vector<Aws::String>& GetTagValues() const{ return m_tagValues; }
431 
440  inline bool TagValuesHasBeenSet() const { return m_tagValuesHasBeenSet; }
441 
450  inline void SetTagValues(const Aws::Vector<Aws::String>& value) { m_tagValuesHasBeenSet = true; m_tagValues = value; }
451 
460  inline void SetTagValues(Aws::Vector<Aws::String>&& value) { m_tagValuesHasBeenSet = true; m_tagValues = std::move(value); }
461 
470  inline DescribeTagsRequest& WithTagValues(const Aws::Vector<Aws::String>& value) { SetTagValues(value); return *this;}
471 
480  inline DescribeTagsRequest& WithTagValues(Aws::Vector<Aws::String>&& value) { SetTagValues(std::move(value)); return *this;}
481 
490  inline DescribeTagsRequest& AddTagValues(const Aws::String& value) { m_tagValuesHasBeenSet = true; m_tagValues.push_back(value); return *this; }
491 
500  inline DescribeTagsRequest& AddTagValues(Aws::String&& value) { m_tagValuesHasBeenSet = true; m_tagValues.push_back(std::move(value)); return *this; }
501 
510  inline DescribeTagsRequest& AddTagValues(const char* value) { m_tagValuesHasBeenSet = true; m_tagValues.push_back(value); return *this; }
511 
512  private:
513 
514  Aws::String m_resourceName;
515  bool m_resourceNameHasBeenSet;
516 
517  Aws::String m_resourceType;
518  bool m_resourceTypeHasBeenSet;
519 
520  int m_maxRecords;
521  bool m_maxRecordsHasBeenSet;
522 
523  Aws::String m_marker;
524  bool m_markerHasBeenSet;
525 
526  Aws::Vector<Aws::String> m_tagKeys;
527  bool m_tagKeysHasBeenSet;
528 
529  Aws::Vector<Aws::String> m_tagValues;
530  bool m_tagValuesHasBeenSet;
531  };
532 
533 } // namespace Model
534 } // namespace Redshift
535 } // namespace Aws
Aws::Redshift::Model::DescribeTagsRequest::WithTagValues
DescribeTagsRequest & WithTagValues(const Aws::Vector< Aws::String > &value)
Definition: DescribeTagsRequest.h:470
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::DescribeTagsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::DescribeTagsRequest::ResourceNameHasBeenSet
bool ResourceNameHasBeenSet() const
Definition: DescribeTagsRequest.h:55
Aws::Redshift::Model::DescribeTagsRequest::WithResourceName
DescribeTagsRequest & WithResourceName(const char *value)
Definition: DescribeTagsRequest.h:97
Aws::Redshift::Model::DescribeTagsRequest::SetResourceName
void SetResourceName(const char *value)
Definition: DescribeTagsRequest.h:76
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Redshift::Model::DescribeTagsRequest::WithTagKeys
DescribeTagsRequest & WithTagKeys(const Aws::Vector< Aws::String > &value)
Definition: DescribeTagsRequest.h:379
RedshiftRequest.h
Aws::Redshift::Model::DescribeTagsRequest::AddTagValues
DescribeTagsRequest & AddTagValues(Aws::String &&value)
Definition: DescribeTagsRequest.h:500
Aws::Redshift::Model::DescribeTagsRequest::AddTagKeys
DescribeTagsRequest & AddTagKeys(const char *value)
Definition: DescribeTagsRequest.h:419
AWSVector.h
Aws::Redshift::Model::DescribeTagsRequest::SetTagKeys
void SetTagKeys(Aws::Vector< Aws::String > &&value)
Definition: DescribeTagsRequest.h:369
Aws::Redshift::Model::DescribeTagsRequest::GetResourceName
const Aws::String & GetResourceName() const
Definition: DescribeTagsRequest.h:48
Aws::Redshift::Model::DescribeTagsRequest::WithTagKeys
DescribeTagsRequest & WithTagKeys(Aws::Vector< Aws::String > &&value)
Definition: DescribeTagsRequest.h:389
Aws::Redshift::Model::DescribeTagsRequest::GetTagValues
const Aws::Vector< Aws::String > & GetTagValues() const
Definition: DescribeTagsRequest.h:430
Aws::Redshift::Model::DescribeTagsRequest::SetResourceType
void SetResourceType(Aws::String &&value)
Definition: DescribeTagsRequest.h:154
Aws::Redshift::Model::DescribeTagsRequest::WithResourceType
DescribeTagsRequest & WithResourceType(Aws::String &&value)
Definition: DescribeTagsRequest.h:196
Aws::Redshift::Model::DescribeTagsRequest::GetResourceType
const Aws::String & GetResourceType() const
Definition: DescribeTagsRequest.h:112
Aws::Redshift::Model::DescribeTagsRequest::SetResourceType
void SetResourceType(const Aws::String &value)
Definition: DescribeTagsRequest.h:140
Aws::Redshift::Model::DescribeTagsRequest::WithMaxRecords
DescribeTagsRequest & WithMaxRecords(int value)
Definition: DescribeTagsRequest.h:247
Aws::Redshift::Model::DescribeTagsRequest::GetMaxRecords
int GetMaxRecords() const
Definition: DescribeTagsRequest.h:220
Aws::Redshift::Model::DescribeTagsRequest::WithResourceType
DescribeTagsRequest & WithResourceType(const char *value)
Definition: DescribeTagsRequest.h:210
Aws::Redshift::Model::DescribeTagsRequest::DescribeTagsRequest
DescribeTagsRequest()
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::DescribeTagsRequest::TagValuesHasBeenSet
bool TagValuesHasBeenSet() const
Definition: DescribeTagsRequest.h:440
Aws::Redshift::Model::DescribeTagsRequest::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: DescribeTagsRequest.h:126
Aws::Redshift::Model::DescribeTagsRequest::WithResourceName
DescribeTagsRequest & WithResourceName(Aws::String &&value)
Definition: DescribeTagsRequest.h:90
Aws::Redshift::Model::DescribeTagsRequest::AddTagKeys
DescribeTagsRequest & AddTagKeys(Aws::String &&value)
Definition: DescribeTagsRequest.h:409
Aws::Redshift::Model::DescribeTagsRequest::AddTagValues
DescribeTagsRequest & AddTagValues(const char *value)
Definition: DescribeTagsRequest.h:510
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::DescribeTagsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeTagsRequest.h:34
Aws::Redshift::Model::DescribeTagsRequest::SetTagValues
void SetTagValues(Aws::Vector< Aws::String > &&value)
Definition: DescribeTagsRequest.h:460
Aws::Redshift::Model::DescribeTagsRequest::MarkerHasBeenSet
bool MarkerHasBeenSet() const
Definition: DescribeTagsRequest.h:268
AWSString.h
Aws::Redshift::Model::DescribeTagsRequest::WithTagValues
DescribeTagsRequest & WithTagValues(Aws::Vector< Aws::String > &&value)
Definition: DescribeTagsRequest.h:480
Aws::Redshift::Model::DescribeTagsRequest::WithMarker
DescribeTagsRequest & WithMarker(const char *value)
Definition: DescribeTagsRequest.h:328
Aws::Redshift::Model::DescribeTagsRequest::GetTagKeys
const Aws::Vector< Aws::String > & GetTagKeys() const
Definition: DescribeTagsRequest.h:339
Aws::Redshift::Model::DescribeTagsRequest
Definition: DescribeTagsRequest.h:26
Aws::Redshift::Model::DescribeTagsRequest::AddTagValues
DescribeTagsRequest & AddTagValues(const Aws::String &value)
Definition: DescribeTagsRequest.h:490
Aws::Redshift::Model::DescribeTagsRequest::SetMarker
void SetMarker(Aws::String &&value)
Definition: DescribeTagsRequest.h:288
Aws::Redshift::Model::DescribeTagsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::DescribeTagsRequest::GetMarker
const Aws::String & GetMarker() const
Definition: DescribeTagsRequest.h:258
Aws::Redshift::Model::DescribeTagsRequest::SetResourceName
void SetResourceName(Aws::String &&value)
Definition: DescribeTagsRequest.h:69
Aws::Redshift::Model::DescribeTagsRequest::WithResourceName
DescribeTagsRequest & WithResourceName(const Aws::String &value)
Definition: DescribeTagsRequest.h:83
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::DescribeTagsRequest::SetMarker
void SetMarker(const char *value)
Definition: DescribeTagsRequest.h:298
Redshift_EXPORTS.h
Aws::Redshift::Model::DescribeTagsRequest::MaxRecordsHasBeenSet
bool MaxRecordsHasBeenSet() const
Definition: DescribeTagsRequest.h:229
Aws::Redshift::Model::DescribeTagsRequest::SetResourceName
void SetResourceName(const Aws::String &value)
Definition: DescribeTagsRequest.h:62
Aws::Redshift::Model::DescribeTagsRequest::AddTagKeys
DescribeTagsRequest & AddTagKeys(const Aws::String &value)
Definition: DescribeTagsRequest.h:399
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::DescribeTagsRequest::WithMarker
DescribeTagsRequest & WithMarker(Aws::String &&value)
Definition: DescribeTagsRequest.h:318
Aws::Redshift::Model::DescribeTagsRequest::SetTagValues
void SetTagValues(const Aws::Vector< Aws::String > &value)
Definition: DescribeTagsRequest.h:450
Aws::Redshift::Model::DescribeTagsRequest::TagKeysHasBeenSet
bool TagKeysHasBeenSet() const
Definition: DescribeTagsRequest.h:349
Aws::Redshift::Model::DescribeTagsRequest::WithResourceType
DescribeTagsRequest & WithResourceType(const Aws::String &value)
Definition: DescribeTagsRequest.h:182
Aws::Redshift::Model::DescribeTagsRequest::SetTagKeys
void SetTagKeys(const Aws::Vector< Aws::String > &value)
Definition: DescribeTagsRequest.h:359
Aws::Redshift::Model::DescribeTagsRequest::SetMarker
void SetMarker(const Aws::String &value)
Definition: DescribeTagsRequest.h:278
Aws::Redshift::Model::DescribeTagsRequest::SetResourceType
void SetResourceType(const char *value)
Definition: DescribeTagsRequest.h:168
Aws::Redshift::Model::DescribeTagsRequest::SetMaxRecords
void SetMaxRecords(int value)
Definition: DescribeTagsRequest.h:238
Aws::Redshift::Model::DescribeTagsRequest::WithMarker
DescribeTagsRequest & WithMarker(const Aws::String &value)
Definition: DescribeTagsRequest.h:308