AWS SDK for C++  1.8.71
AWS SDK for C++
GetQueueAttributesRequest.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>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SQS
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 "GetQueueAttributes"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
48  inline const Aws::String& GetQueueUrl() const{ return m_queueUrl; }
49 
54  inline bool QueueUrlHasBeenSet() const { return m_queueUrlHasBeenSet; }
55 
60  inline void SetQueueUrl(const Aws::String& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
61 
66  inline void SetQueueUrl(Aws::String&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = std::move(value); }
67 
72  inline void SetQueueUrl(const char* value) { m_queueUrlHasBeenSet = true; m_queueUrl.assign(value); }
73 
78  inline GetQueueAttributesRequest& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;}
79 
84  inline GetQueueAttributesRequest& WithQueueUrl(Aws::String&& value) { SetQueueUrl(std::move(value)); return *this;}
85 
90  inline GetQueueAttributesRequest& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;}
91 
92 
174  inline const Aws::Vector<QueueAttributeName>& GetAttributeNames() const{ return m_attributeNames; }
175 
257  inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; }
258 
340  inline void SetAttributeNames(const Aws::Vector<QueueAttributeName>& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = value; }
341 
423  inline void SetAttributeNames(Aws::Vector<QueueAttributeName>&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = std::move(value); }
424 
506  inline GetQueueAttributesRequest& WithAttributeNames(const Aws::Vector<QueueAttributeName>& value) { SetAttributeNames(value); return *this;}
507 
589  inline GetQueueAttributesRequest& WithAttributeNames(Aws::Vector<QueueAttributeName>&& value) { SetAttributeNames(std::move(value)); return *this;}
590 
672  inline GetQueueAttributesRequest& AddAttributeNames(const QueueAttributeName& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; }
673 
755  inline GetQueueAttributesRequest& AddAttributeNames(QueueAttributeName&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(std::move(value)); return *this; }
756 
757  private:
758 
759  Aws::String m_queueUrl;
760  bool m_queueUrlHasBeenSet;
761 
762  Aws::Vector<QueueAttributeName> m_attributeNames;
763  bool m_attributeNamesHasBeenSet;
764  };
765 
766 } // namespace Model
767 } // namespace SQS
768 } // namespace Aws
virtual const char * GetServiceRequestName() const override
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
const Aws::Vector< QueueAttributeName > & GetAttributeNames() const
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:28
GetQueueAttributesRequest & AddAttributeNames(const QueueAttributeName &value)