AWS SDK for C++  1.8.127
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 
202  inline const Aws::Vector<QueueAttributeName>& GetAttributeNames() const{ return m_attributeNames; }
203 
313  inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; }
314 
424  inline void SetAttributeNames(const Aws::Vector<QueueAttributeName>& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = value; }
425 
535  inline void SetAttributeNames(Aws::Vector<QueueAttributeName>&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = std::move(value); }
536 
646  inline GetQueueAttributesRequest& WithAttributeNames(const Aws::Vector<QueueAttributeName>& value) { SetAttributeNames(value); return *this;}
647 
757  inline GetQueueAttributesRequest& WithAttributeNames(Aws::Vector<QueueAttributeName>&& value) { SetAttributeNames(std::move(value)); return *this;}
758 
868  inline GetQueueAttributesRequest& AddAttributeNames(const QueueAttributeName& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; }
869 
979  inline GetQueueAttributesRequest& AddAttributeNames(QueueAttributeName&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(std::move(value)); return *this; }
980 
981  private:
982 
983  Aws::String m_queueUrl;
984  bool m_queueUrlHasBeenSet;
985 
986  Aws::Vector<QueueAttributeName> m_attributeNames;
987  bool m_attributeNamesHasBeenSet;
988  };
989 
990 } // namespace Model
991 } // namespace SQS
992 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::SQS::Model::GetQueueAttributesRequest::GetQueueUrl
const Aws::String & GetQueueUrl() const
Definition: GetQueueAttributesRequest.h:48
Aws::SQS::Model::GetQueueAttributesRequest::SetAttributeNames
void SetAttributeNames(const Aws::Vector< QueueAttributeName > &value)
Definition: GetQueueAttributesRequest.h:424
Aws::SQS::Model::GetQueueAttributesRequest::SetAttributeNames
void SetAttributeNames(Aws::Vector< QueueAttributeName > &&value)
Definition: GetQueueAttributesRequest.h:535
Aws::SQS::Model::GetQueueAttributesRequest::SetQueueUrl
void SetQueueUrl(const Aws::String &value)
Definition: GetQueueAttributesRequest.h:60
Aws::SQS::Model::GetQueueAttributesRequest::SetQueueUrl
void SetQueueUrl(Aws::String &&value)
Definition: GetQueueAttributesRequest.h:66
Aws::SQS::Model::GetQueueAttributesRequest
Definition: GetQueueAttributesRequest.h:27
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::SQS::Model::GetQueueAttributesRequest::AddAttributeNames
GetQueueAttributesRequest & AddAttributeNames(QueueAttributeName &&value)
Definition: GetQueueAttributesRequest.h:979
Aws::SQS::Model::GetQueueAttributesRequest::WithQueueUrl
GetQueueAttributesRequest & WithQueueUrl(Aws::String &&value)
Definition: GetQueueAttributesRequest.h:84
Aws::SQS::Model::GetQueueAttributesRequest::AttributeNamesHasBeenSet
bool AttributeNamesHasBeenSet() const
Definition: GetQueueAttributesRequest.h:313
Aws::SQS::Model::GetQueueAttributesRequest::WithQueueUrl
GetQueueAttributesRequest & WithQueueUrl(const char *value)
Definition: GetQueueAttributesRequest.h:90
Aws::SQS::Model::GetQueueAttributesRequest::WithQueueUrl
GetQueueAttributesRequest & WithQueueUrl(const Aws::String &value)
Definition: GetQueueAttributesRequest.h:78
Aws::SQS::Model::GetQueueAttributesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SQS::Model::GetQueueAttributesRequest::GetAttributeNames
const Aws::Vector< QueueAttributeName > & GetAttributeNames() const
Definition: GetQueueAttributesRequest.h:202
Aws::SQS::Model::QueueAttributeName
QueueAttributeName
Definition: QueueAttributeName.h:17
Aws::SQS::Model::GetQueueAttributesRequest::GetQueueAttributesRequest
GetQueueAttributesRequest()
Aws::Chime::Model::NotificationTarget::NOT_SET
@ NOT_SET
Aws::SQS::Model::GetQueueAttributesRequest::WithAttributeNames
GetQueueAttributesRequest & WithAttributeNames(const Aws::Vector< QueueAttributeName > &value)
Definition: GetQueueAttributesRequest.h:646
AWSString.h
AWS_SQS_API
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:28
QueueAttributeName.h
SQS_EXPORTS.h
Aws::SQS::Model::GetQueueAttributesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SQS::SQSRequest
Definition: SQSRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::SQS::Model::GetQueueAttributesRequest::WithAttributeNames
GetQueueAttributesRequest & WithAttributeNames(Aws::Vector< QueueAttributeName > &&value)
Definition: GetQueueAttributesRequest.h:757
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SQS::Model::GetQueueAttributesRequest::AddAttributeNames
GetQueueAttributesRequest & AddAttributeNames(const QueueAttributeName &value)
Definition: GetQueueAttributesRequest.h:868
Aws::SQS::Model::GetQueueAttributesRequest::SetQueueUrl
void SetQueueUrl(const char *value)
Definition: GetQueueAttributesRequest.h:72
Aws::SQS::Model::GetQueueAttributesRequest::QueueUrlHasBeenSet
bool QueueUrlHasBeenSet() const
Definition: GetQueueAttributesRequest.h:54
SQSRequest.h
Aws::SQS::Model::GetQueueAttributesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetQueueAttributesRequest.h:35