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,94 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iam/IAM_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace IAM
{
namespace Model
{
/**
* <p>Contains the row and column of a location of a <code>Statement</code> element
* in a policy document.</p> <p>This data type is used as a member of the <code>
* <a>Statement</a> </code> type.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/Position">AWS API
* Reference</a></p>
*/
class AWS_IAM_API Position
{
public:
Position();
Position(const Aws::Utils::Xml::XmlNode& xmlNode);
Position& 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 line containing the specified position in the document.</p>
*/
inline int GetLine() const{ return m_line; }
/**
* <p>The line containing the specified position in the document.</p>
*/
inline bool LineHasBeenSet() const { return m_lineHasBeenSet; }
/**
* <p>The line containing the specified position in the document.</p>
*/
inline void SetLine(int value) { m_lineHasBeenSet = true; m_line = value; }
/**
* <p>The line containing the specified position in the document.</p>
*/
inline Position& WithLine(int value) { SetLine(value); return *this;}
/**
* <p>The column in the line containing the specified position in the document.</p>
*/
inline int GetColumn() const{ return m_column; }
/**
* <p>The column in the line containing the specified position in the document.</p>
*/
inline bool ColumnHasBeenSet() const { return m_columnHasBeenSet; }
/**
* <p>The column in the line containing the specified position in the document.</p>
*/
inline void SetColumn(int value) { m_columnHasBeenSet = true; m_column = value; }
/**
* <p>The column in the line containing the specified position in the document.</p>
*/
inline Position& WithColumn(int value) { SetColumn(value); return *this;}
private:
int m_line;
bool m_lineHasBeenSet;
int m_column;
bool m_columnHasBeenSet;
};
} // namespace Model
} // namespace IAM
} // namespace Aws