AWS SDK for C++  1.9.106
AWS SDK for C++
AddTagsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/es/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ElasticsearchService
17 {
18 namespace Model
19 {
20 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "AddTags"; }
38 
39  Aws::String SerializePayload() const override;
40 
41 
45  inline const Aws::String& GetARN() const{ return m_aRN; }
46 
50  inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
51 
55  inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
56 
60  inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
61 
65  inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
66 
70  inline AddTagsRequest& WithARN(const Aws::String& value) { SetARN(value); return *this;}
71 
75  inline AddTagsRequest& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
76 
80  inline AddTagsRequest& WithARN(const char* value) { SetARN(value); return *this;}
81 
82 
87  inline const Aws::Vector<Tag>& GetTagList() const{ return m_tagList; }
88 
93  inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
94 
99  inline void SetTagList(const Aws::Vector<Tag>& value) { m_tagListHasBeenSet = true; m_tagList = value; }
100 
105  inline void SetTagList(Aws::Vector<Tag>&& value) { m_tagListHasBeenSet = true; m_tagList = std::move(value); }
106 
111  inline AddTagsRequest& WithTagList(const Aws::Vector<Tag>& value) { SetTagList(value); return *this;}
112 
117  inline AddTagsRequest& WithTagList(Aws::Vector<Tag>&& value) { SetTagList(std::move(value)); return *this;}
118 
123  inline AddTagsRequest& AddTagList(const Tag& value) { m_tagListHasBeenSet = true; m_tagList.push_back(value); return *this; }
124 
129  inline AddTagsRequest& AddTagList(Tag&& value) { m_tagListHasBeenSet = true; m_tagList.push_back(std::move(value)); return *this; }
130 
131  private:
132 
133  Aws::String m_aRN;
134  bool m_aRNHasBeenSet;
135 
136  Aws::Vector<Tag> m_tagList;
137  bool m_tagListHasBeenSet;
138  };
139 
140 } // namespace Model
141 } // namespace ElasticsearchService
142 } // namespace Aws
Aws::ElasticsearchService::Model::AddTagsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ElasticsearchService::ElasticsearchServiceRequest
Definition: ElasticsearchServiceRequest.h:17
ElasticsearchServiceRequest.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticsearchService::Model::AddTagsRequest::WithARN
AddTagsRequest & WithARN(const Aws::String &value)
Definition: AddTagsRequest.h:70
AWSVector.h
Aws::ElasticsearchService::Model::AddTagsRequest
Definition: AddTagsRequest.h:29
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::AddTagsRequest::WithTagList
AddTagsRequest & WithTagList(Aws::Vector< Tag > &&value)
Definition: AddTagsRequest.h:117
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::Tag
Definition: Tag.h:32
Aws::ElasticsearchService::Model::AddTagsRequest::SetARN
void SetARN(Aws::String &&value)
Definition: AddTagsRequest.h:60
Tag.h
Aws::ElasticsearchService::Model::AddTagsRequest::SetTagList
void SetTagList(const Aws::Vector< Tag > &value)
Definition: AddTagsRequest.h:99
AWSString.h
Aws::ElasticsearchService::Model::AddTagsRequest::AddTagList
AddTagsRequest & AddTagList(const Tag &value)
Definition: AddTagsRequest.h:123
Aws::ElasticsearchService::Model::AddTagsRequest::SetARN
void SetARN(const char *value)
Definition: AddTagsRequest.h:65
Aws::ElasticsearchService::Model::AddTagsRequest::SetTagList
void SetTagList(Aws::Vector< Tag > &&value)
Definition: AddTagsRequest.h:105
Aws::ElasticsearchService::Model::AddTagsRequest::GetARN
const Aws::String & GetARN() const
Definition: AddTagsRequest.h:45
Aws::ElasticsearchService::Model::AddTagsRequest::SetARN
void SetARN(const Aws::String &value)
Definition: AddTagsRequest.h:55
Aws::ElasticsearchService::Model::AddTagsRequest::AddTagsRequest
AddTagsRequest()
Aws::ElasticsearchService::Model::AddTagsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddTagsRequest.h:37
Aws::ElasticsearchService::Model::AddTagsRequest::AddTagList
AddTagsRequest & AddTagList(Tag &&value)
Definition: AddTagsRequest.h:129
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::AddTagsRequest::WithTagList
AddTagsRequest & WithTagList(const Aws::Vector< Tag > &value)
Definition: AddTagsRequest.h:111
Aws::ElasticsearchService::Model::AddTagsRequest::TagListHasBeenSet
bool TagListHasBeenSet() const
Definition: AddTagsRequest.h:93
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::AddTagsRequest::WithARN
AddTagsRequest & WithARN(Aws::String &&value)
Definition: AddTagsRequest.h:75
Aws::ElasticsearchService::Model::AddTagsRequest::ARNHasBeenSet
bool ARNHasBeenSet() const
Definition: AddTagsRequest.h:50
Aws::ElasticsearchService::Model::AddTagsRequest::WithARN
AddTagsRequest & WithARN(const char *value)
Definition: AddTagsRequest.h:80
Aws::ElasticsearchService::Model::AddTagsRequest::GetTagList
const Aws::Vector< Tag > & GetTagList() const
Definition: AddTagsRequest.h:87