AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename QueueUrlT = Aws::String>
49 void SetQueueUrl(QueueUrlT&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = std::forward<QueueUrlT>(value); }
50 template<typename QueueUrlT = Aws::String>
51 AddPermissionRequest& WithQueueUrl(QueueUrlT&& value) { SetQueueUrl(std::forward<QueueUrlT>(value)); return *this;}
53
55
61 inline const Aws::String& GetLabel() const { return m_label; }
62 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
63 template<typename LabelT = Aws::String>
64 void SetLabel(LabelT&& value) { m_labelHasBeenSet = true; m_label = std::forward<LabelT>(value); }
65 template<typename LabelT = Aws::String>
66 AddPermissionRequest& WithLabel(LabelT&& value) { SetLabel(std::forward<LabelT>(value)); return *this;}
68
70
79 inline const Aws::Vector<Aws::String>& GetAWSAccountIds() const { return m_aWSAccountIds; }
80 inline bool AWSAccountIdsHasBeenSet() const { return m_aWSAccountIdsHasBeenSet; }
81 template<typename AWSAccountIdsT = Aws::Vector<Aws::String>>
82 void SetAWSAccountIds(AWSAccountIdsT&& value) { m_aWSAccountIdsHasBeenSet = true; m_aWSAccountIds = std::forward<AWSAccountIdsT>(value); }
83 template<typename AWSAccountIdsT = Aws::Vector<Aws::String>>
84 AddPermissionRequest& WithAWSAccountIds(AWSAccountIdsT&& value) { SetAWSAccountIds(std::forward<AWSAccountIdsT>(value)); return *this;}
85 template<typename AWSAccountIdsT = Aws::String>
86 AddPermissionRequest& AddAWSAccountIds(AWSAccountIdsT&& value) { m_aWSAccountIdsHasBeenSet = true; m_aWSAccountIds.emplace_back(std::forward<AWSAccountIdsT>(value)); return *this; }
88
90
103 inline const Aws::Vector<Aws::String>& GetActions() const { return m_actions; }
104 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
105 template<typename ActionsT = Aws::Vector<Aws::String>>
106 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
107 template<typename ActionsT = Aws::Vector<Aws::String>>
108 AddPermissionRequest& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
109 template<typename ActionsT = Aws::String>
110 AddPermissionRequest& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
112 private:
113
114 Aws::String m_queueUrl;
115 bool m_queueUrlHasBeenSet = false;
116
117 Aws::String m_label;
118 bool m_labelHasBeenSet = false;
119
120 Aws::Vector<Aws::String> m_aWSAccountIds;
121 bool m_aWSAccountIdsHasBeenSet = false;
122
123 Aws::Vector<Aws::String> m_actions;
124 bool m_actionsHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace SQS
129} // 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