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,89 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/appsync/model/CognitoUserPoolConfig.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace AppSync
{
namespace Model
{
CognitoUserPoolConfig::CognitoUserPoolConfig() :
m_userPoolIdHasBeenSet(false),
m_awsRegionHasBeenSet(false),
m_appIdClientRegexHasBeenSet(false)
{
}
CognitoUserPoolConfig::CognitoUserPoolConfig(JsonView jsonValue) :
m_userPoolIdHasBeenSet(false),
m_awsRegionHasBeenSet(false),
m_appIdClientRegexHasBeenSet(false)
{
*this = jsonValue;
}
CognitoUserPoolConfig& CognitoUserPoolConfig::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("userPoolId"))
{
m_userPoolId = jsonValue.GetString("userPoolId");
m_userPoolIdHasBeenSet = true;
}
if(jsonValue.ValueExists("awsRegion"))
{
m_awsRegion = jsonValue.GetString("awsRegion");
m_awsRegionHasBeenSet = true;
}
if(jsonValue.ValueExists("appIdClientRegex"))
{
m_appIdClientRegex = jsonValue.GetString("appIdClientRegex");
m_appIdClientRegexHasBeenSet = true;
}
return *this;
}
JsonValue CognitoUserPoolConfig::Jsonize() const
{
JsonValue payload;
if(m_userPoolIdHasBeenSet)
{
payload.WithString("userPoolId", m_userPoolId);
}
if(m_awsRegionHasBeenSet)
{
payload.WithString("awsRegion", m_awsRegion);
}
if(m_appIdClientRegexHasBeenSet)
{
payload.WithString("appIdClientRegex", m_appIdClientRegex);
}
return payload;
}
} // namespace Model
} // namespace AppSync
} // namespace Aws