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,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Contains the Amazon S3 Glacier response to your request.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/CreateVaultOutput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API CreateVaultResult
{
public:
CreateVaultResult();
CreateVaultResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateVaultResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The URI of the vault that was created.</p>
*/
inline const Aws::String& GetLocation() const{ return m_location; }
/**
* <p>The URI of the vault that was created.</p>
*/
inline void SetLocation(const Aws::String& value) { m_location = value; }
/**
* <p>The URI of the vault that was created.</p>
*/
inline void SetLocation(Aws::String&& value) { m_location = std::move(value); }
/**
* <p>The URI of the vault that was created.</p>
*/
inline void SetLocation(const char* value) { m_location.assign(value); }
/**
* <p>The URI of the vault that was created.</p>
*/
inline CreateVaultResult& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
/**
* <p>The URI of the vault that was created.</p>
*/
inline CreateVaultResult& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
/**
* <p>The URI of the vault that was created.</p>
*/
inline CreateVaultResult& WithLocation(const char* value) { SetLocation(value); return *this;}
private:
Aws::String m_location;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws