AWS SDK for C++  1.9.20
AWS SDK for C++
AddTagsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EMR
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "AddTags"; }
37 
38  Aws::String SerializePayload() const override;
39 
41 
42 
47  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
48 
53  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
54 
59  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
60 
65  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
66 
71  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
72 
77  inline AddTagsRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
78 
83  inline AddTagsRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
84 
89  inline AddTagsRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
90 
91 
98  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
99 
106  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 
114  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
115 
122  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
123 
130  inline AddTagsRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
131 
138  inline AddTagsRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
139 
146  inline AddTagsRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
147 
154  inline AddTagsRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
155 
156  private:
157 
158  Aws::String m_resourceId;
159  bool m_resourceIdHasBeenSet;
160 
161  Aws::Vector<Tag> m_tags;
162  bool m_tagsHasBeenSet;
163  };
164 
165 } // namespace Model
166 } // namespace EMR
167 } // namespace Aws
Aws::EMR::Model::AddTagsRequest::AddTags
AddTagsRequest & AddTags(const Tag &value)
Definition: AddTagsRequest.h:146
Aws::EMR::Model::AddTagsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddTagsRequest.h:36
Aws::EMR::Model::AddTagsRequest::WithTags
AddTagsRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: AddTagsRequest.h:138
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::EMR::Model::AddTagsRequest::AddTags
AddTagsRequest & AddTags(Tag &&value)
Definition: AddTagsRequest.h:154
Aws::EMR::Model::AddTagsRequest::WithResourceId
AddTagsRequest & WithResourceId(Aws::String &&value)
Definition: AddTagsRequest.h:83
EMR_EXPORTS.h
EMRRequest.h
Aws::EMR::Model::AddTagsRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: AddTagsRequest.h:47
Aws::EMR::Model::AddTagsRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: AddTagsRequest.h:98
Aws::EMR::Model::AddTagsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EMR::Model::AddTagsRequest
Definition: AddTagsRequest.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EMR::Model::AddTagsRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: AddTagsRequest.h:106
AWSVector.h
Tag.h
Aws::EMR::Model::AddTagsRequest::WithResourceId
AddTagsRequest & WithResourceId(const Aws::String &value)
Definition: AddTagsRequest.h:77
Aws::EMR::Model::AddTagsRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: AddTagsRequest.h:122
Aws::EMR::Model::AddTagsRequest::WithResourceId
AddTagsRequest & WithResourceId(const char *value)
Definition: AddTagsRequest.h:89
Aws::EMR::Model::AddTagsRequest::WithTags
AddTagsRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: AddTagsRequest.h:130
Aws::EMR::EMRRequest
Definition: EMRRequest.h:17
Aws::EMR::Model::AddTagsRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: AddTagsRequest.h:65
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
AWSString.h
Aws::EMR::Model::Tag
Definition: Tag.h:37
Aws::EMR::Model::AddTagsRequest::AddTagsRequest
AddTagsRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::AddTagsRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: AddTagsRequest.h:59
Aws::EMR::Model::AddTagsRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: AddTagsRequest.h:53
Aws::EMR::Model::AddTagsRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: AddTagsRequest.h:114
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::AddTagsRequest::SetResourceId
void SetResourceId(const char *value)
Definition: AddTagsRequest.h:71
Aws::EMR::Model::AddTagsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override