AWS SDK for C++  1.9.19
AWS SDK for C++
RemoveTagsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EMR
16 {
17 namespace Model
18 {
19 
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 "RemoveTags"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
46  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
47 
52  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
53 
58  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
59 
64  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
65 
70  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
71 
76  inline RemoveTagsRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
77 
82  inline RemoveTagsRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
83 
88  inline RemoveTagsRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
89 
90 
94  inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
95 
99  inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
100 
104  inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
105 
109  inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
110 
114  inline RemoveTagsRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
115 
119  inline RemoveTagsRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
120 
124  inline RemoveTagsRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
125 
129  inline RemoveTagsRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
130 
134  inline RemoveTagsRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
135 
136  private:
137 
138  Aws::String m_resourceId;
139  bool m_resourceIdHasBeenSet;
140 
141  Aws::Vector<Aws::String> m_tagKeys;
142  bool m_tagKeysHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace EMR
147 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::EMR::Model::RemoveTagsRequest::SetTagKeys
void SetTagKeys(const Aws::Vector< Aws::String > &value)
Definition: RemoveTagsRequest.h:104
Aws::EMR::Model::RemoveTagsRequest::SetResourceId
void SetResourceId(const char *value)
Definition: RemoveTagsRequest.h:70
EMR_EXPORTS.h
EMRRequest.h
Aws::EMR::Model::RemoveTagsRequest
Definition: RemoveTagsRequest.h:27
Aws::EMR::Model::RemoveTagsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RemoveTagsRequest.h:35
Aws::EMR::Model::RemoveTagsRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: RemoveTagsRequest.h:46
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EMR::Model::RemoveTagsRequest::WithResourceId
RemoveTagsRequest & WithResourceId(const Aws::String &value)
Definition: RemoveTagsRequest.h:76
Aws::EMR::Model::RemoveTagsRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: RemoveTagsRequest.h:52
Aws::EMR::Model::RemoveTagsRequest::GetTagKeys
const Aws::Vector< Aws::String > & GetTagKeys() const
Definition: RemoveTagsRequest.h:94
Aws::EMR::Model::RemoveTagsRequest::TagKeysHasBeenSet
bool TagKeysHasBeenSet() const
Definition: RemoveTagsRequest.h:99
AWSVector.h
Aws::EMR::Model::RemoveTagsRequest::WithResourceId
RemoveTagsRequest & WithResourceId(Aws::String &&value)
Definition: RemoveTagsRequest.h:82
Aws::EMR::Model::RemoveTagsRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: RemoveTagsRequest.h:64
Aws::EMR::Model::RemoveTagsRequest::WithTagKeys
RemoveTagsRequest & WithTagKeys(Aws::Vector< Aws::String > &&value)
Definition: RemoveTagsRequest.h:119
Aws::EMR::Model::RemoveTagsRequest::WithResourceId
RemoveTagsRequest & WithResourceId(const char *value)
Definition: RemoveTagsRequest.h:88
Aws::EMR::Model::RemoveTagsRequest::RemoveTagsRequest
RemoveTagsRequest()
Aws::EMR::Model::RemoveTagsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EMR::EMRRequest
Definition: EMRRequest.h:17
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
AWSString.h
Aws::EMR::Model::RemoveTagsRequest::AddTagKeys
RemoveTagsRequest & AddTagKeys(const char *value)
Definition: RemoveTagsRequest.h:134
Aws::EMR::Model::RemoveTagsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::EMR::Model::RemoveTagsRequest::WithTagKeys
RemoveTagsRequest & WithTagKeys(const Aws::Vector< Aws::String > &value)
Definition: RemoveTagsRequest.h:114
Aws::EMR::Model::RemoveTagsRequest::SetTagKeys
void SetTagKeys(Aws::Vector< Aws::String > &&value)
Definition: RemoveTagsRequest.h:109
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::RemoveTagsRequest::AddTagKeys
RemoveTagsRequest & AddTagKeys(Aws::String &&value)
Definition: RemoveTagsRequest.h:129
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::RemoveTagsRequest::AddTagKeys
RemoveTagsRequest & AddTagKeys(const Aws::String &value)
Definition: RemoveTagsRequest.h:124
Aws::EMR::Model::RemoveTagsRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: RemoveTagsRequest.h:58
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28