AWS SDK for C++  0.14.3
AWS SDK for C++
RemovePermissionRequest.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
19 
20 namespace Aws
21 {
22 namespace Http
23 {
24  class URI;
25 } //namespace Http
26 namespace Lambda
27 {
28 namespace Model
29 {
30 
35  {
36  public:
38  Aws::String SerializePayload() const override;
39 
40  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41 
53  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
54 
66  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
67 
79  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
80 
92  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
93 
105  inline RemovePermissionRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
106 
118  inline RemovePermissionRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(value); return *this;}
119 
131  inline RemovePermissionRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
132 
136  inline const Aws::String& GetStatementId() const{ return m_statementId; }
137 
141  inline void SetStatementId(const Aws::String& value) { m_statementIdHasBeenSet = true; m_statementId = value; }
142 
146  inline void SetStatementId(Aws::String&& value) { m_statementIdHasBeenSet = true; m_statementId = value; }
147 
151  inline void SetStatementId(const char* value) { m_statementIdHasBeenSet = true; m_statementId.assign(value); }
152 
156  inline RemovePermissionRequest& WithStatementId(const Aws::String& value) { SetStatementId(value); return *this;}
157 
161  inline RemovePermissionRequest& WithStatementId(Aws::String&& value) { SetStatementId(value); return *this;}
162 
166  inline RemovePermissionRequest& WithStatementId(const char* value) { SetStatementId(value); return *this;}
167 
174  inline const Aws::String& GetQualifier() const{ return m_qualifier; }
175 
182  inline void SetQualifier(const Aws::String& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
183 
190  inline void SetQualifier(Aws::String&& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
191 
198  inline void SetQualifier(const char* value) { m_qualifierHasBeenSet = true; m_qualifier.assign(value); }
199 
206  inline RemovePermissionRequest& WithQualifier(const Aws::String& value) { SetQualifier(value); return *this;}
207 
214  inline RemovePermissionRequest& WithQualifier(Aws::String&& value) { SetQualifier(value); return *this;}
215 
222  inline RemovePermissionRequest& WithQualifier(const char* value) { SetQualifier(value); return *this;}
223 
224  private:
225  Aws::String m_functionName;
226  bool m_functionNameHasBeenSet;
227  Aws::String m_statementId;
228  bool m_statementIdHasBeenSet;
229  Aws::String m_qualifier;
230  bool m_qualifierHasBeenSet;
231  };
232 
233 } // namespace Model
234 } // namespace Lambda
235 } // namespace Aws
RemovePermissionRequest & WithQualifier(const Aws::String &value)
RemovePermissionRequest & WithStatementId(Aws::String &&value)
#define AWS_LAMBDA_API
RemovePermissionRequest & WithFunctionName(const Aws::String &value)
RemovePermissionRequest & WithFunctionName(const char *value)
RemovePermissionRequest & WithStatementId(const Aws::String &value)
RemovePermissionRequest & WithFunctionName(Aws::String &&value)
RemovePermissionRequest & WithQualifier(const char *value)
RemovePermissionRequest & WithStatementId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RemovePermissionRequest & WithQualifier(Aws::String &&value)
JSON (JavaScript Object Notation).