AWS SDK for C++  1.8.71
AWS SDK for C++
TagQueueRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sqs/SQS_EXPORTS.h>
8 #include <aws/sqs/SQSRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SQS
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 "TagQueue"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::String& GetQueueUrl() const{ return m_queueUrl; }
44 
48  inline bool QueueUrlHasBeenSet() const { return m_queueUrlHasBeenSet; }
49 
53  inline void SetQueueUrl(const Aws::String& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
54 
58  inline void SetQueueUrl(Aws::String&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = std::move(value); }
59 
63  inline void SetQueueUrl(const char* value) { m_queueUrlHasBeenSet = true; m_queueUrl.assign(value); }
64 
68  inline TagQueueRequest& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;}
69 
73  inline TagQueueRequest& WithQueueUrl(Aws::String&& value) { SetQueueUrl(std::move(value)); return *this;}
74 
78  inline TagQueueRequest& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;}
79 
80 
84  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
85 
89  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 
94  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
95 
99  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
100 
104  inline TagQueueRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
105 
109  inline TagQueueRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
110 
114  inline TagQueueRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
115 
119  inline TagQueueRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
120 
124  inline TagQueueRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
125 
129  inline TagQueueRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
130 
134  inline TagQueueRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
135 
139  inline TagQueueRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
140 
144  inline TagQueueRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
145 
146  private:
147 
148  Aws::String m_queueUrl;
149  bool m_queueUrlHasBeenSet;
150 
152  bool m_tagsHasBeenSet;
153  };
154 
155 } // namespace Model
156 } // namespace SQS
157 } // namespace Aws
virtual const char * GetServiceRequestName() const override
TagQueueRequest & AddTags(Aws::String &&key, const Aws::String &value)
const Aws::String & GetQueueUrl() const
TagQueueRequest & AddTags(const char *key, const char *value)
TagQueueRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
TagQueueRequest & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetQueueUrl(const char *value)
void SetQueueUrl(Aws::String &&value)
TagQueueRequest & WithQueueUrl(Aws::String &&value)
TagQueueRequest & WithQueueUrl(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
TagQueueRequest & AddTags(const Aws::String &key, const Aws::String &value)
TagQueueRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetQueueUrl(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TagQueueRequest & WithQueueUrl(const char *value)
TagQueueRequest & AddTags(const char *key, Aws::String &&value)
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:28
TagQueueRequest & AddTags(const Aws::String &key, Aws::String &&value)
TagQueueRequest & AddTags(Aws::String &&key, const char *value)