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,102 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/swf/SWF_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SWF
{
namespace Model
{
/**
* <p>Provides the details of the <code>CancelTimer</code> decision.</p> <p>
* <b>Access Control</b> </p> <p>You can use IAM policies to control this
* decision's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a
* <code>Resource</code> element with the domain name to limit the action to only
* specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow
* or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM
* policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller
* doesn't have sufficient permissions to invoke the action, or the parameter
* values fall outside the specified constraints, the action fails. The associated
* event attribute's <code>cause</code> parameter is set to
* <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see
* <a
* href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using
* IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
* Guide</i>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/swf-2012-01-25/CancelTimerDecisionAttributes">AWS
* API Reference</a></p>
*/
class AWS_SWF_API CancelTimerDecisionAttributes
{
public:
CancelTimerDecisionAttributes();
CancelTimerDecisionAttributes(Aws::Utils::Json::JsonView jsonValue);
CancelTimerDecisionAttributes& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The unique ID of the timer to cancel.</p>
*/
inline const Aws::String& GetTimerId() const{ return m_timerId; }
/**
* <p> The unique ID of the timer to cancel.</p>
*/
inline bool TimerIdHasBeenSet() const { return m_timerIdHasBeenSet; }
/**
* <p> The unique ID of the timer to cancel.</p>
*/
inline void SetTimerId(const Aws::String& value) { m_timerIdHasBeenSet = true; m_timerId = value; }
/**
* <p> The unique ID of the timer to cancel.</p>
*/
inline void SetTimerId(Aws::String&& value) { m_timerIdHasBeenSet = true; m_timerId = std::move(value); }
/**
* <p> The unique ID of the timer to cancel.</p>
*/
inline void SetTimerId(const char* value) { m_timerIdHasBeenSet = true; m_timerId.assign(value); }
/**
* <p> The unique ID of the timer to cancel.</p>
*/
inline CancelTimerDecisionAttributes& WithTimerId(const Aws::String& value) { SetTimerId(value); return *this;}
/**
* <p> The unique ID of the timer to cancel.</p>
*/
inline CancelTimerDecisionAttributes& WithTimerId(Aws::String&& value) { SetTimerId(std::move(value)); return *this;}
/**
* <p> The unique ID of the timer to cancel.</p>
*/
inline CancelTimerDecisionAttributes& WithTimerId(const char* value) { SetTimerId(value); return *this;}
private:
Aws::String m_timerId;
bool m_timerIdHasBeenSet;
};
} // namespace Model
} // namespace SWF
} // namespace Aws