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,116 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/logs/CloudWatchLogs_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchLogs
{
namespace Model
{
/**
* <p>Contains the number of log events scanned by the query, the number of log
* events that matched the query criteria, and the total number of bytes in the log
* events that were scanned.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/QueryStatistics">AWS
* API Reference</a></p>
*/
class AWS_CLOUDWATCHLOGS_API QueryStatistics
{
public:
QueryStatistics();
QueryStatistics(Aws::Utils::Json::JsonView jsonValue);
QueryStatistics& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The number of log events that matched the query string.</p>
*/
inline double GetRecordsMatched() const{ return m_recordsMatched; }
/**
* <p>The number of log events that matched the query string.</p>
*/
inline bool RecordsMatchedHasBeenSet() const { return m_recordsMatchedHasBeenSet; }
/**
* <p>The number of log events that matched the query string.</p>
*/
inline void SetRecordsMatched(double value) { m_recordsMatchedHasBeenSet = true; m_recordsMatched = value; }
/**
* <p>The number of log events that matched the query string.</p>
*/
inline QueryStatistics& WithRecordsMatched(double value) { SetRecordsMatched(value); return *this;}
/**
* <p>The total number of log events scanned during the query.</p>
*/
inline double GetRecordsScanned() const{ return m_recordsScanned; }
/**
* <p>The total number of log events scanned during the query.</p>
*/
inline bool RecordsScannedHasBeenSet() const { return m_recordsScannedHasBeenSet; }
/**
* <p>The total number of log events scanned during the query.</p>
*/
inline void SetRecordsScanned(double value) { m_recordsScannedHasBeenSet = true; m_recordsScanned = value; }
/**
* <p>The total number of log events scanned during the query.</p>
*/
inline QueryStatistics& WithRecordsScanned(double value) { SetRecordsScanned(value); return *this;}
/**
* <p>The total number of bytes in the log events scanned during the query.</p>
*/
inline double GetBytesScanned() const{ return m_bytesScanned; }
/**
* <p>The total number of bytes in the log events scanned during the query.</p>
*/
inline bool BytesScannedHasBeenSet() const { return m_bytesScannedHasBeenSet; }
/**
* <p>The total number of bytes in the log events scanned during the query.</p>
*/
inline void SetBytesScanned(double value) { m_bytesScannedHasBeenSet = true; m_bytesScanned = value; }
/**
* <p>The total number of bytes in the log events scanned during the query.</p>
*/
inline QueryStatistics& WithBytesScanned(double value) { SetBytesScanned(value); return *this;}
private:
double m_recordsMatched;
bool m_recordsMatchedHasBeenSet;
double m_recordsScanned;
bool m_recordsScannedHasBeenSet;
double m_bytesScanned;
bool m_bytesScannedHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchLogs
} // namespace Aws