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,151 @@
/**
* 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 <aws/iotevents/model/TransitionEvent.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Specifies the actions performed when the <code>condition</code> evaluates to
* TRUE.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/OnInputLifecycle">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API OnInputLifecycle
{
public:
OnInputLifecycle();
OnInputLifecycle(Aws::Utils::Json::JsonView jsonValue);
OnInputLifecycle& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies the actions performed when the <code>condition</code> evaluates to
* TRUE.</p>
*/
inline const Aws::Vector<Event>& GetEvents() const{ return m_events; }
/**
* <p>Specifies the actions performed when the <code>condition</code> evaluates to
* TRUE.</p>
*/
inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
/**
* <p>Specifies the actions performed when the <code>condition</code> evaluates to
* TRUE.</p>
*/
inline void SetEvents(const Aws::Vector<Event>& value) { m_eventsHasBeenSet = true; m_events = value; }
/**
* <p>Specifies the actions performed when the <code>condition</code> evaluates to
* TRUE.</p>
*/
inline void SetEvents(Aws::Vector<Event>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
/**
* <p>Specifies the actions performed when the <code>condition</code> evaluates to
* TRUE.</p>
*/
inline OnInputLifecycle& WithEvents(const Aws::Vector<Event>& value) { SetEvents(value); return *this;}
/**
* <p>Specifies the actions performed when the <code>condition</code> evaluates to
* TRUE.</p>
*/
inline OnInputLifecycle& WithEvents(Aws::Vector<Event>&& value) { SetEvents(std::move(value)); return *this;}
/**
* <p>Specifies the actions performed when the <code>condition</code> evaluates to
* TRUE.</p>
*/
inline OnInputLifecycle& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
/**
* <p>Specifies the actions performed when the <code>condition</code> evaluates to
* TRUE.</p>
*/
inline OnInputLifecycle& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
/**
* <p>Specifies the actions performed, and the next state entered, when a
* <code>condition</code> evaluates to TRUE.</p>
*/
inline const Aws::Vector<TransitionEvent>& GetTransitionEvents() const{ return m_transitionEvents; }
/**
* <p>Specifies the actions performed, and the next state entered, when a
* <code>condition</code> evaluates to TRUE.</p>
*/
inline bool TransitionEventsHasBeenSet() const { return m_transitionEventsHasBeenSet; }
/**
* <p>Specifies the actions performed, and the next state entered, when a
* <code>condition</code> evaluates to TRUE.</p>
*/
inline void SetTransitionEvents(const Aws::Vector<TransitionEvent>& value) { m_transitionEventsHasBeenSet = true; m_transitionEvents = value; }
/**
* <p>Specifies the actions performed, and the next state entered, when a
* <code>condition</code> evaluates to TRUE.</p>
*/
inline void SetTransitionEvents(Aws::Vector<TransitionEvent>&& value) { m_transitionEventsHasBeenSet = true; m_transitionEvents = std::move(value); }
/**
* <p>Specifies the actions performed, and the next state entered, when a
* <code>condition</code> evaluates to TRUE.</p>
*/
inline OnInputLifecycle& WithTransitionEvents(const Aws::Vector<TransitionEvent>& value) { SetTransitionEvents(value); return *this;}
/**
* <p>Specifies the actions performed, and the next state entered, when a
* <code>condition</code> evaluates to TRUE.</p>
*/
inline OnInputLifecycle& WithTransitionEvents(Aws::Vector<TransitionEvent>&& value) { SetTransitionEvents(std::move(value)); return *this;}
/**
* <p>Specifies the actions performed, and the next state entered, when a
* <code>condition</code> evaluates to TRUE.</p>
*/
inline OnInputLifecycle& AddTransitionEvents(const TransitionEvent& value) { m_transitionEventsHasBeenSet = true; m_transitionEvents.push_back(value); return *this; }
/**
* <p>Specifies the actions performed, and the next state entered, when a
* <code>condition</code> evaluates to TRUE.</p>
*/
inline OnInputLifecycle& AddTransitionEvents(TransitionEvent&& value) { m_transitionEventsHasBeenSet = true; m_transitionEvents.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Event> m_events;
bool m_eventsHasBeenSet;
Aws::Vector<TransitionEvent> m_transitionEvents;
bool m_transitionEventsHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws