AWS SDK for C++  0.12.9
AWS SDK for C++
SetQueueAttributesRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/sqs/SQS_EXPORTS.h>
17 #include <aws/sqs/SQSRequest.h>
21 
22 namespace Aws
23 {
24 namespace SQS
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
42  inline const Aws::String& GetQueueUrl() const{ return m_queueUrl; }
43 
48  inline void SetQueueUrl(const Aws::String& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
49 
54  inline void SetQueueUrl(Aws::String&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
55 
60  inline void SetQueueUrl(const char* value) { m_queueUrlHasBeenSet = true; m_queueUrl.assign(value); }
61 
66  inline SetQueueAttributesRequest& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;}
67 
72  inline SetQueueAttributesRequest& WithQueueUrl(Aws::String&& value) { SetQueueUrl(value); return *this;}
73 
78  inline SetQueueAttributesRequest& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;}
79 
114  inline const Aws::Map<QueueAttributeName, Aws::String>& GetAttributes() const{ return m_attributes; }
115 
150  inline void SetAttributes(const Aws::Map<QueueAttributeName, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
151 
186  inline void SetAttributes(Aws::Map<QueueAttributeName, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
187 
222  inline SetQueueAttributesRequest& WithAttributes(const Aws::Map<QueueAttributeName, Aws::String>& value) { SetAttributes(value); return *this;}
223 
258  inline SetQueueAttributesRequest& WithAttributes(Aws::Map<QueueAttributeName, Aws::String>&& value) { SetAttributes(value); return *this;}
259 
294  inline SetQueueAttributesRequest& AddAttributes(const QueueAttributeName& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
295 
330  inline SetQueueAttributesRequest& AddAttributes(QueueAttributeName&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
331 
366  inline SetQueueAttributesRequest& AddAttributes(const QueueAttributeName& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
367 
402  inline SetQueueAttributesRequest& AddAttributes(QueueAttributeName&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
403 
438  inline SetQueueAttributesRequest& AddAttributes(QueueAttributeName&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
439 
474  inline SetQueueAttributesRequest& AddAttributes(const QueueAttributeName& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
475 
476  private:
477  Aws::String m_queueUrl;
478  bool m_queueUrlHasBeenSet;
480  bool m_attributesHasBeenSet;
481  };
482 
483 } // namespace Model
484 } // namespace SQS
485 } // namespace Aws
const Aws::Map< QueueAttributeName, Aws::String > & GetAttributes() const
SetQueueAttributesRequest & AddAttributes(QueueAttributeName &&key, Aws::String &&value)
SetQueueAttributesRequest & WithAttributes(Aws::Map< QueueAttributeName, Aws::String > &&value)
void SetAttributes(Aws::Map< QueueAttributeName, Aws::String > &&value)
SetQueueAttributesRequest & AddAttributes(const QueueAttributeName &key, const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
SetQueueAttributesRequest & AddAttributes(const QueueAttributeName &key, Aws::String &&value)
SetQueueAttributesRequest & WithQueueUrl(Aws::String &&value)
void SetAttributes(const Aws::Map< QueueAttributeName, Aws::String > &value)
SetQueueAttributesRequest & WithQueueUrl(const char *value)
SetQueueAttributesRequest & WithQueueUrl(const Aws::String &value)
SetQueueAttributesRequest & AddAttributes(QueueAttributeName &&key, const Aws::String &value)
SetQueueAttributesRequest & AddAttributes(QueueAttributeName &&key, const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:34
SetQueueAttributesRequest & WithAttributes(const Aws::Map< QueueAttributeName, Aws::String > &value)
SetQueueAttributesRequest & AddAttributes(const QueueAttributeName &key, const char *value)
JSON (JavaScript Object Notation).