AWS SDK for C++  0.14.3
AWS SDK for C++
AddPermissionRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/sqs/SQS_EXPORTS.h>
17 #include <aws/sqs/SQSRequest.h>
20 
21 namespace Aws
22 {
23 namespace SQS
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
41  inline const Aws::String& GetQueueUrl() const{ return m_queueUrl; }
42 
47  inline void SetQueueUrl(const Aws::String& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
48 
53  inline void SetQueueUrl(Aws::String&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
54 
59  inline void SetQueueUrl(const char* value) { m_queueUrlHasBeenSet = true; m_queueUrl.assign(value); }
60 
65  inline AddPermissionRequest& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;}
66 
71  inline AddPermissionRequest& WithQueueUrl(Aws::String&& value) { SetQueueUrl(value); return *this;}
72 
77  inline AddPermissionRequest& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;}
78 
84  inline const Aws::String& GetLabel() const{ return m_label; }
85 
91  inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; }
92 
98  inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = value; }
99 
105  inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); }
106 
112  inline AddPermissionRequest& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
113 
119  inline AddPermissionRequest& WithLabel(Aws::String&& value) { SetLabel(value); return *this;}
120 
126  inline AddPermissionRequest& WithLabel(const char* value) { SetLabel(value); return *this;}
127 
137  inline const Aws::Vector<Aws::String>& GetAWSAccountIds() const{ return m_aWSAccountIds; }
138 
148  inline void SetAWSAccountIds(const Aws::Vector<Aws::String>& value) { m_aWSAccountIdsHasBeenSet = true; m_aWSAccountIds = value; }
149 
159  inline void SetAWSAccountIds(Aws::Vector<Aws::String>&& value) { m_aWSAccountIdsHasBeenSet = true; m_aWSAccountIds = value; }
160 
170  inline AddPermissionRequest& WithAWSAccountIds(const Aws::Vector<Aws::String>& value) { SetAWSAccountIds(value); return *this;}
171 
181  inline AddPermissionRequest& WithAWSAccountIds(Aws::Vector<Aws::String>&& value) { SetAWSAccountIds(value); return *this;}
182 
192  inline AddPermissionRequest& AddAWSAccountIds(const Aws::String& value) { m_aWSAccountIdsHasBeenSet = true; m_aWSAccountIds.push_back(value); return *this; }
193 
203  inline AddPermissionRequest& AddAWSAccountIds(Aws::String&& value) { m_aWSAccountIdsHasBeenSet = true; m_aWSAccountIds.push_back(value); return *this; }
204 
214  inline AddPermissionRequest& AddAWSAccountIds(const char* value) { m_aWSAccountIdsHasBeenSet = true; m_aWSAccountIds.push_back(value); return *this; }
215 
229  inline const Aws::Vector<Aws::String>& GetActions() const{ return m_actions; }
230 
244  inline void SetActions(const Aws::Vector<Aws::String>& value) { m_actionsHasBeenSet = true; m_actions = value; }
245 
259  inline void SetActions(Aws::Vector<Aws::String>&& value) { m_actionsHasBeenSet = true; m_actions = value; }
260 
274  inline AddPermissionRequest& WithActions(const Aws::Vector<Aws::String>& value) { SetActions(value); return *this;}
275 
289  inline AddPermissionRequest& WithActions(Aws::Vector<Aws::String>&& value) { SetActions(value); return *this;}
290 
304  inline AddPermissionRequest& AddActions(const Aws::String& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
305 
319  inline AddPermissionRequest& AddActions(Aws::String&& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
320 
334  inline AddPermissionRequest& AddActions(const char* value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
335 
336  private:
337  Aws::String m_queueUrl;
338  bool m_queueUrlHasBeenSet;
339  Aws::String m_label;
340  bool m_labelHasBeenSet;
341  Aws::Vector<Aws::String> m_aWSAccountIds;
342  bool m_aWSAccountIdsHasBeenSet;
343  Aws::Vector<Aws::String> m_actions;
344  bool m_actionsHasBeenSet;
345  };
346 
347 } // namespace Model
348 } // namespace SQS
349 } // namespace Aws
AddPermissionRequest & WithActions(const Aws::Vector< Aws::String > &value)
const Aws::String & GetQueueUrl() const
AddPermissionRequest & AddAWSAccountIds(const Aws::String &value)
void SetAWSAccountIds(Aws::Vector< Aws::String > &&value)
AddPermissionRequest & WithLabel(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAWSAccountIds() const
AddPermissionRequest & AddAWSAccountIds(Aws::String &&value)
const Aws::Vector< Aws::String > & GetActions() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
AddPermissionRequest & AddActions(Aws::String &&value)
AddPermissionRequest & WithQueueUrl(const char *value)
AddPermissionRequest & AddActions(const char *value)
AddPermissionRequest & WithQueueUrl(Aws::String &&value)
void SetQueueUrl(const Aws::String &value)
const Aws::String & GetLabel() const
void SetActions(const Aws::Vector< Aws::String > &value)
AddPermissionRequest & WithQueueUrl(const Aws::String &value)
AddPermissionRequest & WithLabel(const Aws::String &value)
AddPermissionRequest & WithAWSAccountIds(Aws::Vector< Aws::String > &&value)
AddPermissionRequest & AddAWSAccountIds(const char *value)
void SetAWSAccountIds(const Aws::Vector< Aws::String > &value)
void SetLabel(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetActions(Aws::Vector< Aws::String > &&value)
AddPermissionRequest & AddActions(const Aws::String &value)
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:37
AddPermissionRequest & WithActions(Aws::Vector< Aws::String > &&value)
AddPermissionRequest & WithAWSAccountIds(const Aws::Vector< Aws::String > &value)
AddPermissionRequest & WithLabel(const char *value)
JSON (JavaScript Object Notation).