AWS SDK for C++  1.9.126
AWS SDK for C++
PutFunctionConcurrencyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Lambda
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "PutFunctionConcurrency"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
45  inline const Aws::String& GetFunctionName() const{ return m_functionName; }
46 
57  inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
58 
69  inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
70 
81  inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
82 
93  inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
94 
105  inline PutFunctionConcurrencyRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
106 
117  inline PutFunctionConcurrencyRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
118 
129  inline PutFunctionConcurrencyRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
130 
131 
135  inline int GetReservedConcurrentExecutions() const{ return m_reservedConcurrentExecutions; }
136 
140  inline bool ReservedConcurrentExecutionsHasBeenSet() const { return m_reservedConcurrentExecutionsHasBeenSet; }
141 
145  inline void SetReservedConcurrentExecutions(int value) { m_reservedConcurrentExecutionsHasBeenSet = true; m_reservedConcurrentExecutions = value; }
146 
150  inline PutFunctionConcurrencyRequest& WithReservedConcurrentExecutions(int value) { SetReservedConcurrentExecutions(value); return *this;}
151 
152  private:
153 
154  Aws::String m_functionName;
155  bool m_functionNameHasBeenSet;
156 
157  int m_reservedConcurrentExecutions;
158  bool m_reservedConcurrentExecutionsHasBeenSet;
159  };
160 
161 } // namespace Model
162 } // namespace Lambda
163 } // namespace Aws
Aws::Lambda::Model::PutFunctionConcurrencyRequest::PutFunctionConcurrencyRequest
PutFunctionConcurrencyRequest()
Aws::Lambda::Model::PutFunctionConcurrencyRequest::SetFunctionName
void SetFunctionName(Aws::String &&value)
Definition: PutFunctionConcurrencyRequest.h:81
Aws::Lambda::Model::PutFunctionConcurrencyRequest::WithReservedConcurrentExecutions
PutFunctionConcurrencyRequest & WithReservedConcurrentExecutions(int value)
Definition: PutFunctionConcurrencyRequest.h:150
Aws::Lambda::Model::PutFunctionConcurrencyRequest::WithFunctionName
PutFunctionConcurrencyRequest & WithFunctionName(const char *value)
Definition: PutFunctionConcurrencyRequest.h:129
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::PutFunctionConcurrencyRequest::SetFunctionName
void SetFunctionName(const char *value)
Definition: PutFunctionConcurrencyRequest.h:93
Aws::Lambda::Model::PutFunctionConcurrencyRequest::WithFunctionName
PutFunctionConcurrencyRequest & WithFunctionName(const Aws::String &value)
Definition: PutFunctionConcurrencyRequest.h:105
Aws::Lambda::Model::PutFunctionConcurrencyRequest::FunctionNameHasBeenSet
bool FunctionNameHasBeenSet() const
Definition: PutFunctionConcurrencyRequest.h:57
Aws::Lambda::Model::PutFunctionConcurrencyRequest
Definition: PutFunctionConcurrencyRequest.h:22
AWSString.h
Aws::Lambda::Model::PutFunctionConcurrencyRequest::GetFunctionName
const Aws::String & GetFunctionName() const
Definition: PutFunctionConcurrencyRequest.h:45
LambdaRequest.h
Aws::Lambda::Model::PutFunctionConcurrencyRequest::ReservedConcurrentExecutionsHasBeenSet
bool ReservedConcurrentExecutionsHasBeenSet() const
Definition: PutFunctionConcurrencyRequest.h:140
Aws::Lambda::Model::PutFunctionConcurrencyRequest::SetReservedConcurrentExecutions
void SetReservedConcurrentExecutions(int value)
Definition: PutFunctionConcurrencyRequest.h:145
Aws::Lambda::LambdaRequest
Definition: LambdaRequest.h:18
Aws::Lambda::Model::PutFunctionConcurrencyRequest::SetFunctionName
void SetFunctionName(const Aws::String &value)
Definition: PutFunctionConcurrencyRequest.h:69
Aws::Lambda::Model::PutFunctionConcurrencyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Lambda::Model::PutFunctionConcurrencyRequest::WithFunctionName
PutFunctionConcurrencyRequest & WithFunctionName(Aws::String &&value)
Definition: PutFunctionConcurrencyRequest.h:117
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lambda::Model::PutFunctionConcurrencyRequest::GetReservedConcurrentExecutions
int GetReservedConcurrentExecutions() const
Definition: PutFunctionConcurrencyRequest.h:135
Aws::Lambda::Model::PutFunctionConcurrencyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutFunctionConcurrencyRequest.h:30
Lambda_EXPORTS.h