AWS SDK for C++  1.9.131
AWS SDK for C++
DeleteTagsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace WorkSpaces
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 "DeleteTags"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
43  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
44 
50  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
51 
57  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
58 
64  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
65 
71  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
72 
78  inline DeleteTagsRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
79 
85  inline DeleteTagsRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
86 
92  inline DeleteTagsRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
93 
94 
98  inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
99 
103  inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
104 
108  inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
109 
113  inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
114 
118  inline DeleteTagsRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
119 
123  inline DeleteTagsRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
124 
128  inline DeleteTagsRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
129 
133  inline DeleteTagsRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
134 
138  inline DeleteTagsRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
139 
140  private:
141 
142  Aws::String m_resourceId;
143  bool m_resourceIdHasBeenSet;
144 
145  Aws::Vector<Aws::String> m_tagKeys;
146  bool m_tagKeysHasBeenSet;
147  };
148 
149 } // namespace Model
150 } // namespace WorkSpaces
151 } // namespace Aws
WorkSpaces_EXPORTS.h
Aws::WorkSpaces::Model::DeleteTagsRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: DeleteTagsRequest.h:43
Aws::WorkSpaces::WorkSpacesRequest
Definition: WorkSpacesRequest.h:17
Aws::WorkSpaces::Model::DeleteTagsRequest::SetResourceId
void SetResourceId(const char *value)
Definition: DeleteTagsRequest.h:71
AWS_WORKSPACES_API
#define AWS_WORKSPACES_API
Definition: WorkSpaces_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
WorkSpacesRequest.h
Aws::WorkSpaces::Model::DeleteTagsRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: DeleteTagsRequest.h:50
Aws::WorkSpaces::Model::DeleteTagsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::WorkSpaces::Model::DeleteTagsRequest::GetTagKeys
const Aws::Vector< Aws::String > & GetTagKeys() const
Definition: DeleteTagsRequest.h:98
Aws::WorkSpaces::Model::DeleteTagsRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: DeleteTagsRequest.h:57
Aws::WorkSpaces::Model::DeleteTagsRequest::WithResourceId
DeleteTagsRequest & WithResourceId(const char *value)
Definition: DeleteTagsRequest.h:92
Aws::WorkSpaces::Model::DeleteTagsRequest
Definition: DeleteTagsRequest.h:23
Aws::WorkSpaces::Model::DeleteTagsRequest::AddTagKeys
DeleteTagsRequest & AddTagKeys(const Aws::String &value)
Definition: DeleteTagsRequest.h:128
Aws::WorkSpaces::Model::DeleteTagsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
Aws::WorkSpaces::Model::DeleteTagsRequest::WithTagKeys
DeleteTagsRequest & WithTagKeys(Aws::Vector< Aws::String > &&value)
Definition: DeleteTagsRequest.h:123
Aws::WorkSpaces::Model::DeleteTagsRequest::WithTagKeys
DeleteTagsRequest & WithTagKeys(const Aws::Vector< Aws::String > &value)
Definition: DeleteTagsRequest.h:118
Aws::WorkSpaces::Model::DeleteTagsRequest::AddTagKeys
DeleteTagsRequest & AddTagKeys(Aws::String &&value)
Definition: DeleteTagsRequest.h:133
Aws::WorkSpaces::Model::DeleteTagsRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: DeleteTagsRequest.h:64
Aws::WorkSpaces::Model::DeleteTagsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteTagsRequest.h:31
Aws
Definition: AccessManagementClient.h:15
Aws::WorkSpaces::Model::DeleteTagsRequest::SetTagKeys
void SetTagKeys(Aws::Vector< Aws::String > &&value)
Definition: DeleteTagsRequest.h:113
Aws::WorkSpaces::Model::DeleteTagsRequest::TagKeysHasBeenSet
bool TagKeysHasBeenSet() const
Definition: DeleteTagsRequest.h:103
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkSpaces::Model::DeleteTagsRequest::SetTagKeys
void SetTagKeys(const Aws::Vector< Aws::String > &value)
Definition: DeleteTagsRequest.h:108
Aws::WorkSpaces::Model::DeleteTagsRequest::WithResourceId
DeleteTagsRequest & WithResourceId(const Aws::String &value)
Definition: DeleteTagsRequest.h:78
Aws::WorkSpaces::Model::DeleteTagsRequest::DeleteTagsRequest
DeleteTagsRequest()
Aws::WorkSpaces::Model::DeleteTagsRequest::AddTagKeys
DeleteTagsRequest & AddTagKeys(const char *value)
Definition: DeleteTagsRequest.h:138
Aws::WorkSpaces::Model::DeleteTagsRequest::WithResourceId
DeleteTagsRequest & WithResourceId(Aws::String &&value)
Definition: DeleteTagsRequest.h:85