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,134 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/neptune/Neptune_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace Neptune
{
namespace Model
{
/**
* <p>Specifies a character set.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/neptune-2014-10-31/CharacterSet">AWS
* API Reference</a></p>
*/
class AWS_NEPTUNE_API CharacterSet
{
public:
CharacterSet();
CharacterSet(const Aws::Utils::Xml::XmlNode& xmlNode);
CharacterSet& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
void OutputToStream(Aws::OStream& oStream, const char* location) const;
/**
* <p>The name of the character set.</p>
*/
inline const Aws::String& GetCharacterSetName() const{ return m_characterSetName; }
/**
* <p>The name of the character set.</p>
*/
inline bool CharacterSetNameHasBeenSet() const { return m_characterSetNameHasBeenSet; }
/**
* <p>The name of the character set.</p>
*/
inline void SetCharacterSetName(const Aws::String& value) { m_characterSetNameHasBeenSet = true; m_characterSetName = value; }
/**
* <p>The name of the character set.</p>
*/
inline void SetCharacterSetName(Aws::String&& value) { m_characterSetNameHasBeenSet = true; m_characterSetName = std::move(value); }
/**
* <p>The name of the character set.</p>
*/
inline void SetCharacterSetName(const char* value) { m_characterSetNameHasBeenSet = true; m_characterSetName.assign(value); }
/**
* <p>The name of the character set.</p>
*/
inline CharacterSet& WithCharacterSetName(const Aws::String& value) { SetCharacterSetName(value); return *this;}
/**
* <p>The name of the character set.</p>
*/
inline CharacterSet& WithCharacterSetName(Aws::String&& value) { SetCharacterSetName(std::move(value)); return *this;}
/**
* <p>The name of the character set.</p>
*/
inline CharacterSet& WithCharacterSetName(const char* value) { SetCharacterSetName(value); return *this;}
/**
* <p>The description of the character set.</p>
*/
inline const Aws::String& GetCharacterSetDescription() const{ return m_characterSetDescription; }
/**
* <p>The description of the character set.</p>
*/
inline bool CharacterSetDescriptionHasBeenSet() const { return m_characterSetDescriptionHasBeenSet; }
/**
* <p>The description of the character set.</p>
*/
inline void SetCharacterSetDescription(const Aws::String& value) { m_characterSetDescriptionHasBeenSet = true; m_characterSetDescription = value; }
/**
* <p>The description of the character set.</p>
*/
inline void SetCharacterSetDescription(Aws::String&& value) { m_characterSetDescriptionHasBeenSet = true; m_characterSetDescription = std::move(value); }
/**
* <p>The description of the character set.</p>
*/
inline void SetCharacterSetDescription(const char* value) { m_characterSetDescriptionHasBeenSet = true; m_characterSetDescription.assign(value); }
/**
* <p>The description of the character set.</p>
*/
inline CharacterSet& WithCharacterSetDescription(const Aws::String& value) { SetCharacterSetDescription(value); return *this;}
/**
* <p>The description of the character set.</p>
*/
inline CharacterSet& WithCharacterSetDescription(Aws::String&& value) { SetCharacterSetDescription(std::move(value)); return *this;}
/**
* <p>The description of the character set.</p>
*/
inline CharacterSet& WithCharacterSetDescription(const char* value) { SetCharacterSetDescription(value); return *this;}
private:
Aws::String m_characterSetName;
bool m_characterSetNameHasBeenSet;
Aws::String m_characterSetDescription;
bool m_characterSetDescriptionHasBeenSet;
};
} // namespace Model
} // namespace Neptune
} // namespace Aws