AWS SDK for C++  1.9.129
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 Lambda
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 
45  inline const Aws::String& GetResource() const{ return m_resource; }
46 
50  inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
51 
55  inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
56 
60  inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
61 
65  inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
66 
70  inline UntagResourceRequest& WithResource(const Aws::String& value) { SetResource(value); return *this;}
71 
75  inline UntagResourceRequest& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
76 
80  inline UntagResourceRequest& WithResource(const char* value) { SetResource(value); return *this;}
81 
82 
86  inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
87 
91  inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
92 
96  inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
97 
101  inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
102 
106  inline UntagResourceRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
107 
111  inline UntagResourceRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
112 
116  inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
117 
121  inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
122 
126  inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
127 
128  private:
129 
130  Aws::String m_resource;
131  bool m_resourceHasBeenSet;
132 
133  Aws::Vector<Aws::String> m_tagKeys;
134  bool m_tagKeysHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace Lambda
139 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::Lambda::Model::UntagResourceRequest::AddTagKeys
UntagResourceRequest & AddTagKeys(Aws::String &&value)
Definition: UntagResourceRequest.h:121
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lambda::Model::UntagResourceRequest::AddTagKeys
UntagResourceRequest & AddTagKeys(const char *value)
Definition: UntagResourceRequest.h:126
Aws::Lambda::Model::UntagResourceRequest::UntagResourceRequest
UntagResourceRequest()
Aws::Lambda::Model::UntagResourceRequest::SetResource
void SetResource(const Aws::String &value)
Definition: UntagResourceRequest.h:55
AWSVector.h
Aws::Lambda::Model::UntagResourceRequest::WithResource
UntagResourceRequest & WithResource(Aws::String &&value)
Definition: UntagResourceRequest.h:75
Aws::Lambda::Model::UntagResourceRequest::GetResource
const Aws::String & GetResource() const
Definition: UntagResourceRequest.h:45
Aws::Lambda::Model::UntagResourceRequest::SetTagKeys
void SetTagKeys(const Aws::Vector< Aws::String > &value)
Definition: UntagResourceRequest.h:96
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::UntagResourceRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::Lambda::Model::UntagResourceRequest::WithTagKeys
UntagResourceRequest & WithTagKeys(Aws::Vector< Aws::String > &&value)
Definition: UntagResourceRequest.h:111
Aws::Lambda::Model::UntagResourceRequest::WithResource
UntagResourceRequest & WithResource(const Aws::String &value)
Definition: UntagResourceRequest.h:70
Aws::Lambda::Model::UntagResourceRequest::GetTagKeys
const Aws::Vector< Aws::String > & GetTagKeys() const
Definition: UntagResourceRequest.h:86
AWSString.h
Aws::Lambda::Model::UntagResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lambda::Model::UntagResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UntagResourceRequest.h:35
LambdaRequest.h
Aws::Lambda::Model::UntagResourceRequest::SetResource
void SetResource(Aws::String &&value)
Definition: UntagResourceRequest.h:60
Aws::Lambda::Model::UntagResourceRequest::SetTagKeys
void SetTagKeys(Aws::Vector< Aws::String > &&value)
Definition: UntagResourceRequest.h:101
Aws::Lambda::LambdaRequest
Definition: LambdaRequest.h:18
Aws::Lambda::Model::UntagResourceRequest::TagKeysHasBeenSet
bool TagKeysHasBeenSet() const
Definition: UntagResourceRequest.h:91
Aws::Lambda::Model::UntagResourceRequest::WithResource
UntagResourceRequest & WithResource(const char *value)
Definition: UntagResourceRequest.h:80
Aws::Lambda::Model::UntagResourceRequest::AddTagKeys
UntagResourceRequest & AddTagKeys(const Aws::String &value)
Definition: UntagResourceRequest.h:116
Aws::Lambda::Model::UntagResourceRequest::WithTagKeys
UntagResourceRequest & WithTagKeys(const Aws::Vector< Aws::String > &value)
Definition: UntagResourceRequest.h:106
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Lambda::Model::UntagResourceRequest::ResourceHasBeenSet
bool ResourceHasBeenSet() const
Definition: UntagResourceRequest.h:50
Aws::Lambda::Model::UntagResourceRequest::SetResource
void SetResource(const char *value)
Definition: UntagResourceRequest.h:65
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lambda::Model::UntagResourceRequest
Definition: UntagResourceRequest.h:27
Lambda_EXPORTS.h