AWS SDK for C++  1.8.76
AWS SDK for C++
ListTagsForResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ElastiCache
15 {
16 namespace Model
17 {
18 
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 "ListTagsForResource"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
52  inline const Aws::String& GetResourceName() const{ return m_resourceName; }
53 
63  inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
64 
74  inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
75 
85  inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
86 
96  inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
97 
107  inline ListTagsForResourceRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
108 
118  inline ListTagsForResourceRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
119 
129  inline ListTagsForResourceRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
130 
131  private:
132 
133  Aws::String m_resourceName;
134  bool m_resourceNameHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace ElastiCache
139 } // namespace Aws
ListTagsForResourceRequest & WithResourceName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_ELASTICACHE_API
ListTagsForResourceRequest & WithResourceName(Aws::String &&value)
ListTagsForResourceRequest & WithResourceName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override