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,98 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/iotevents/model/Event.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>When entering this state, perform these <code>actions</code> if the
* <code>condition</code> is TRUE.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/OnEnterLifecycle">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API OnEnterLifecycle
{
public:
OnEnterLifecycle();
OnEnterLifecycle(Aws::Utils::Json::JsonView jsonValue);
OnEnterLifecycle& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies the actions that are performed when the state is entered and the
* <code>condition</code> is <code>TRUE</code>.</p>
*/
inline const Aws::Vector<Event>& GetEvents() const{ return m_events; }
/**
* <p>Specifies the actions that are performed when the state is entered and the
* <code>condition</code> is <code>TRUE</code>.</p>
*/
inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
/**
* <p>Specifies the actions that are performed when the state is entered and the
* <code>condition</code> is <code>TRUE</code>.</p>
*/
inline void SetEvents(const Aws::Vector<Event>& value) { m_eventsHasBeenSet = true; m_events = value; }
/**
* <p>Specifies the actions that are performed when the state is entered and the
* <code>condition</code> is <code>TRUE</code>.</p>
*/
inline void SetEvents(Aws::Vector<Event>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
/**
* <p>Specifies the actions that are performed when the state is entered and the
* <code>condition</code> is <code>TRUE</code>.</p>
*/
inline OnEnterLifecycle& WithEvents(const Aws::Vector<Event>& value) { SetEvents(value); return *this;}
/**
* <p>Specifies the actions that are performed when the state is entered and the
* <code>condition</code> is <code>TRUE</code>.</p>
*/
inline OnEnterLifecycle& WithEvents(Aws::Vector<Event>&& value) { SetEvents(std::move(value)); return *this;}
/**
* <p>Specifies the actions that are performed when the state is entered and the
* <code>condition</code> is <code>TRUE</code>.</p>
*/
inline OnEnterLifecycle& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
/**
* <p>Specifies the actions that are performed when the state is entered and the
* <code>condition</code> is <code>TRUE</code>.</p>
*/
inline OnEnterLifecycle& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Event> m_events;
bool m_eventsHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws