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,153 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot/IoT_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoT
{
namespace Model
{
class AWS_IOT_API CreateThingGroupResult
{
public:
CreateThingGroupResult();
CreateThingGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateThingGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The thing group name.</p>
*/
inline const Aws::String& GetThingGroupName() const{ return m_thingGroupName; }
/**
* <p>The thing group name.</p>
*/
inline void SetThingGroupName(const Aws::String& value) { m_thingGroupName = value; }
/**
* <p>The thing group name.</p>
*/
inline void SetThingGroupName(Aws::String&& value) { m_thingGroupName = std::move(value); }
/**
* <p>The thing group name.</p>
*/
inline void SetThingGroupName(const char* value) { m_thingGroupName.assign(value); }
/**
* <p>The thing group name.</p>
*/
inline CreateThingGroupResult& WithThingGroupName(const Aws::String& value) { SetThingGroupName(value); return *this;}
/**
* <p>The thing group name.</p>
*/
inline CreateThingGroupResult& WithThingGroupName(Aws::String&& value) { SetThingGroupName(std::move(value)); return *this;}
/**
* <p>The thing group name.</p>
*/
inline CreateThingGroupResult& WithThingGroupName(const char* value) { SetThingGroupName(value); return *this;}
/**
* <p>The thing group ARN.</p>
*/
inline const Aws::String& GetThingGroupArn() const{ return m_thingGroupArn; }
/**
* <p>The thing group ARN.</p>
*/
inline void SetThingGroupArn(const Aws::String& value) { m_thingGroupArn = value; }
/**
* <p>The thing group ARN.</p>
*/
inline void SetThingGroupArn(Aws::String&& value) { m_thingGroupArn = std::move(value); }
/**
* <p>The thing group ARN.</p>
*/
inline void SetThingGroupArn(const char* value) { m_thingGroupArn.assign(value); }
/**
* <p>The thing group ARN.</p>
*/
inline CreateThingGroupResult& WithThingGroupArn(const Aws::String& value) { SetThingGroupArn(value); return *this;}
/**
* <p>The thing group ARN.</p>
*/
inline CreateThingGroupResult& WithThingGroupArn(Aws::String&& value) { SetThingGroupArn(std::move(value)); return *this;}
/**
* <p>The thing group ARN.</p>
*/
inline CreateThingGroupResult& WithThingGroupArn(const char* value) { SetThingGroupArn(value); return *this;}
/**
* <p>The thing group ID.</p>
*/
inline const Aws::String& GetThingGroupId() const{ return m_thingGroupId; }
/**
* <p>The thing group ID.</p>
*/
inline void SetThingGroupId(const Aws::String& value) { m_thingGroupId = value; }
/**
* <p>The thing group ID.</p>
*/
inline void SetThingGroupId(Aws::String&& value) { m_thingGroupId = std::move(value); }
/**
* <p>The thing group ID.</p>
*/
inline void SetThingGroupId(const char* value) { m_thingGroupId.assign(value); }
/**
* <p>The thing group ID.</p>
*/
inline CreateThingGroupResult& WithThingGroupId(const Aws::String& value) { SetThingGroupId(value); return *this;}
/**
* <p>The thing group ID.</p>
*/
inline CreateThingGroupResult& WithThingGroupId(Aws::String&& value) { SetThingGroupId(std::move(value)); return *this;}
/**
* <p>The thing group ID.</p>
*/
inline CreateThingGroupResult& WithThingGroupId(const char* value) { SetThingGroupId(value); return *this;}
private:
Aws::String m_thingGroupName;
Aws::String m_thingGroupArn;
Aws::String m_thingGroupId;
};
} // namespace Model
} // namespace IoT
} // namespace Aws