AWS SDK for C++  0.12.9
AWS SDK for C++
GetQueueAttributesRequest.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 GetQueueAttributesRequest& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;}
67 
72  inline GetQueueAttributesRequest& WithQueueUrl(Aws::String&& value) { SetQueueUrl(value); return *this;}
73 
78  inline GetQueueAttributesRequest& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;}
79 
120  inline const Aws::Vector<QueueAttributeName>& GetAttributeNames() const{ return m_attributeNames; }
121 
162  inline void SetAttributeNames(const Aws::Vector<QueueAttributeName>& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = value; }
163 
204  inline void SetAttributeNames(Aws::Vector<QueueAttributeName>&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = value; }
205 
246  inline GetQueueAttributesRequest& WithAttributeNames(const Aws::Vector<QueueAttributeName>& value) { SetAttributeNames(value); return *this;}
247 
288  inline GetQueueAttributesRequest& WithAttributeNames(Aws::Vector<QueueAttributeName>&& value) { SetAttributeNames(value); return *this;}
289 
330  inline GetQueueAttributesRequest& AddAttributeNames(const QueueAttributeName& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; }
331 
372  inline GetQueueAttributesRequest& AddAttributeNames(QueueAttributeName&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; }
373 
374  private:
375  Aws::String m_queueUrl;
376  bool m_queueUrlHasBeenSet;
377  Aws::Vector<QueueAttributeName> m_attributeNames;
378  bool m_attributeNamesHasBeenSet;
379  };
380 
381 } // namespace Model
382 } // namespace SQS
383 } // namespace Aws
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
GetQueueAttributesRequest & WithQueueUrl(const char *value)
GetQueueAttributesRequest & AddAttributeNames(QueueAttributeName &&value)
GetQueueAttributesRequest & WithAttributeNames(Aws::Vector< QueueAttributeName > &&value)
GetQueueAttributesRequest & WithQueueUrl(const Aws::String &value)
void SetAttributeNames(const Aws::Vector< QueueAttributeName > &value)
void SetAttributeNames(Aws::Vector< QueueAttributeName > &&value)
GetQueueAttributesRequest & WithQueueUrl(Aws::String &&value)
GetQueueAttributesRequest & WithAttributeNames(const Aws::Vector< QueueAttributeName > &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
GetQueueAttributesRequest & AddAttributeNames(const QueueAttributeName &value)
const Aws::Vector< QueueAttributeName > & GetAttributeNames() const
JSON (JavaScript Object Notation).