AWS SDK for C++  1.9.1
AWS SDK for C++
AddPermissionRequest.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>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SQS
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "AddPermission"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
47  inline const Aws::String& GetQueueUrl() const{ return m_queueUrl; }
48 
53  inline bool QueueUrlHasBeenSet() const { return m_queueUrlHasBeenSet; }
54 
59  inline void SetQueueUrl(const Aws::String& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
60 
65  inline void SetQueueUrl(Aws::String&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = std::move(value); }
66 
71  inline void SetQueueUrl(const char* value) { m_queueUrlHasBeenSet = true; m_queueUrl.assign(value); }
72 
77  inline AddPermissionRequest& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;}
78 
83  inline AddPermissionRequest& WithQueueUrl(Aws::String&& value) { SetQueueUrl(std::move(value)); return *this;}
84 
89  inline AddPermissionRequest& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;}
90 
91 
98  inline const Aws::String& GetLabel() const{ return m_label; }
99 
106  inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
107 
114  inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; }
115 
122  inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
123 
130  inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); }
131 
138  inline AddPermissionRequest& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
139 
146  inline AddPermissionRequest& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;}
147 
154  inline AddPermissionRequest& WithLabel(const char* value) { SetLabel(value); return *this;}
155 
156 
167  inline const Aws::Vector<Aws::String>& GetAWSAccountIds() const{ return m_aWSAccountIds; }
168 
179  inline bool AWSAccountIdsHasBeenSet() const { return m_aWSAccountIdsHasBeenSet; }
180 
191  inline void SetAWSAccountIds(const Aws::Vector<Aws::String>& value) { m_aWSAccountIdsHasBeenSet = true; m_aWSAccountIds = value; }
192 
203  inline void SetAWSAccountIds(Aws::Vector<Aws::String>&& value) { m_aWSAccountIdsHasBeenSet = true; m_aWSAccountIds = std::move(value); }
204 
215  inline AddPermissionRequest& WithAWSAccountIds(const Aws::Vector<Aws::String>& value) { SetAWSAccountIds(value); return *this;}
216 
227  inline AddPermissionRequest& WithAWSAccountIds(Aws::Vector<Aws::String>&& value) { SetAWSAccountIds(std::move(value)); return *this;}
228 
239  inline AddPermissionRequest& AddAWSAccountIds(const Aws::String& value) { m_aWSAccountIdsHasBeenSet = true; m_aWSAccountIds.push_back(value); return *this; }
240 
251  inline AddPermissionRequest& AddAWSAccountIds(Aws::String&& value) { m_aWSAccountIdsHasBeenSet = true; m_aWSAccountIds.push_back(std::move(value)); return *this; }
252 
263  inline AddPermissionRequest& AddAWSAccountIds(const char* value) { m_aWSAccountIdsHasBeenSet = true; m_aWSAccountIds.push_back(value); return *this; }
264 
265 
279  inline const Aws::Vector<Aws::String>& GetActions() const{ return m_actions; }
280 
294  inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
295 
309  inline void SetActions(const Aws::Vector<Aws::String>& value) { m_actionsHasBeenSet = true; m_actions = value; }
310 
324  inline void SetActions(Aws::Vector<Aws::String>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
325 
339  inline AddPermissionRequest& WithActions(const Aws::Vector<Aws::String>& value) { SetActions(value); return *this;}
340 
354  inline AddPermissionRequest& WithActions(Aws::Vector<Aws::String>&& value) { SetActions(std::move(value)); return *this;}
355 
369  inline AddPermissionRequest& AddActions(const Aws::String& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
370 
384  inline AddPermissionRequest& AddActions(Aws::String&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
385 
399  inline AddPermissionRequest& AddActions(const char* value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
400 
401  private:
402 
403  Aws::String m_queueUrl;
404  bool m_queueUrlHasBeenSet;
405 
406  Aws::String m_label;
407  bool m_labelHasBeenSet;
408 
409  Aws::Vector<Aws::String> m_aWSAccountIds;
410  bool m_aWSAccountIdsHasBeenSet;
411 
412  Aws::Vector<Aws::String> m_actions;
413  bool m_actionsHasBeenSet;
414  };
415 
416 } // namespace Model
417 } // namespace SQS
418 } // namespace Aws
Aws::SQS::Model::AddPermissionRequest::SetActions
void SetActions(const Aws::Vector< Aws::String > &value)
Definition: AddPermissionRequest.h:309
Aws::Http::URI
Definition: URI.h:32
Aws::SQS::Model::AddPermissionRequest::WithQueueUrl
AddPermissionRequest & WithQueueUrl(const Aws::String &value)
Definition: AddPermissionRequest.h:77
Aws::SQS::Model::AddPermissionRequest::WithAWSAccountIds
AddPermissionRequest & WithAWSAccountIds(Aws::Vector< Aws::String > &&value)
Definition: AddPermissionRequest.h:227
Aws::SQS::Model::AddPermissionRequest
Definition: AddPermissionRequest.h:26
Aws::SQS::Model::AddPermissionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SQS::Model::AddPermissionRequest::LabelHasBeenSet
bool LabelHasBeenSet() const
Definition: AddPermissionRequest.h:106
Aws::SQS::Model::AddPermissionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddPermissionRequest.h:34
Aws::SQS::Model::AddPermissionRequest::SetAWSAccountIds
void SetAWSAccountIds(const Aws::Vector< Aws::String > &value)
Definition: AddPermissionRequest.h:191
Aws::SQS::Model::AddPermissionRequest::SetLabel
void SetLabel(const Aws::String &value)
Definition: AddPermissionRequest.h:114
Aws::SQS::Model::AddPermissionRequest::GetActions
const Aws::Vector< Aws::String > & GetActions() const
Definition: AddPermissionRequest.h:279
Aws::SQS::Model::AddPermissionRequest::WithQueueUrl
AddPermissionRequest & WithQueueUrl(const char *value)
Definition: AddPermissionRequest.h:89
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::SQS::Model::AddPermissionRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SQS::Model::AddPermissionRequest::WithAWSAccountIds
AddPermissionRequest & WithAWSAccountIds(const Aws::Vector< Aws::String > &value)
Definition: AddPermissionRequest.h:215
Aws::SQS::Model::AddPermissionRequest::SetLabel
void SetLabel(Aws::String &&value)
Definition: AddPermissionRequest.h:122
Aws::SQS::Model::AddPermissionRequest::AddAWSAccountIds
AddPermissionRequest & AddAWSAccountIds(const char *value)
Definition: AddPermissionRequest.h:263
Aws::SQS::Model::AddPermissionRequest::ActionsHasBeenSet
bool ActionsHasBeenSet() const
Definition: AddPermissionRequest.h:294
Aws::SQS::Model::AddPermissionRequest::AddAWSAccountIds
AddPermissionRequest & AddAWSAccountIds(const Aws::String &value)
Definition: AddPermissionRequest.h:239
Aws::SQS::Model::AddPermissionRequest::GetAWSAccountIds
const Aws::Vector< Aws::String > & GetAWSAccountIds() const
Definition: AddPermissionRequest.h:167
Aws::SQS::Model::AddPermissionRequest::SetActions
void SetActions(Aws::Vector< Aws::String > &&value)
Definition: AddPermissionRequest.h:324
Aws::SQS::Model::AddPermissionRequest::SetQueueUrl
void SetQueueUrl(const Aws::String &value)
Definition: AddPermissionRequest.h:59
Aws::SQS::Model::AddPermissionRequest::SetLabel
void SetLabel(const char *value)
Definition: AddPermissionRequest.h:130
Aws::SQS::Model::AddPermissionRequest::AddActions
AddPermissionRequest & AddActions(Aws::String &&value)
Definition: AddPermissionRequest.h:384
Aws::SQS::Model::AddPermissionRequest::SetQueueUrl
void SetQueueUrl(const char *value)
Definition: AddPermissionRequest.h:71
Aws::SQS::Model::AddPermissionRequest::AddAWSAccountIds
AddPermissionRequest & AddAWSAccountIds(Aws::String &&value)
Definition: AddPermissionRequest.h:251
Aws::Chime::Model::NotificationTarget::NOT_SET
@ NOT_SET
AWSString.h
Aws::SQS::Model::AddPermissionRequest::QueueUrlHasBeenSet
bool QueueUrlHasBeenSet() const
Definition: AddPermissionRequest.h:53
Aws::SQS::Model::AddPermissionRequest::AddActions
AddPermissionRequest & AddActions(const char *value)
Definition: AddPermissionRequest.h:399
Aws::SQS::Model::AddPermissionRequest::AWSAccountIdsHasBeenSet
bool AWSAccountIdsHasBeenSet() const
Definition: AddPermissionRequest.h:179
AWS_SQS_API
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:28
Aws::SQS::Model::AddPermissionRequest::WithActions
AddPermissionRequest & WithActions(Aws::Vector< Aws::String > &&value)
Definition: AddPermissionRequest.h:354
Aws::SQS::Model::AddPermissionRequest::WithLabel
AddPermissionRequest & WithLabel(const char *value)
Definition: AddPermissionRequest.h:154
Aws::SQS::Model::AddPermissionRequest::WithActions
AddPermissionRequest & WithActions(const Aws::Vector< Aws::String > &value)
Definition: AddPermissionRequest.h:339
SQS_EXPORTS.h
Aws::SQS::SQSRequest
Definition: SQSRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::SQS::Model::AddPermissionRequest::AddPermissionRequest
AddPermissionRequest()
Aws::SQS::Model::AddPermissionRequest::GetQueueUrl
const Aws::String & GetQueueUrl() const
Definition: AddPermissionRequest.h:47
Aws::SQS::Model::AddPermissionRequest::SetQueueUrl
void SetQueueUrl(Aws::String &&value)
Definition: AddPermissionRequest.h:65
Aws::SQS::Model::AddPermissionRequest::SetAWSAccountIds
void SetAWSAccountIds(Aws::Vector< Aws::String > &&value)
Definition: AddPermissionRequest.h:203
Aws::SQS::Model::AddPermissionRequest::WithLabel
AddPermissionRequest & WithLabel(Aws::String &&value)
Definition: AddPermissionRequest.h:146
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SQS::Model::AddPermissionRequest::WithLabel
AddPermissionRequest & WithLabel(const Aws::String &value)
Definition: AddPermissionRequest.h:138
SQSRequest.h
Aws::SQS::Model::AddPermissionRequest::WithQueueUrl
AddPermissionRequest & WithQueueUrl(Aws::String &&value)
Definition: AddPermissionRequest.h:83
Aws::SQS::Model::AddPermissionRequest::AddActions
AddPermissionRequest & AddActions(const Aws::String &value)
Definition: AddPermissionRequest.h:369
Aws::SQS::Model::AddPermissionRequest::GetLabel
const Aws::String & GetLabel() const
Definition: AddPermissionRequest.h:98