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,123 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/polly/model/LexiconAttributes.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Polly
{
namespace Model
{
/**
* <p>Describes the content of the lexicon.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/LexiconDescription">AWS
* API Reference</a></p>
*/
class AWS_POLLY_API LexiconDescription
{
public:
LexiconDescription();
LexiconDescription(Aws::Utils::Json::JsonView jsonValue);
LexiconDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Name of the lexicon.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>Name of the lexicon.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>Name of the lexicon.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>Name of the lexicon.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>Name of the lexicon.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>Name of the lexicon.</p>
*/
inline LexiconDescription& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>Name of the lexicon.</p>
*/
inline LexiconDescription& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>Name of the lexicon.</p>
*/
inline LexiconDescription& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>Provides lexicon metadata.</p>
*/
inline const LexiconAttributes& GetAttributes() const{ return m_attributes; }
/**
* <p>Provides lexicon metadata.</p>
*/
inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
/**
* <p>Provides lexicon metadata.</p>
*/
inline void SetAttributes(const LexiconAttributes& value) { m_attributesHasBeenSet = true; m_attributes = value; }
/**
* <p>Provides lexicon metadata.</p>
*/
inline void SetAttributes(LexiconAttributes&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
/**
* <p>Provides lexicon metadata.</p>
*/
inline LexiconDescription& WithAttributes(const LexiconAttributes& value) { SetAttributes(value); return *this;}
/**
* <p>Provides lexicon metadata.</p>
*/
inline LexiconDescription& WithAttributes(LexiconAttributes&& value) { SetAttributes(std::move(value)); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
LexiconAttributes m_attributes;
bool m_attributesHasBeenSet;
};
} // namespace Model
} // namespace Polly
} // namespace Aws