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/codepipeline/model/ThirdPartyJobDetails.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace CodePipeline
{
namespace Model
{
ThirdPartyJobDetails::ThirdPartyJobDetails() :
m_idHasBeenSet(false),
m_dataHasBeenSet(false),
m_nonceHasBeenSet(false)
{
}
ThirdPartyJobDetails::ThirdPartyJobDetails(JsonView jsonValue) :
m_idHasBeenSet(false),
m_dataHasBeenSet(false),
m_nonceHasBeenSet(false)
{
*this = jsonValue;
}
ThirdPartyJobDetails& ThirdPartyJobDetails::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("id"))
{
m_id = jsonValue.GetString("id");
m_idHasBeenSet = true;
}
if(jsonValue.ValueExists("data"))
{
m_data = jsonValue.GetObject("data");
m_dataHasBeenSet = true;
}
if(jsonValue.ValueExists("nonce"))
{
m_nonce = jsonValue.GetString("nonce");
m_nonceHasBeenSet = true;
}
return *this;
}
JsonValue ThirdPartyJobDetails::Jsonize() const
{
JsonValue payload;
if(m_idHasBeenSet)
{
payload.WithString("id", m_id);
}
if(m_dataHasBeenSet)
{
payload.WithObject("data", m_data.Jsonize());
}
if(m_nonceHasBeenSet)
{
payload.WithString("nonce", m_nonce);
}
return payload;
}
} // namespace Model
} // namespace CodePipeline
} // namespace Aws