AWS SDK for C++  1.9.1
AWS SDK for C++
GetQueueUrlRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SQS
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "GetQueueUrl"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
47  inline const Aws::String& GetQueueName() const{ return m_queueName; }
48 
54  inline bool QueueNameHasBeenSet() const { return m_queueNameHasBeenSet; }
55 
61  inline void SetQueueName(const Aws::String& value) { m_queueNameHasBeenSet = true; m_queueName = value; }
62 
68  inline void SetQueueName(Aws::String&& value) { m_queueNameHasBeenSet = true; m_queueName = std::move(value); }
69 
75  inline void SetQueueName(const char* value) { m_queueNameHasBeenSet = true; m_queueName.assign(value); }
76 
82  inline GetQueueUrlRequest& WithQueueName(const Aws::String& value) { SetQueueName(value); return *this;}
83 
89  inline GetQueueUrlRequest& WithQueueName(Aws::String&& value) { SetQueueName(std::move(value)); return *this;}
90 
96  inline GetQueueUrlRequest& WithQueueName(const char* value) { SetQueueName(value); return *this;}
97 
98 
102  inline const Aws::String& GetQueueOwnerAWSAccountId() const{ return m_queueOwnerAWSAccountId; }
103 
107  inline bool QueueOwnerAWSAccountIdHasBeenSet() const { return m_queueOwnerAWSAccountIdHasBeenSet; }
108 
112  inline void SetQueueOwnerAWSAccountId(const Aws::String& value) { m_queueOwnerAWSAccountIdHasBeenSet = true; m_queueOwnerAWSAccountId = value; }
113 
117  inline void SetQueueOwnerAWSAccountId(Aws::String&& value) { m_queueOwnerAWSAccountIdHasBeenSet = true; m_queueOwnerAWSAccountId = std::move(value); }
118 
122  inline void SetQueueOwnerAWSAccountId(const char* value) { m_queueOwnerAWSAccountIdHasBeenSet = true; m_queueOwnerAWSAccountId.assign(value); }
123 
127  inline GetQueueUrlRequest& WithQueueOwnerAWSAccountId(const Aws::String& value) { SetQueueOwnerAWSAccountId(value); return *this;}
128 
132  inline GetQueueUrlRequest& WithQueueOwnerAWSAccountId(Aws::String&& value) { SetQueueOwnerAWSAccountId(std::move(value)); return *this;}
133 
137  inline GetQueueUrlRequest& WithQueueOwnerAWSAccountId(const char* value) { SetQueueOwnerAWSAccountId(value); return *this;}
138 
139  private:
140 
141  Aws::String m_queueName;
142  bool m_queueNameHasBeenSet;
143 
144  Aws::String m_queueOwnerAWSAccountId;
145  bool m_queueOwnerAWSAccountIdHasBeenSet;
146  };
147 
148 } // namespace Model
149 } // namespace SQS
150 } // namespace Aws
Aws::SQS::Model::GetQueueUrlRequest::WithQueueName
GetQueueUrlRequest & WithQueueName(Aws::String &&value)
Definition: GetQueueUrlRequest.h:89
Aws::SQS::Model::GetQueueUrlRequest::GetQueueName
const Aws::String & GetQueueName() const
Definition: GetQueueUrlRequest.h:47
Aws::Http::URI
Definition: URI.h:32
Aws::SQS::Model::GetQueueUrlRequest::WithQueueName
GetQueueUrlRequest & WithQueueName(const char *value)
Definition: GetQueueUrlRequest.h:96
Aws::SQS::Model::GetQueueUrlRequest
Definition: GetQueueUrlRequest.h:25
Aws::SQS::Model::GetQueueUrlRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SQS::Model::GetQueueUrlRequest::WithQueueOwnerAWSAccountId
GetQueueUrlRequest & WithQueueOwnerAWSAccountId(Aws::String &&value)
Definition: GetQueueUrlRequest.h:132
Aws::SQS::Model::GetQueueUrlRequest::QueueNameHasBeenSet
bool QueueNameHasBeenSet() const
Definition: GetQueueUrlRequest.h:54
Aws::SQS::Model::GetQueueUrlRequest::SetQueueName
void SetQueueName(const char *value)
Definition: GetQueueUrlRequest.h:75
Aws::SQS::Model::GetQueueUrlRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SQS::Model::GetQueueUrlRequest::SetQueueName
void SetQueueName(const Aws::String &value)
Definition: GetQueueUrlRequest.h:61
Aws::SQS::Model::GetQueueUrlRequest::SetQueueOwnerAWSAccountId
void SetQueueOwnerAWSAccountId(Aws::String &&value)
Definition: GetQueueUrlRequest.h:117
Aws::SQS::Model::GetQueueUrlRequest::SetQueueOwnerAWSAccountId
void SetQueueOwnerAWSAccountId(const char *value)
Definition: GetQueueUrlRequest.h:122
Aws::SQS::Model::GetQueueUrlRequest::WithQueueOwnerAWSAccountId
GetQueueUrlRequest & WithQueueOwnerAWSAccountId(const Aws::String &value)
Definition: GetQueueUrlRequest.h:127
Aws::SQS::Model::GetQueueUrlRequest::QueueOwnerAWSAccountIdHasBeenSet
bool QueueOwnerAWSAccountIdHasBeenSet() const
Definition: GetQueueUrlRequest.h:107
Aws::SQS::Model::GetQueueUrlRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetQueueUrlRequest.h:33
Aws::Chime::Model::NotificationTarget::NOT_SET
@ NOT_SET
AWSString.h
Aws::SQS::Model::GetQueueUrlRequest::WithQueueName
GetQueueUrlRequest & WithQueueName(const Aws::String &value)
Definition: GetQueueUrlRequest.h:82
AWS_SQS_API
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:28
Aws::SQS::Model::GetQueueUrlRequest::WithQueueOwnerAWSAccountId
GetQueueUrlRequest & WithQueueOwnerAWSAccountId(const char *value)
Definition: GetQueueUrlRequest.h:137
SQS_EXPORTS.h
Aws::SQS::SQSRequest
Definition: SQSRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::SQS::Model::GetQueueUrlRequest::GetQueueOwnerAWSAccountId
const Aws::String & GetQueueOwnerAWSAccountId() const
Definition: GetQueueUrlRequest.h:102
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SQSRequest.h
Aws::SQS::Model::GetQueueUrlRequest::SetQueueName
void SetQueueName(Aws::String &&value)
Definition: GetQueueUrlRequest.h:68
Aws::SQS::Model::GetQueueUrlRequest::SetQueueOwnerAWSAccountId
void SetQueueOwnerAWSAccountId(const Aws::String &value)
Definition: GetQueueUrlRequest.h:112
Aws::SQS::Model::GetQueueUrlRequest::GetQueueUrlRequest
GetQueueUrlRequest()