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,106 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/polly/Polly_EXPORTS.h>
#include <aws/polly/model/Lexicon.h>
#include <aws/polly/model/LexiconAttributes.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Polly
{
namespace Model
{
class AWS_POLLY_API GetLexiconResult
{
public:
GetLexiconResult();
GetLexiconResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetLexiconResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Lexicon object that provides name and the string content of the lexicon. </p>
*/
inline const Lexicon& GetLexicon() const{ return m_lexicon; }
/**
* <p>Lexicon object that provides name and the string content of the lexicon. </p>
*/
inline void SetLexicon(const Lexicon& value) { m_lexicon = value; }
/**
* <p>Lexicon object that provides name and the string content of the lexicon. </p>
*/
inline void SetLexicon(Lexicon&& value) { m_lexicon = std::move(value); }
/**
* <p>Lexicon object that provides name and the string content of the lexicon. </p>
*/
inline GetLexiconResult& WithLexicon(const Lexicon& value) { SetLexicon(value); return *this;}
/**
* <p>Lexicon object that provides name and the string content of the lexicon. </p>
*/
inline GetLexiconResult& WithLexicon(Lexicon&& value) { SetLexicon(std::move(value)); return *this;}
/**
* <p>Metadata of the lexicon, including phonetic alphabetic used, language code,
* lexicon ARN, number of lexemes defined in the lexicon, and size of lexicon in
* bytes.</p>
*/
inline const LexiconAttributes& GetLexiconAttributes() const{ return m_lexiconAttributes; }
/**
* <p>Metadata of the lexicon, including phonetic alphabetic used, language code,
* lexicon ARN, number of lexemes defined in the lexicon, and size of lexicon in
* bytes.</p>
*/
inline void SetLexiconAttributes(const LexiconAttributes& value) { m_lexiconAttributes = value; }
/**
* <p>Metadata of the lexicon, including phonetic alphabetic used, language code,
* lexicon ARN, number of lexemes defined in the lexicon, and size of lexicon in
* bytes.</p>
*/
inline void SetLexiconAttributes(LexiconAttributes&& value) { m_lexiconAttributes = std::move(value); }
/**
* <p>Metadata of the lexicon, including phonetic alphabetic used, language code,
* lexicon ARN, number of lexemes defined in the lexicon, and size of lexicon in
* bytes.</p>
*/
inline GetLexiconResult& WithLexiconAttributes(const LexiconAttributes& value) { SetLexiconAttributes(value); return *this;}
/**
* <p>Metadata of the lexicon, including phonetic alphabetic used, language code,
* lexicon ARN, number of lexemes defined in the lexicon, and size of lexicon in
* bytes.</p>
*/
inline GetLexiconResult& WithLexiconAttributes(LexiconAttributes&& value) { SetLexiconAttributes(std::move(value)); return *this;}
private:
Lexicon m_lexicon;
LexiconAttributes m_lexiconAttributes;
};
} // namespace Model
} // namespace Polly
} // namespace Aws