AWS SDK for C++  0.14.3
AWS SDK for C++
GetPolicyRequest.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 
54  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
55 
68  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
69 
82  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
83 
96  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
97 
110  inline GetPolicyRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
111 
124  inline GetPolicyRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(value); return *this;}
125 
138  inline GetPolicyRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
139 
146  inline const Aws::String& GetQualifier() const{ return m_qualifier; }
147 
154  inline void SetQualifier(const Aws::String& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
155 
162  inline void SetQualifier(Aws::String&& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
163 
170  inline void SetQualifier(const char* value) { m_qualifierHasBeenSet = true; m_qualifier.assign(value); }
171 
178  inline GetPolicyRequest& WithQualifier(const Aws::String& value) { SetQualifier(value); return *this;}
179 
186  inline GetPolicyRequest& WithQualifier(Aws::String&& value) { SetQualifier(value); return *this;}
187 
194  inline GetPolicyRequest& WithQualifier(const char* value) { SetQualifier(value); return *this;}
195 
196  private:
197  Aws::String m_functionName;
198  bool m_functionNameHasBeenSet;
199  Aws::String m_qualifier;
200  bool m_qualifierHasBeenSet;
201  };
202 
203 } // namespace Model
204 } // namespace Lambda
205 } // namespace Aws
void SetQualifier(Aws::String &&value)
GetPolicyRequest & WithQualifier(const Aws::String &value)
const Aws::String & GetFunctionName() const
const Aws::String & GetQualifier() const
void SetQualifier(const Aws::String &value)
GetPolicyRequest & WithQualifier(const char *value)
void SetFunctionName(const char *value)
GetPolicyRequest & WithQualifier(Aws::String &&value)
void SetFunctionName(const Aws::String &value)
#define AWS_LAMBDA_API
void SetFunctionName(Aws::String &&value)
GetPolicyRequest & WithFunctionName(Aws::String &&value)
GetPolicyRequest & WithFunctionName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetQualifier(const char *value)
JSON (JavaScript Object Notation).
GetPolicyRequest & WithFunctionName(const Aws::String &value)