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/rekognition/Rekognition_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Rekognition
{
namespace Model
{
/**
* <p>Structure containing the estimated age range, in years, for a face.</p>
* <p>Amazon Rekognition estimates an age range for faces detected in the input
* image. Estimated age ranges can overlap. A face of a 5-year-old might have an
* estimated range of 4-6, while the face of a 6-year-old might have an estimated
* range of 4-8.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rekognition-2016-06-27/AgeRange">AWS
* API Reference</a></p>
*/
class AWS_REKOGNITION_API AgeRange
{
public:
AgeRange();
AgeRange(Aws::Utils::Json::JsonView jsonValue);
AgeRange& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The lowest estimated age.</p>
*/
inline int GetLow() const{ return m_low; }
/**
* <p>The lowest estimated age.</p>
*/
inline bool LowHasBeenSet() const { return m_lowHasBeenSet; }
/**
* <p>The lowest estimated age.</p>
*/
inline void SetLow(int value) { m_lowHasBeenSet = true; m_low = value; }
/**
* <p>The lowest estimated age.</p>
*/
inline AgeRange& WithLow(int value) { SetLow(value); return *this;}
/**
* <p>The highest estimated age.</p>
*/
inline int GetHigh() const{ return m_high; }
/**
* <p>The highest estimated age.</p>
*/
inline bool HighHasBeenSet() const { return m_highHasBeenSet; }
/**
* <p>The highest estimated age.</p>
*/
inline void SetHigh(int value) { m_highHasBeenSet = true; m_high = value; }
/**
* <p>The highest estimated age.</p>
*/
inline AgeRange& WithHigh(int value) { SetHigh(value); return *this;}
private:
int m_low;
bool m_lowHasBeenSet;
int m_high;
bool m_highHasBeenSet;
};
} // namespace Model
} // namespace Rekognition
} // namespace Aws