feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,73 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/lambda/Lambda_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Lambda
{
namespace Model
{
class AWS_LAMBDA_API Concurrency
{
public:
Concurrency();
Concurrency(Aws::Utils::Json::JsonView jsonValue);
Concurrency& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The number of concurrent executions that are reserved for this function. For
* more information, see <a
* href="https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html">Managing
* Concurrency</a>.</p>
*/
inline int GetReservedConcurrentExecutions() const{ return m_reservedConcurrentExecutions; }
/**
* <p>The number of concurrent executions that are reserved for this function. For
* more information, see <a
* href="https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html">Managing
* Concurrency</a>.</p>
*/
inline bool ReservedConcurrentExecutionsHasBeenSet() const { return m_reservedConcurrentExecutionsHasBeenSet; }
/**
* <p>The number of concurrent executions that are reserved for this function. For
* more information, see <a
* href="https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html">Managing
* Concurrency</a>.</p>
*/
inline void SetReservedConcurrentExecutions(int value) { m_reservedConcurrentExecutionsHasBeenSet = true; m_reservedConcurrentExecutions = value; }
/**
* <p>The number of concurrent executions that are reserved for this function. For
* more information, see <a
* href="https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html">Managing
* Concurrency</a>.</p>
*/
inline Concurrency& WithReservedConcurrentExecutions(int value) { SetReservedConcurrentExecutions(value); return *this;}
private:
int m_reservedConcurrentExecutions;
bool m_reservedConcurrentExecutionsHasBeenSet;
};
} // namespace Model
} // namespace Lambda
} // namespace Aws