AWS SDK for C++  1.8.95
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 Cloud9
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UntagResource"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36 
37 
42  inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
43 
48  inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
49 
54  inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
55 
60  inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
61 
66  inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
67 
72  inline UntagResourceRequest& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
73 
78  inline UntagResourceRequest& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
79 
84  inline UntagResourceRequest& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
85 
86 
91  inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
92 
97  inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
98 
103  inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
104 
109  inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
110 
115  inline UntagResourceRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
116 
121  inline UntagResourceRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
122 
127  inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
128 
133  inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
134 
139  inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
140 
141  private:
142 
143  Aws::String m_resourceARN;
144  bool m_resourceARNHasBeenSet;
145 
146  Aws::Vector<Aws::String> m_tagKeys;
147  bool m_tagKeysHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace Cloud9
152 } // namespace Aws
UntagResourceRequest & WithResourceARN(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
const Aws::Vector< Aws::String > & GetTagKeys() const
UntagResourceRequest & WithTagKeys(const Aws::Vector< Aws::String > &value)
void SetResourceARN(const Aws::String &value)
void SetTagKeys(const Aws::Vector< Aws::String > &value)
void SetTagKeys(Aws::Vector< Aws::String > &&value)
UntagResourceRequest & WithResourceARN(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetResourceARN() const
UntagResourceRequest & AddTagKeys(const char *value)
UntagResourceRequest & WithResourceARN(const char *value)
UntagResourceRequest & AddTagKeys(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UntagResourceRequest & WithTagKeys(Aws::Vector< Aws::String > &&value)
UntagResourceRequest & AddTagKeys(const Aws::String &value)
#define AWS_CLOUD9_API