This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-swf/include/aws/swf/model/RequestCancelActivityTaskDecisionAttributes.h

103 lines
3.8 KiB
C++

/**
* 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>RequestCancelActivityTask</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/RequestCancelActivityTaskDecisionAttributes">AWS
* API Reference</a></p>
*/
class AWS_SWF_API RequestCancelActivityTaskDecisionAttributes
{
public:
RequestCancelActivityTaskDecisionAttributes();
RequestCancelActivityTaskDecisionAttributes(Aws::Utils::Json::JsonView jsonValue);
RequestCancelActivityTaskDecisionAttributes& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The <code>activityId</code> of the activity task to be canceled.</p>
*/
inline const Aws::String& GetActivityId() const{ return m_activityId; }
/**
* <p>The <code>activityId</code> of the activity task to be canceled.</p>
*/
inline bool ActivityIdHasBeenSet() const { return m_activityIdHasBeenSet; }
/**
* <p>The <code>activityId</code> of the activity task to be canceled.</p>
*/
inline void SetActivityId(const Aws::String& value) { m_activityIdHasBeenSet = true; m_activityId = value; }
/**
* <p>The <code>activityId</code> of the activity task to be canceled.</p>
*/
inline void SetActivityId(Aws::String&& value) { m_activityIdHasBeenSet = true; m_activityId = std::move(value); }
/**
* <p>The <code>activityId</code> of the activity task to be canceled.</p>
*/
inline void SetActivityId(const char* value) { m_activityIdHasBeenSet = true; m_activityId.assign(value); }
/**
* <p>The <code>activityId</code> of the activity task to be canceled.</p>
*/
inline RequestCancelActivityTaskDecisionAttributes& WithActivityId(const Aws::String& value) { SetActivityId(value); return *this;}
/**
* <p>The <code>activityId</code> of the activity task to be canceled.</p>
*/
inline RequestCancelActivityTaskDecisionAttributes& WithActivityId(Aws::String&& value) { SetActivityId(std::move(value)); return *this;}
/**
* <p>The <code>activityId</code> of the activity task to be canceled.</p>
*/
inline RequestCancelActivityTaskDecisionAttributes& WithActivityId(const char* value) { SetActivityId(value); return *this;}
private:
Aws::String m_activityId;
bool m_activityIdHasBeenSet;
};
} // namespace Model
} // namespace SWF
} // namespace Aws