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,92 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DeviceFarm
{
namespace Model
{
/**
* <p>Represents a latitude and longitude pair, expressed in geographic coordinate
* system degrees (for example, 47.6204, -122.3491).</p> <p>Elevation is currently
* not supported.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Location">AWS
* API Reference</a></p>
*/
class AWS_DEVICEFARM_API Location
{
public:
Location();
Location(Aws::Utils::Json::JsonView jsonValue);
Location& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The latitude.</p>
*/
inline double GetLatitude() const{ return m_latitude; }
/**
* <p>The latitude.</p>
*/
inline bool LatitudeHasBeenSet() const { return m_latitudeHasBeenSet; }
/**
* <p>The latitude.</p>
*/
inline void SetLatitude(double value) { m_latitudeHasBeenSet = true; m_latitude = value; }
/**
* <p>The latitude.</p>
*/
inline Location& WithLatitude(double value) { SetLatitude(value); return *this;}
/**
* <p>The longitude.</p>
*/
inline double GetLongitude() const{ return m_longitude; }
/**
* <p>The longitude.</p>
*/
inline bool LongitudeHasBeenSet() const { return m_longitudeHasBeenSet; }
/**
* <p>The longitude.</p>
*/
inline void SetLongitude(double value) { m_longitudeHasBeenSet = true; m_longitude = value; }
/**
* <p>The longitude.</p>
*/
inline Location& WithLongitude(double value) { SetLongitude(value); return *this;}
private:
double m_latitude;
bool m_latitudeHasBeenSet;
double m_longitude;
bool m_longitudeHasBeenSet;
};
} // namespace Model
} // namespace DeviceFarm
} // namespace Aws