AWS SDK for C++  1.8.71
AWS SDK for C++
DeleteTagsRequest.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 "DeleteTags"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
48  inline const Aws::String& GetResourceName() const{ return m_resourceName; }
49 
54  inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
55 
60  inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
61 
66  inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
67 
72  inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
73 
78  inline DeleteTagsRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
79 
84  inline DeleteTagsRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
85 
90  inline DeleteTagsRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
91 
92 
96  inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
97 
101  inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
102 
106  inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
107 
111  inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
112 
116  inline DeleteTagsRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
117 
121  inline DeleteTagsRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
122 
126  inline DeleteTagsRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
127 
131  inline DeleteTagsRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
132 
136  inline DeleteTagsRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
137 
138  private:
139 
140  Aws::String m_resourceName;
141  bool m_resourceNameHasBeenSet;
142 
143  Aws::Vector<Aws::String> m_tagKeys;
144  bool m_tagKeysHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace Redshift
149 } // namespace Aws
const Aws::String & GetResourceName() const
const Aws::Vector< Aws::String > & GetTagKeys() const
void SetResourceName(const Aws::String &value)
DeleteTagsRequest & AddTagKeys(Aws::String &&value)
DeleteTagsRequest & WithResourceName(Aws::String &&value)
DeleteTagsRequest & WithTagKeys(Aws::Vector< Aws::String > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
void SetTagKeys(const Aws::Vector< Aws::String > &value)
void SetTagKeys(Aws::Vector< Aws::String > &&value)
DeleteTagsRequest & AddTagKeys(const Aws::String &value)
#define AWS_REDSHIFT_API
virtual const char * GetServiceRequestName() const override
DeleteTagsRequest & WithResourceName(const Aws::String &value)
DeleteTagsRequest & WithTagKeys(const Aws::Vector< Aws::String > &value)
DeleteTagsRequest & WithResourceName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetResourceName(Aws::String &&value)
DeleteTagsRequest & AddTagKeys(const char *value)