AWS SDK for C++  1.9.109
AWS SDK for C++
RemoveTagsFromResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ElastiCache
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 "RemoveTagsFromResource"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
53  inline const Aws::String& GetResourceName() const{ return m_resourceName; }
54 
64  inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
65 
75  inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
76 
86  inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
87 
97  inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
98 
108  inline RemoveTagsFromResourceRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
109 
119  inline RemoveTagsFromResourceRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
120 
130  inline RemoveTagsFromResourceRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
131 
132 
137  inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
138 
143  inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
144 
149  inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
150 
155  inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
156 
161  inline RemoveTagsFromResourceRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
162 
167  inline RemoveTagsFromResourceRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
168 
173  inline RemoveTagsFromResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
174 
179  inline RemoveTagsFromResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
180 
185  inline RemoveTagsFromResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
186 
187  private:
188 
189  Aws::String m_resourceName;
190  bool m_resourceNameHasBeenSet;
191 
192  Aws::Vector<Aws::String> m_tagKeys;
193  bool m_tagKeysHasBeenSet;
194  };
195 
196 } // namespace Model
197 } // namespace ElastiCache
198 } // namespace Aws
Aws::ElastiCache::Model::RemoveTagsFromResourceRequest::WithResourceName
RemoveTagsFromResourceRequest & WithResourceName(const char *value)
Definition: RemoveTagsFromResourceRequest.h:130
Aws::Http::URI
Definition: URI.h:32
Aws::ElastiCache::Model::RemoveTagsFromResourceRequest::RemoveTagsFromResourceRequest
RemoveTagsFromResourceRequest()
Aws::ElastiCache::Model::RemoveTagsFromResourceRequest::SetResourceName
void SetResourceName(const Aws::String &value)
Definition: RemoveTagsFromResourceRequest.h:75
Aws::ElastiCache::Model::RemoveTagsFromResourceRequest::AddTagKeys
RemoveTagsFromResourceRequest & AddTagKeys(const Aws::String &value)
Definition: RemoveTagsFromResourceRequest.h:173
ElastiCacheRequest.h
Aws::ElastiCache::Model::RemoveTagsFromResourceRequest::SetResourceName
void SetResourceName(Aws::String &&value)
Definition: RemoveTagsFromResourceRequest.h:86
Aws::ElastiCache::Model::RemoveTagsFromResourceRequest::GetTagKeys
const Aws::Vector< Aws::String > & GetTagKeys() const
Definition: RemoveTagsFromResourceRequest.h:137
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElastiCache::Model::RemoveTagsFromResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RemoveTagsFromResourceRequest.h:35
ElastiCache_EXPORTS.h
AWSVector.h
Aws::ElastiCache::Model::RemoveTagsFromResourceRequest
Definition: RemoveTagsFromResourceRequest.h:27
Aws::ElastiCache::Model::RemoveTagsFromResourceRequest::WithTagKeys
RemoveTagsFromResourceRequest & WithTagKeys(const Aws::Vector< Aws::String > &value)
Definition: RemoveTagsFromResourceRequest.h:161
Aws::ElastiCache::Model::RemoveTagsFromResourceRequest::WithResourceName
RemoveTagsFromResourceRequest & WithResourceName(Aws::String &&value)
Definition: RemoveTagsFromResourceRequest.h:119
Aws::ElastiCache::Model::RemoveTagsFromResourceRequest::GetResourceName
const Aws::String & GetResourceName() const
Definition: RemoveTagsFromResourceRequest.h:53
Aws::ElastiCache::Model::RemoveTagsFromResourceRequest::SetResourceName
void SetResourceName(const char *value)
Definition: RemoveTagsFromResourceRequest.h:97
Aws::ElastiCache::Model::RemoveTagsFromResourceRequest::AddTagKeys
RemoveTagsFromResourceRequest & AddTagKeys(Aws::String &&value)
Definition: RemoveTagsFromResourceRequest.h:179
AWSString.h
AWS_ELASTICACHE_API
#define AWS_ELASTICACHE_API
Definition: ElastiCache_EXPORTS.h:28
Aws::ElastiCache::Model::RemoveTagsFromResourceRequest::WithResourceName
RemoveTagsFromResourceRequest & WithResourceName(const Aws::String &value)
Definition: RemoveTagsFromResourceRequest.h:108
Aws::ElastiCache::Model::RemoveTagsFromResourceRequest::SetTagKeys
void SetTagKeys(const Aws::Vector< Aws::String > &value)
Definition: RemoveTagsFromResourceRequest.h:149
Aws::ElastiCache::Model::RemoveTagsFromResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ElastiCache::Model::RemoveTagsFromResourceRequest::WithTagKeys
RemoveTagsFromResourceRequest & WithTagKeys(Aws::Vector< Aws::String > &&value)
Definition: RemoveTagsFromResourceRequest.h:167
Aws::ElastiCache::Model::RemoveTagsFromResourceRequest::TagKeysHasBeenSet
bool TagKeysHasBeenSet() const
Definition: RemoveTagsFromResourceRequest.h:143
Aws::ElastiCache::Model::RemoveTagsFromResourceRequest::SetTagKeys
void SetTagKeys(Aws::Vector< Aws::String > &&value)
Definition: RemoveTagsFromResourceRequest.h:155
Aws
Definition: AccessManagementClient.h:15
Aws::ElastiCache::Model::RemoveTagsFromResourceRequest::AddTagKeys
RemoveTagsFromResourceRequest & AddTagKeys(const char *value)
Definition: RemoveTagsFromResourceRequest.h:185
Aws::ElastiCache::Model::RemoveTagsFromResourceRequest::ResourceNameHasBeenSet
bool ResourceNameHasBeenSet() const
Definition: RemoveTagsFromResourceRequest.h:64
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElastiCache::ElastiCacheRequest
Definition: ElastiCacheRequest.h:17
Aws::ElastiCache::Model::RemoveTagsFromResourceRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override