AWS SDK for C++  1.8.71
AWS SDK for C++
UntagResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace AppMesh
20 {
21 namespace Model
22 {
23 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "UntagResource"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43 
44 
48  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
49 
53  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
54 
58  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
59 
63  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
64 
68  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
69 
73  inline UntagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
74 
78  inline UntagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
79 
83  inline UntagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
84 
85 
89  inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
90 
94  inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
95 
99  inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
100 
104  inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
105 
109  inline UntagResourceRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
110 
114  inline UntagResourceRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
115 
119  inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
120 
124  inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
125 
129  inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
130 
131  private:
132 
133  Aws::String m_resourceArn;
134  bool m_resourceArnHasBeenSet;
135 
136  Aws::Vector<Aws::String> m_tagKeys;
137  bool m_tagKeysHasBeenSet;
138  };
139 
140 } // namespace Model
141 } // namespace AppMesh
142 } // namespace Aws
virtual const char * GetServiceRequestName() const override
UntagResourceRequest & WithResourceArn(Aws::String &&value)
UntagResourceRequest & WithTagKeys(const Aws::Vector< Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
UntagResourceRequest & WithTagKeys(Aws::Vector< Aws::String > &&value)
UntagResourceRequest & WithResourceArn(const Aws::String &value)
UntagResourceRequest & WithResourceArn(const char *value)
void SetResourceArn(const Aws::String &value)
UntagResourceRequest & AddTagKeys(Aws::String &&value)
void SetTagKeys(Aws::Vector< Aws::String > &&value)
UntagResourceRequest & AddTagKeys(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UntagResourceRequest & AddTagKeys(const char *value)
#define AWS_APPMESH_API
const Aws::Vector< Aws::String > & GetTagKeys() const
void SetTagKeys(const Aws::Vector< Aws::String > &value)