AWS SDK for C++  1.9.108
AWS SDK for C++
ListTagsForResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
8 #include <aws/rds/RDSRequest.h>
11 #include <aws/rds/model/Filter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace RDS
17 {
18 namespace Model
19 {
20 
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 "ListTagsForResource"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
50  inline const Aws::String& GetResourceName() const{ return m_resourceName; }
51 
58  inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
59 
66  inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
67 
74  inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
75 
82  inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
83 
90  inline ListTagsForResourceRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
91 
98  inline ListTagsForResourceRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
99 
106  inline ListTagsForResourceRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
107 
108 
112  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
113 
117  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
118 
122  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
123 
127  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
128 
132  inline ListTagsForResourceRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
133 
137  inline ListTagsForResourceRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
138 
142  inline ListTagsForResourceRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
143 
147  inline ListTagsForResourceRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
148 
149  private:
150 
151  Aws::String m_resourceName;
152  bool m_resourceNameHasBeenSet;
153 
154  Aws::Vector<Filter> m_filters;
155  bool m_filtersHasBeenSet;
156  };
157 
158 } // namespace Model
159 } // namespace RDS
160 } // namespace Aws
Aws::RDS::Model::ListTagsForResourceRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: ListTagsForResourceRequest.h:112
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::ListTagsForResourceRequest::SetResourceName
void SetResourceName(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:74
Aws::RDS::Model::ListTagsForResourceRequest::WithFilters
ListTagsForResourceRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: ListTagsForResourceRequest.h:137
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::ListTagsForResourceRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::RDS::Model::ListTagsForResourceRequest::ListTagsForResourceRequest
ListTagsForResourceRequest()
Aws::RDS::Model::ListTagsForResourceRequest::GetResourceName
const Aws::String & GetResourceName() const
Definition: ListTagsForResourceRequest.h:50
Aws::RDS::Model::ListTagsForResourceRequest
Definition: ListTagsForResourceRequest.h:27
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDS::Model::ListTagsForResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListTagsForResourceRequest.h:35
Aws::RDS::Model::ListTagsForResourceRequest::WithResourceName
ListTagsForResourceRequest & WithResourceName(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:98
Aws::RDS::Model::ListTagsForResourceRequest::SetResourceName
void SetResourceName(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:66
Aws::RDS::Model::ListTagsForResourceRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: ListTagsForResourceRequest.h:117
AWSVector.h
RDS_EXPORTS.h
Aws::RDS::Model::ListTagsForResourceRequest::ResourceNameHasBeenSet
bool ResourceNameHasBeenSet() const
Definition: ListTagsForResourceRequest.h:58
Aws::RDS::Model::ListTagsForResourceRequest::AddFilters
ListTagsForResourceRequest & AddFilters(const Filter &value)
Definition: ListTagsForResourceRequest.h:142
Aws::RDS::Model::Filter
Definition: Filter.h:43
Aws::RDS::Model::ListTagsForResourceRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: ListTagsForResourceRequest.h:122
Aws::RDS::Model::ListTagsForResourceRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::RDS::Model::ListTagsForResourceRequest::SetResourceName
void SetResourceName(const char *value)
Definition: ListTagsForResourceRequest.h:82
Filter.h
Aws::RDS::Model::ListTagsForResourceRequest::WithResourceName
ListTagsForResourceRequest & WithResourceName(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:90
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::ListTagsForResourceRequest::AddFilters
ListTagsForResourceRequest & AddFilters(Filter &&value)
Definition: ListTagsForResourceRequest.h:147
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RDSRequest.h
Aws::RDS::Model::ListTagsForResourceRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: ListTagsForResourceRequest.h:127
Aws::RDS::Model::ListTagsForResourceRequest::WithResourceName
ListTagsForResourceRequest & WithResourceName(const char *value)
Definition: ListTagsForResourceRequest.h:106
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::ListTagsForResourceRequest::WithFilters
ListTagsForResourceRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: ListTagsForResourceRequest.h:132