AWS SDK for C++  1.8.71
AWS SDK for C++
UntagResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <aws/qldb/QLDBRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace QLDB
20 {
21 namespace Model
22 {
23 
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 "UntagResource"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
47  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
48 
54  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
55 
61  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
62 
68  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
69 
75  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
76 
82  inline UntagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
83 
89  inline UntagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
90 
96  inline UntagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
97 
98 
102  inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
103 
107  inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
108 
112  inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
113 
117  inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
118 
122  inline UntagResourceRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
123 
127  inline UntagResourceRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
128 
132  inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
133 
137  inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
138 
142  inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
143 
144  private:
145 
146  Aws::String m_resourceArn;
147  bool m_resourceArnHasBeenSet;
148 
149  Aws::Vector<Aws::String> m_tagKeys;
150  bool m_tagKeysHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace QLDB
155 } // namespace Aws
UntagResourceRequest & WithResourceArn(Aws::String &&value)
UntagResourceRequest & WithTagKeys(Aws::Vector< Aws::String > &&value)
UntagResourceRequest & WithResourceArn(const char *value)
UntagResourceRequest & AddTagKeys(const Aws::String &value)
UntagResourceRequest & AddTagKeys(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
const Aws::Vector< Aws::String > & GetTagKeys() const
virtual const char * GetServiceRequestName() const override
UntagResourceRequest & WithResourceArn(const Aws::String &value)
UntagResourceRequest & WithTagKeys(const Aws::Vector< Aws::String > &value)
const Aws::String & GetResourceArn() const
void SetResourceArn(const Aws::String &value)
void SetTagKeys(const Aws::Vector< Aws::String > &value)
#define AWS_QLDB_API
Definition: QLDB_EXPORTS.h:28
UntagResourceRequest & AddTagKeys(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetTagKeys(Aws::Vector< Aws::String > &&value)