AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AddPermissionRequest.h
1
6#pragma once
7#include <aws/sqs/SQS_EXPORTS.h>
8#include <aws/sqs/SQSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SQS
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_SQS_API AddPermissionRequest();
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_SQS_API Aws::String SerializePayload() const override;
37
39
40
42
46 inline const Aws::String& GetQueueUrl() const{ return m_queueUrl; }
47 inline bool QueueUrlHasBeenSet() const { return m_queueUrlHasBeenSet; }
48 inline void SetQueueUrl(const Aws::String& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
49 inline void SetQueueUrl(Aws::String&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = std::move(value); }
50 inline void SetQueueUrl(const char* value) { m_queueUrlHasBeenSet = true; m_queueUrl.assign(value); }
51 inline AddPermissionRequest& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;}
52 inline AddPermissionRequest& WithQueueUrl(Aws::String&& value) { SetQueueUrl(std::move(value)); return *this;}
53 inline AddPermissionRequest& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;}
55
57
63 inline const Aws::String& GetLabel() const{ return m_label; }
64 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
65 inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; }
66 inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
67 inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); }
68 inline AddPermissionRequest& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
69 inline AddPermissionRequest& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;}
70 inline AddPermissionRequest& WithLabel(const char* value) { SetLabel(value); return *this;}
72
74
83 inline const Aws::Vector<Aws::String>& GetAWSAccountIds() const{ return m_aWSAccountIds; }
84 inline bool AWSAccountIdsHasBeenSet() const { return m_aWSAccountIdsHasBeenSet; }
85 inline void SetAWSAccountIds(const Aws::Vector<Aws::String>& value) { m_aWSAccountIdsHasBeenSet = true; m_aWSAccountIds = value; }
86 inline void SetAWSAccountIds(Aws::Vector<Aws::String>&& value) { m_aWSAccountIdsHasBeenSet = true; m_aWSAccountIds = std::move(value); }
88 inline AddPermissionRequest& WithAWSAccountIds(Aws::Vector<Aws::String>&& value) { SetAWSAccountIds(std::move(value)); return *this;}
89 inline AddPermissionRequest& AddAWSAccountIds(const Aws::String& value) { m_aWSAccountIdsHasBeenSet = true; m_aWSAccountIds.push_back(value); return *this; }
90 inline AddPermissionRequest& AddAWSAccountIds(Aws::String&& value) { m_aWSAccountIdsHasBeenSet = true; m_aWSAccountIds.push_back(std::move(value)); return *this; }
91 inline AddPermissionRequest& AddAWSAccountIds(const char* value) { m_aWSAccountIdsHasBeenSet = true; m_aWSAccountIds.push_back(value); return *this; }
93
95
108 inline const Aws::Vector<Aws::String>& GetActions() const{ return m_actions; }
109 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
110 inline void SetActions(const Aws::Vector<Aws::String>& value) { m_actionsHasBeenSet = true; m_actions = value; }
111 inline void SetActions(Aws::Vector<Aws::String>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
112 inline AddPermissionRequest& WithActions(const Aws::Vector<Aws::String>& value) { SetActions(value); return *this;}
113 inline AddPermissionRequest& WithActions(Aws::Vector<Aws::String>&& value) { SetActions(std::move(value)); return *this;}
114 inline AddPermissionRequest& AddActions(const Aws::String& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
115 inline AddPermissionRequest& AddActions(Aws::String&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
116 inline AddPermissionRequest& AddActions(const char* value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
118 private:
119
120 Aws::String m_queueUrl;
121 bool m_queueUrlHasBeenSet = false;
122
123 Aws::String m_label;
124 bool m_labelHasBeenSet = false;
125
126 Aws::Vector<Aws::String> m_aWSAccountIds;
127 bool m_aWSAccountIdsHasBeenSet = false;
128
129 Aws::Vector<Aws::String> m_actions;
130 bool m_actionsHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace SQS
135} // namespace Aws
const Aws::String & GetQueueUrl() const
AddPermissionRequest & AddAWSAccountIds(const Aws::String &value)
AddPermissionRequest & AddAWSAccountIds(const char *value)
AddPermissionRequest & AddActions(const char *value)
AddPermissionRequest & WithLabel(const Aws::String &value)
void SetActions(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetActions() const
AddPermissionRequest & WithLabel(Aws::String &&value)
AWS_SQS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AddPermissionRequest & AddAWSAccountIds(Aws::String &&value)
AddPermissionRequest & WithAWSAccountIds(Aws::Vector< Aws::String > &&value)
AddPermissionRequest & WithAWSAccountIds(const Aws::Vector< Aws::String > &value)
void SetAWSAccountIds(Aws::Vector< Aws::String > &&value)
AddPermissionRequest & AddActions(Aws::String &&value)
AddPermissionRequest & WithLabel(const char *value)
AddPermissionRequest & AddActions(const Aws::String &value)
AddPermissionRequest & WithQueueUrl(const char *value)
AddPermissionRequest & WithActions(Aws::Vector< Aws::String > &&value)
void SetLabel(const Aws::String &value)
void SetQueueUrl(const Aws::String &value)
AddPermissionRequest & WithQueueUrl(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetAWSAccountIds(const Aws::Vector< Aws::String > &value)
AddPermissionRequest & WithQueueUrl(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAWSAccountIds() const
AWS_SQS_API Aws::String SerializePayload() const override
AddPermissionRequest & WithActions(const Aws::Vector< Aws::String > &value)
void SetActions(Aws::Vector< Aws::String > &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector