AWS SDK for C++  1.9.16
AWS SDK for C++
RemoveTagsFromResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace DirectoryService
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 "RemoveTagsFromResource"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
42 
46  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
47 
51  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
52 
56  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
57 
61  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
62 
66  inline RemoveTagsFromResourceRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
67 
71  inline RemoveTagsFromResourceRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
72 
76  inline RemoveTagsFromResourceRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
77 
78 
82  inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
83 
87  inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
88 
92  inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
93 
97  inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
98 
102  inline RemoveTagsFromResourceRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
103 
107  inline RemoveTagsFromResourceRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
108 
112  inline RemoveTagsFromResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
113 
117  inline RemoveTagsFromResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
118 
122  inline RemoveTagsFromResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
123 
124  private:
125 
126  Aws::String m_resourceId;
127  bool m_resourceIdHasBeenSet;
128 
129  Aws::Vector<Aws::String> m_tagKeys;
130  bool m_tagKeysHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace DirectoryService
135 } // namespace Aws
Aws::DirectoryService::Model::RemoveTagsFromResourceRequest::WithResourceId
RemoveTagsFromResourceRequest & WithResourceId(const char *value)
Definition: RemoveTagsFromResourceRequest.h:76
Aws::DirectoryService::Model::RemoveTagsFromResourceRequest::AddTagKeys
RemoveTagsFromResourceRequest & AddTagKeys(const Aws::String &value)
Definition: RemoveTagsFromResourceRequest.h:112
Aws::DirectoryService::Model::RemoveTagsFromResourceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectoryService::Model::RemoveTagsFromResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RemoveTagsFromResourceRequest.h:31
Aws::DirectoryService::Model::RemoveTagsFromResourceRequest::GetTagKeys
const Aws::Vector< Aws::String > & GetTagKeys() const
Definition: RemoveTagsFromResourceRequest.h:82
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DirectoryService::Model::RemoveTagsFromResourceRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: RemoveTagsFromResourceRequest.h:51
DirectoryService_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::RemoveTagsFromResourceRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: RemoveTagsFromResourceRequest.h:56
Aws::DirectoryService::Model::RemoveTagsFromResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectoryService::Model::RemoveTagsFromResourceRequest::WithTagKeys
RemoveTagsFromResourceRequest & WithTagKeys(const Aws::Vector< Aws::String > &value)
Definition: RemoveTagsFromResourceRequest.h:102
Aws::DirectoryService::Model::RemoveTagsFromResourceRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: RemoveTagsFromResourceRequest.h:41
Aws::DirectoryService::Model::RemoveTagsFromResourceRequest::SetTagKeys
void SetTagKeys(const Aws::Vector< Aws::String > &value)
Definition: RemoveTagsFromResourceRequest.h:92
Aws::DirectoryService::Model::RemoveTagsFromResourceRequest::SetTagKeys
void SetTagKeys(Aws::Vector< Aws::String > &&value)
Definition: RemoveTagsFromResourceRequest.h:97
AWSString.h
Aws::DirectoryService::Model::RemoveTagsFromResourceRequest::AddTagKeys
RemoveTagsFromResourceRequest & AddTagKeys(Aws::String &&value)
Definition: RemoveTagsFromResourceRequest.h:117
Aws::DirectoryService::Model::RemoveTagsFromResourceRequest::SetResourceId
void SetResourceId(const char *value)
Definition: RemoveTagsFromResourceRequest.h:61
Aws::DirectoryService::Model::RemoveTagsFromResourceRequest::WithResourceId
RemoveTagsFromResourceRequest & WithResourceId(Aws::String &&value)
Definition: RemoveTagsFromResourceRequest.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::RemoveTagsFromResourceRequest::TagKeysHasBeenSet
bool TagKeysHasBeenSet() const
Definition: RemoveTagsFromResourceRequest.h:87
Aws::DirectoryService::Model::RemoveTagsFromResourceRequest::AddTagKeys
RemoveTagsFromResourceRequest & AddTagKeys(const char *value)
Definition: RemoveTagsFromResourceRequest.h:122
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::RemoveTagsFromResourceRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: RemoveTagsFromResourceRequest.h:46
Aws::DirectoryService::Model::RemoveTagsFromResourceRequest
Definition: RemoveTagsFromResourceRequest.h:23
DirectoryServiceRequest.h
Aws::DirectoryService::Model::RemoveTagsFromResourceRequest::WithTagKeys
RemoveTagsFromResourceRequest & WithTagKeys(Aws::Vector< Aws::String > &&value)
Definition: RemoveTagsFromResourceRequest.h:107
Aws::DirectoryService::Model::RemoveTagsFromResourceRequest::WithResourceId
RemoveTagsFromResourceRequest & WithResourceId(const Aws::String &value)
Definition: RemoveTagsFromResourceRequest.h:66
Aws::DirectoryService::Model::RemoveTagsFromResourceRequest::RemoveTagsFromResourceRequest
RemoveTagsFromResourceRequest()