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,114 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/kendra/Kendra_EXPORTS.h>
#include <aws/kendra/model/FaqStatistics.h>
#include <aws/kendra/model/TextDocumentStatistics.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace kendra
{
namespace Model
{
/**
* <p>Provides information about the number of documents and the number of
* questions and answers in an index.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/IndexStatistics">AWS
* API Reference</a></p>
*/
class AWS_KENDRA_API IndexStatistics
{
public:
IndexStatistics();
IndexStatistics(Aws::Utils::Json::JsonView jsonValue);
IndexStatistics& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The number of question and answer topics in the index.</p>
*/
inline const FaqStatistics& GetFaqStatistics() const{ return m_faqStatistics; }
/**
* <p>The number of question and answer topics in the index.</p>
*/
inline bool FaqStatisticsHasBeenSet() const { return m_faqStatisticsHasBeenSet; }
/**
* <p>The number of question and answer topics in the index.</p>
*/
inline void SetFaqStatistics(const FaqStatistics& value) { m_faqStatisticsHasBeenSet = true; m_faqStatistics = value; }
/**
* <p>The number of question and answer topics in the index.</p>
*/
inline void SetFaqStatistics(FaqStatistics&& value) { m_faqStatisticsHasBeenSet = true; m_faqStatistics = std::move(value); }
/**
* <p>The number of question and answer topics in the index.</p>
*/
inline IndexStatistics& WithFaqStatistics(const FaqStatistics& value) { SetFaqStatistics(value); return *this;}
/**
* <p>The number of question and answer topics in the index.</p>
*/
inline IndexStatistics& WithFaqStatistics(FaqStatistics&& value) { SetFaqStatistics(std::move(value)); return *this;}
/**
* <p>The number of text documents indexed.</p>
*/
inline const TextDocumentStatistics& GetTextDocumentStatistics() const{ return m_textDocumentStatistics; }
/**
* <p>The number of text documents indexed.</p>
*/
inline bool TextDocumentStatisticsHasBeenSet() const { return m_textDocumentStatisticsHasBeenSet; }
/**
* <p>The number of text documents indexed.</p>
*/
inline void SetTextDocumentStatistics(const TextDocumentStatistics& value) { m_textDocumentStatisticsHasBeenSet = true; m_textDocumentStatistics = value; }
/**
* <p>The number of text documents indexed.</p>
*/
inline void SetTextDocumentStatistics(TextDocumentStatistics&& value) { m_textDocumentStatisticsHasBeenSet = true; m_textDocumentStatistics = std::move(value); }
/**
* <p>The number of text documents indexed.</p>
*/
inline IndexStatistics& WithTextDocumentStatistics(const TextDocumentStatistics& value) { SetTextDocumentStatistics(value); return *this;}
/**
* <p>The number of text documents indexed.</p>
*/
inline IndexStatistics& WithTextDocumentStatistics(TextDocumentStatistics&& value) { SetTextDocumentStatistics(std::move(value)); return *this;}
private:
FaqStatistics m_faqStatistics;
bool m_faqStatisticsHasBeenSet;
TextDocumentStatistics m_textDocumentStatistics;
bool m_textDocumentStatisticsHasBeenSet;
};
} // namespace Model
} // namespace kendra
} // namespace Aws