AWS SDK for C++  1.9.131
AWS SDK for C++
RemoveTagsFromResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ssm/SSM_EXPORTS.h>
8 #include <aws/ssm/SSMRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SSM
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "RemoveTagsFromResource"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
46  inline const ResourceTypeForTagging& GetResourceType() const{ return m_resourceType; }
47 
55  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
56 
64  inline void SetResourceType(const ResourceTypeForTagging& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
65 
73  inline void SetResourceType(ResourceTypeForTagging&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
74 
82  inline RemoveTagsFromResourceRequest& WithResourceType(const ResourceTypeForTagging& value) { SetResourceType(value); return *this;}
83 
91  inline RemoveTagsFromResourceRequest& WithResourceType(ResourceTypeForTagging&& value) { SetResourceType(std::move(value)); return *this;}
92 
93 
110  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
111 
128  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
129 
146  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
147 
164  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
165 
182  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
183 
200  inline RemoveTagsFromResourceRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
201 
218  inline RemoveTagsFromResourceRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
219 
236  inline RemoveTagsFromResourceRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
237 
238 
242  inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
243 
247  inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
248 
252  inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
253 
257  inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
258 
262  inline RemoveTagsFromResourceRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
263 
267  inline RemoveTagsFromResourceRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
268 
272  inline RemoveTagsFromResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
273 
277  inline RemoveTagsFromResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
278 
282  inline RemoveTagsFromResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
283 
284  private:
285 
286  ResourceTypeForTagging m_resourceType;
287  bool m_resourceTypeHasBeenSet;
288 
289  Aws::String m_resourceId;
290  bool m_resourceIdHasBeenSet;
291 
292  Aws::Vector<Aws::String> m_tagKeys;
293  bool m_tagKeysHasBeenSet;
294  };
295 
296 } // namespace Model
297 } // namespace SSM
298 } // namespace Aws
Aws::SSM::Model::RemoveTagsFromResourceRequest::TagKeysHasBeenSet
bool TagKeysHasBeenSet() const
Definition: RemoveTagsFromResourceRequest.h:247
Aws::SSM::Model::RemoveTagsFromResourceRequest::WithResourceId
RemoveTagsFromResourceRequest & WithResourceId(const char *value)
Definition: RemoveTagsFromResourceRequest.h:236
Aws::SSM::Model::RemoveTagsFromResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSM::Model::RemoveTagsFromResourceRequest::WithResourceType
RemoveTagsFromResourceRequest & WithResourceType(ResourceTypeForTagging &&value)
Definition: RemoveTagsFromResourceRequest.h:91
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ResourceTypeForTagging.h
Aws::SSM::Model::RemoveTagsFromResourceRequest::RemoveTagsFromResourceRequest
RemoveTagsFromResourceRequest()
AWS_SSM_API
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
Aws::SSM::Model::RemoveTagsFromResourceRequest::SetResourceType
void SetResourceType(const ResourceTypeForTagging &value)
Definition: RemoveTagsFromResourceRequest.h:64
Aws::SSM::Model::RemoveTagsFromResourceRequest::SetResourceType
void SetResourceType(ResourceTypeForTagging &&value)
Definition: RemoveTagsFromResourceRequest.h:73
Aws::SSM::Model::RemoveTagsFromResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RemoveTagsFromResourceRequest.h:32
Aws::SSM::Model::RemoveTagsFromResourceRequest::SetTagKeys
void SetTagKeys(const Aws::Vector< Aws::String > &value)
Definition: RemoveTagsFromResourceRequest.h:252
Aws::SSM::Model::RemoveTagsFromResourceRequest::WithTagKeys
RemoveTagsFromResourceRequest & WithTagKeys(const Aws::Vector< Aws::String > &value)
Definition: RemoveTagsFromResourceRequest.h:262
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
SSM_EXPORTS.h
AWSVector.h
Aws::SSM::Model::RemoveTagsFromResourceRequest::WithResourceId
RemoveTagsFromResourceRequest & WithResourceId(Aws::String &&value)
Definition: RemoveTagsFromResourceRequest.h:218
Aws::SSM::Model::RemoveTagsFromResourceRequest::SetTagKeys
void SetTagKeys(Aws::Vector< Aws::String > &&value)
Definition: RemoveTagsFromResourceRequest.h:257
Aws::SSM::Model::RemoveTagsFromResourceRequest::SetResourceId
void SetResourceId(const char *value)
Definition: RemoveTagsFromResourceRequest.h:182
Aws::SSM::Model::RemoveTagsFromResourceRequest::GetResourceType
const ResourceTypeForTagging & GetResourceType() const
Definition: RemoveTagsFromResourceRequest.h:46
Aws::SSM::Model::RemoveTagsFromResourceRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: RemoveTagsFromResourceRequest.h:128
AWSString.h
Aws::SMS::Model::AppValidationStrategy::NOT_SET
@ NOT_SET
Aws::SSM::Model::RemoveTagsFromResourceRequest::WithResourceType
RemoveTagsFromResourceRequest & WithResourceType(const ResourceTypeForTagging &value)
Definition: RemoveTagsFromResourceRequest.h:82
Aws::SSM::Model::RemoveTagsFromResourceRequest::GetTagKeys
const Aws::Vector< Aws::String > & GetTagKeys() const
Definition: RemoveTagsFromResourceRequest.h:242
Aws::SSM::Model::ResourceTypeForTagging
ResourceTypeForTagging
Definition: ResourceTypeForTagging.h:17
Aws::SSM::Model::RemoveTagsFromResourceRequest::AddTagKeys
RemoveTagsFromResourceRequest & AddTagKeys(Aws::String &&value)
Definition: RemoveTagsFromResourceRequest.h:277
Aws::SSM::Model::RemoveTagsFromResourceRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: RemoveTagsFromResourceRequest.h:110
Aws::SSM::Model::RemoveTagsFromResourceRequest::AddTagKeys
RemoveTagsFromResourceRequest & AddTagKeys(const Aws::String &value)
Definition: RemoveTagsFromResourceRequest.h:272
Aws::SSM::Model::RemoveTagsFromResourceRequest::WithResourceId
RemoveTagsFromResourceRequest & WithResourceId(const Aws::String &value)
Definition: RemoveTagsFromResourceRequest.h:200
Aws::SSM::Model::RemoveTagsFromResourceRequest
Definition: RemoveTagsFromResourceRequest.h:24
Aws
Definition: AccessManagementClient.h:15
Aws::SSM::Model::RemoveTagsFromResourceRequest::WithTagKeys
RemoveTagsFromResourceRequest & WithTagKeys(Aws::Vector< Aws::String > &&value)
Definition: RemoveTagsFromResourceRequest.h:267
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSM::Model::RemoveTagsFromResourceRequest::AddTagKeys
RemoveTagsFromResourceRequest & AddTagKeys(const char *value)
Definition: RemoveTagsFromResourceRequest.h:282
Aws::SSM::Model::RemoveTagsFromResourceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SSM::Model::RemoveTagsFromResourceRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: RemoveTagsFromResourceRequest.h:164
Aws::SSM::Model::RemoveTagsFromResourceRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: RemoveTagsFromResourceRequest.h:146
Aws::SSM::Model::RemoveTagsFromResourceRequest::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: RemoveTagsFromResourceRequest.h:55
Aws::SSM::SSMRequest
Definition: SSMRequest.h:17
SSMRequest.h