AWS SDK for C++  1.9.1
AWS SDK for C++
RemovePermissionRequest.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 "RemovePermission"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
46  inline const Aws::String& GetQueueUrl() const{ return m_queueUrl; }
47 
52  inline bool QueueUrlHasBeenSet() const { return m_queueUrlHasBeenSet; }
53 
58  inline void SetQueueUrl(const Aws::String& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
59 
64  inline void SetQueueUrl(Aws::String&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = std::move(value); }
65 
70  inline void SetQueueUrl(const char* value) { m_queueUrlHasBeenSet = true; m_queueUrl.assign(value); }
71 
76  inline RemovePermissionRequest& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;}
77 
82  inline RemovePermissionRequest& WithQueueUrl(Aws::String&& value) { SetQueueUrl(std::move(value)); return *this;}
83 
88  inline RemovePermissionRequest& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;}
89 
90 
95  inline const Aws::String& GetLabel() const{ return m_label; }
96 
101  inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
102 
107  inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; }
108 
113  inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
114 
119  inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); }
120 
125  inline RemovePermissionRequest& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
126 
131  inline RemovePermissionRequest& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;}
132 
137  inline RemovePermissionRequest& WithLabel(const char* value) { SetLabel(value); return *this;}
138 
139  private:
140 
141  Aws::String m_queueUrl;
142  bool m_queueUrlHasBeenSet;
143 
144  Aws::String m_label;
145  bool m_labelHasBeenSet;
146  };
147 
148 } // namespace Model
149 } // namespace SQS
150 } // namespace Aws
Aws::SQS::Model::RemovePermissionRequest::SetQueueUrl
void SetQueueUrl(const char *value)
Definition: RemovePermissionRequest.h:70
Aws::Http::URI
Definition: URI.h:32
Aws::SQS::Model::RemovePermissionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SQS::Model::RemovePermissionRequest::SetQueueUrl
void SetQueueUrl(const Aws::String &value)
Definition: RemovePermissionRequest.h:58
Aws::SQS::Model::RemovePermissionRequest::WithLabel
RemovePermissionRequest & WithLabel(Aws::String &&value)
Definition: RemovePermissionRequest.h:131
Aws::SQS::Model::RemovePermissionRequest::SetLabel
void SetLabel(Aws::String &&value)
Definition: RemovePermissionRequest.h:113
Aws::SQS::Model::RemovePermissionRequest::WithQueueUrl
RemovePermissionRequest & WithQueueUrl(const char *value)
Definition: RemovePermissionRequest.h:88
Aws::SQS::Model::RemovePermissionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RemovePermissionRequest.h:33
Aws::SQS::Model::RemovePermissionRequest::WithLabel
RemovePermissionRequest & WithLabel(const Aws::String &value)
Definition: RemovePermissionRequest.h:125
Aws::SQS::Model::RemovePermissionRequest::SetLabel
void SetLabel(const char *value)
Definition: RemovePermissionRequest.h:119
Aws::SQS::Model::RemovePermissionRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SQS::Model::RemovePermissionRequest::SetQueueUrl
void SetQueueUrl(Aws::String &&value)
Definition: RemovePermissionRequest.h:64
Aws::SQS::Model::RemovePermissionRequest::WithLabel
RemovePermissionRequest & WithLabel(const char *value)
Definition: RemovePermissionRequest.h:137
Aws::Chime::Model::NotificationTarget::NOT_SET
@ NOT_SET
AWSString.h
Aws::SQS::Model::RemovePermissionRequest::GetLabel
const Aws::String & GetLabel() const
Definition: RemovePermissionRequest.h:95
AWS_SQS_API
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:28
SQS_EXPORTS.h
Aws::SQS::Model::RemovePermissionRequest
Definition: RemovePermissionRequest.h:25
Aws::SQS::SQSRequest
Definition: SQSRequest.h:17
Aws::SQS::Model::RemovePermissionRequest::WithQueueUrl
RemovePermissionRequest & WithQueueUrl(const Aws::String &value)
Definition: RemovePermissionRequest.h:76
Aws::SQS::Model::RemovePermissionRequest::RemovePermissionRequest
RemovePermissionRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::SQS::Model::RemovePermissionRequest::SetLabel
void SetLabel(const Aws::String &value)
Definition: RemovePermissionRequest.h:107
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SQS::Model::RemovePermissionRequest::QueueUrlHasBeenSet
bool QueueUrlHasBeenSet() const
Definition: RemovePermissionRequest.h:52
SQSRequest.h
Aws::SQS::Model::RemovePermissionRequest::GetQueueUrl
const Aws::String & GetQueueUrl() const
Definition: RemovePermissionRequest.h:46
Aws::SQS::Model::RemovePermissionRequest::WithQueueUrl
RemovePermissionRequest & WithQueueUrl(Aws::String &&value)
Definition: RemovePermissionRequest.h:82
Aws::SQS::Model::RemovePermissionRequest::LabelHasBeenSet
bool LabelHasBeenSet() const
Definition: RemovePermissionRequest.h:101