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-states/include/aws/states/model/StopExecutionRequest.h

174 lines
5.4 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/states/SFN_EXPORTS.h>
#include <aws/states/SFNRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SFN
{
namespace Model
{
/**
*/
class AWS_SFN_API StopExecutionRequest : public SFNRequest
{
public:
StopExecutionRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "StopExecution"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the execution to stop.</p>
*/
inline const Aws::String& GetExecutionArn() const{ return m_executionArn; }
/**
* <p>The Amazon Resource Name (ARN) of the execution to stop.</p>
*/
inline bool ExecutionArnHasBeenSet() const { return m_executionArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the execution to stop.</p>
*/
inline void SetExecutionArn(const Aws::String& value) { m_executionArnHasBeenSet = true; m_executionArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the execution to stop.</p>
*/
inline void SetExecutionArn(Aws::String&& value) { m_executionArnHasBeenSet = true; m_executionArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the execution to stop.</p>
*/
inline void SetExecutionArn(const char* value) { m_executionArnHasBeenSet = true; m_executionArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the execution to stop.</p>
*/
inline StopExecutionRequest& WithExecutionArn(const Aws::String& value) { SetExecutionArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the execution to stop.</p>
*/
inline StopExecutionRequest& WithExecutionArn(Aws::String&& value) { SetExecutionArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the execution to stop.</p>
*/
inline StopExecutionRequest& WithExecutionArn(const char* value) { SetExecutionArn(value); return *this;}
/**
* <p>The error code of the failure.</p>
*/
inline const Aws::String& GetError() const{ return m_error; }
/**
* <p>The error code of the failure.</p>
*/
inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
/**
* <p>The error code of the failure.</p>
*/
inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; }
/**
* <p>The error code of the failure.</p>
*/
inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
/**
* <p>The error code of the failure.</p>
*/
inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); }
/**
* <p>The error code of the failure.</p>
*/
inline StopExecutionRequest& WithError(const Aws::String& value) { SetError(value); return *this;}
/**
* <p>The error code of the failure.</p>
*/
inline StopExecutionRequest& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;}
/**
* <p>The error code of the failure.</p>
*/
inline StopExecutionRequest& WithError(const char* value) { SetError(value); return *this;}
/**
* <p>A more detailed explanation of the cause of the failure.</p>
*/
inline const Aws::String& GetCause() const{ return m_cause; }
/**
* <p>A more detailed explanation of the cause of the failure.</p>
*/
inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; }
/**
* <p>A more detailed explanation of the cause of the failure.</p>
*/
inline void SetCause(const Aws::String& value) { m_causeHasBeenSet = true; m_cause = value; }
/**
* <p>A more detailed explanation of the cause of the failure.</p>
*/
inline void SetCause(Aws::String&& value) { m_causeHasBeenSet = true; m_cause = std::move(value); }
/**
* <p>A more detailed explanation of the cause of the failure.</p>
*/
inline void SetCause(const char* value) { m_causeHasBeenSet = true; m_cause.assign(value); }
/**
* <p>A more detailed explanation of the cause of the failure.</p>
*/
inline StopExecutionRequest& WithCause(const Aws::String& value) { SetCause(value); return *this;}
/**
* <p>A more detailed explanation of the cause of the failure.</p>
*/
inline StopExecutionRequest& WithCause(Aws::String&& value) { SetCause(std::move(value)); return *this;}
/**
* <p>A more detailed explanation of the cause of the failure.</p>
*/
inline StopExecutionRequest& WithCause(const char* value) { SetCause(value); return *this;}
private:
Aws::String m_executionArn;
bool m_executionArnHasBeenSet;
Aws::String m_error;
bool m_errorHasBeenSet;
Aws::String m_cause;
bool m_causeHasBeenSet;
};
} // namespace Model
} // namespace SFN
} // namespace Aws