AWS SDK for C++  1.8.129
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 DataPipeline
17 {
18 namespace Model
19 {
20 
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 "AddTags"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
45  inline const Aws::String& GetPipelineId() const{ return m_pipelineId; }
46 
50  inline bool PipelineIdHasBeenSet() const { return m_pipelineIdHasBeenSet; }
51 
55  inline void SetPipelineId(const Aws::String& value) { m_pipelineIdHasBeenSet = true; m_pipelineId = value; }
56 
60  inline void SetPipelineId(Aws::String&& value) { m_pipelineIdHasBeenSet = true; m_pipelineId = std::move(value); }
61 
65  inline void SetPipelineId(const char* value) { m_pipelineIdHasBeenSet = true; m_pipelineId.assign(value); }
66 
70  inline AddTagsRequest& WithPipelineId(const Aws::String& value) { SetPipelineId(value); return *this;}
71 
75  inline AddTagsRequest& WithPipelineId(Aws::String&& value) { SetPipelineId(std::move(value)); return *this;}
76 
80  inline AddTagsRequest& WithPipelineId(const char* value) { SetPipelineId(value); return *this;}
81 
82 
86  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
87 
91  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 
96  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
97 
101  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
102 
106  inline AddTagsRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
107 
111  inline AddTagsRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
112 
116  inline AddTagsRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
117 
121  inline AddTagsRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
122 
123  private:
124 
125  Aws::String m_pipelineId;
126  bool m_pipelineIdHasBeenSet;
127 
128  Aws::Vector<Tag> m_tags;
129  bool m_tagsHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace DataPipeline
134 } // namespace Aws
Aws::DataPipeline::Model::AddTagsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddTagsRequest.h:35
Aws::DataPipeline::Model::AddTagsRequest::SetPipelineId
void SetPipelineId(const char *value)
Definition: AddTagsRequest.h:65
Aws::DataPipeline::Model::AddTagsRequest::WithPipelineId
AddTagsRequest & WithPipelineId(const char *value)
Definition: AddTagsRequest.h:80
Aws::DataPipeline::Model::AddTagsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DataPipeline::Model::AddTagsRequest::GetPipelineId
const Aws::String & GetPipelineId() const
Definition: AddTagsRequest.h:45
Aws::DataPipeline::Model::AddTagsRequest::WithPipelineId
AddTagsRequest & WithPipelineId(const Aws::String &value)
Definition: AddTagsRequest.h:70
Aws::DataPipeline::Model::AddTagsRequest::WithTags
AddTagsRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: AddTagsRequest.h:106
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DataPipeline::Model::AddTagsRequest::AddTags
AddTagsRequest & AddTags(const Tag &value)
Definition: AddTagsRequest.h:116
AWSVector.h
Tag.h
Aws::DataPipeline::Model::AddTagsRequest::AddTagsRequest
AddTagsRequest()
DataPipeline_EXPORTS.h
Aws::DataPipeline::Model::AddTagsRequest::SetPipelineId
void SetPipelineId(const Aws::String &value)
Definition: AddTagsRequest.h:55
Aws::DataPipeline::Model::AddTagsRequest::WithPipelineId
AddTagsRequest & WithPipelineId(Aws::String &&value)
Definition: AddTagsRequest.h:75
DataPipelineRequest.h
Aws::DataPipeline::Model::AddTagsRequest::AddTags
AddTagsRequest & AddTags(Tag &&value)
Definition: AddTagsRequest.h:121
AWSString.h
Aws::DataPipeline::Model::AddTagsRequest::PipelineIdHasBeenSet
bool PipelineIdHasBeenSet() const
Definition: AddTagsRequest.h:50
Aws::DataPipeline::Model::AddTagsRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: AddTagsRequest.h:91
Aws::DataPipeline::Model::AddTagsRequest::SetPipelineId
void SetPipelineId(Aws::String &&value)
Definition: AddTagsRequest.h:60
Aws::DataPipeline::Model::AddTagsRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: AddTagsRequest.h:101
Aws
Definition: AccessManagementClient.h:15
AWS_DATAPIPELINE_API
#define AWS_DATAPIPELINE_API
Definition: DataPipeline_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataPipeline::Model::AddTagsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DataPipeline::DataPipelineRequest
Definition: DataPipelineRequest.h:17
Aws::DataPipeline::Model::Tag
Definition: Tag.h:37
Aws::DataPipeline::Model::AddTagsRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: AddTagsRequest.h:96
Aws::DataPipeline::Model::AddTagsRequest
Definition: AddTagsRequest.h:27
Aws::DataPipeline::Model::AddTagsRequest::WithTags
AddTagsRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: AddTagsRequest.h:111
Aws::DataPipeline::Model::AddTagsRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: AddTagsRequest.h:86