AWS SDK for C++  0.14.3
AWS SDK for C++
CreateQueueRequest.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& GetQueueName() const{ return m_queueName; }
43 
48  inline void SetQueueName(const Aws::String& value) { m_queueNameHasBeenSet = true; m_queueName = value; }
49 
54  inline void SetQueueName(Aws::String&& value) { m_queueNameHasBeenSet = true; m_queueName = value; }
55 
60  inline void SetQueueName(const char* value) { m_queueNameHasBeenSet = true; m_queueName.assign(value); }
61 
66  inline CreateQueueRequest& WithQueueName(const Aws::String& value) { SetQueueName(value); return *this;}
67 
72  inline CreateQueueRequest& WithQueueName(Aws::String&& value) { SetQueueName(value); return *this;}
73 
78  inline CreateQueueRequest& WithQueueName(const char* value) { SetQueueName(value); return *this;}
79 
116  inline const Aws::Map<QueueAttributeName, Aws::String>& GetAttributes() const{ return m_attributes; }
117 
154  inline void SetAttributes(const Aws::Map<QueueAttributeName, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
155 
192  inline void SetAttributes(Aws::Map<QueueAttributeName, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
193 
230  inline CreateQueueRequest& WithAttributes(const Aws::Map<QueueAttributeName, Aws::String>& value) { SetAttributes(value); return *this;}
231 
268  inline CreateQueueRequest& WithAttributes(Aws::Map<QueueAttributeName, Aws::String>&& value) { SetAttributes(value); return *this;}
269 
306  inline CreateQueueRequest& AddAttributes(const QueueAttributeName& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
307 
344  inline CreateQueueRequest& AddAttributes(QueueAttributeName&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
345 
382  inline CreateQueueRequest& AddAttributes(const QueueAttributeName& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
383 
420  inline CreateQueueRequest& AddAttributes(QueueAttributeName&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
421 
458  inline CreateQueueRequest& AddAttributes(QueueAttributeName&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
459 
496  inline CreateQueueRequest& AddAttributes(const QueueAttributeName& key, const char* value) { m_attributesHasBeenSet = true; m_attributes[key] = value; return *this; }
497 
498  private:
499  Aws::String m_queueName;
500  bool m_queueNameHasBeenSet;
502  bool m_attributesHasBeenSet;
503  };
504 
505 } // namespace Model
506 } // namespace SQS
507 } // namespace Aws
CreateQueueRequest & AddAttributes(QueueAttributeName &&key, const char *value)
void SetQueueName(const char *value)
CreateQueueRequest & WithQueueName(const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
const Aws::Map< QueueAttributeName, Aws::String > & GetAttributes() const
void SetQueueName(Aws::String &&value)
CreateQueueRequest & AddAttributes(const QueueAttributeName &key, const Aws::String &value)
void SetAttributes(const Aws::Map< QueueAttributeName, Aws::String > &value)
CreateQueueRequest & WithQueueName(Aws::String &&value)
CreateQueueRequest & AddAttributes(const QueueAttributeName &key, const char *value)
void SetQueueName(const Aws::String &value)
CreateQueueRequest & WithQueueName(const char *value)
CreateQueueRequest & WithAttributes(Aws::Map< QueueAttributeName, Aws::String > &&value)
CreateQueueRequest & WithAttributes(const Aws::Map< QueueAttributeName, Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetAttributes(Aws::Map< QueueAttributeName, Aws::String > &&value)
CreateQueueRequest & AddAttributes(QueueAttributeName &&key, Aws::String &&value)
CreateQueueRequest & AddAttributes(QueueAttributeName &&key, const Aws::String &value)
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:37
const Aws::String & GetQueueName() const
CreateQueueRequest & AddAttributes(const QueueAttributeName &key, Aws::String &&value)
JSON (JavaScript Object Notation).