AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
AddPermissionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sqs/SQSRequest.h>
10#include <aws/sqs/SQS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SQS {
16namespace Model {
17
24 public:
25 AWS_SQS_API AddPermissionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "AddPermission"; }
32
33 AWS_SQS_API Aws::String SerializePayload() const override;
34
36
38
42 inline const Aws::String& GetQueueUrl() const { return m_queueUrl; }
43 inline bool QueueUrlHasBeenSet() const { return m_queueUrlHasBeenSet; }
44 template <typename QueueUrlT = Aws::String>
45 void SetQueueUrl(QueueUrlT&& value) {
46 m_queueUrlHasBeenSet = true;
47 m_queueUrl = std::forward<QueueUrlT>(value);
48 }
49 template <typename QueueUrlT = Aws::String>
50 AddPermissionRequest& WithQueueUrl(QueueUrlT&& value) {
51 SetQueueUrl(std::forward<QueueUrlT>(value));
52 return *this;
53 }
55
57
63 inline const Aws::String& GetLabel() const { return m_label; }
64 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
65 template <typename LabelT = Aws::String>
66 void SetLabel(LabelT&& value) {
67 m_labelHasBeenSet = true;
68 m_label = std::forward<LabelT>(value);
69 }
70 template <typename LabelT = Aws::String>
72 SetLabel(std::forward<LabelT>(value));
73 return *this;
74 }
76
78
87 inline const Aws::Vector<Aws::String>& GetAWSAccountIds() const { return m_aWSAccountIds; }
88 inline bool AWSAccountIdsHasBeenSet() const { return m_aWSAccountIdsHasBeenSet; }
89 template <typename AWSAccountIdsT = Aws::Vector<Aws::String>>
90 void SetAWSAccountIds(AWSAccountIdsT&& value) {
91 m_aWSAccountIdsHasBeenSet = true;
92 m_aWSAccountIds = std::forward<AWSAccountIdsT>(value);
93 }
94 template <typename AWSAccountIdsT = Aws::Vector<Aws::String>>
95 AddPermissionRequest& WithAWSAccountIds(AWSAccountIdsT&& value) {
96 SetAWSAccountIds(std::forward<AWSAccountIdsT>(value));
97 return *this;
98 }
99 template <typename AWSAccountIdsT = Aws::String>
100 AddPermissionRequest& AddAWSAccountIds(AWSAccountIdsT&& value) {
101 m_aWSAccountIdsHasBeenSet = true;
102 m_aWSAccountIds.emplace_back(std::forward<AWSAccountIdsT>(value));
103 return *this;
104 }
106
108
121 inline const Aws::Vector<Aws::String>& GetActions() const { return m_actions; }
122 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
123 template <typename ActionsT = Aws::Vector<Aws::String>>
124 void SetActions(ActionsT&& value) {
125 m_actionsHasBeenSet = true;
126 m_actions = std::forward<ActionsT>(value);
127 }
128 template <typename ActionsT = Aws::Vector<Aws::String>>
130 SetActions(std::forward<ActionsT>(value));
131 return *this;
132 }
133 template <typename ActionsT = Aws::String>
134 AddPermissionRequest& AddActions(ActionsT&& value) {
135 m_actionsHasBeenSet = true;
136 m_actions.emplace_back(std::forward<ActionsT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_queueUrl;
142
143 Aws::String m_label;
144
145 Aws::Vector<Aws::String> m_aWSAccountIds;
146
147 Aws::Vector<Aws::String> m_actions;
148 bool m_queueUrlHasBeenSet = false;
149 bool m_labelHasBeenSet = false;
150 bool m_aWSAccountIdsHasBeenSet = false;
151 bool m_actionsHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace SQS
156} // namespace Aws
void SetAWSAccountIds(AWSAccountIdsT &&value)
const Aws::String & GetQueueUrl() const
AddPermissionRequest & AddAWSAccountIds(AWSAccountIdsT &&value)
const Aws::Vector< Aws::String > & GetActions() const
AWS_SQS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AddPermissionRequest & WithAWSAccountIds(AWSAccountIdsT &&value)
virtual const char * GetServiceRequestName() const override
AddPermissionRequest & WithQueueUrl(QueueUrlT &&value)
AWS_SQS_API AddPermissionRequest()=default
AddPermissionRequest & WithActions(ActionsT &&value)
const Aws::Vector< Aws::String > & GetAWSAccountIds() const
AWS_SQS_API Aws::String SerializePayload() const override
AddPermissionRequest & WithLabel(LabelT &&value)
AddPermissionRequest & AddActions(ActionsT &&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