/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The interaction that stopped a pipeline execution.See Also:
* AWS
* API Reference
The user-specified reason the pipeline was stopped.
*/ inline const Aws::String& GetReason() const{ return m_reason; } /** *The user-specified reason the pipeline was stopped.
*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *The user-specified reason the pipeline was stopped.
*/ inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *The user-specified reason the pipeline was stopped.
*/ inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *The user-specified reason the pipeline was stopped.
*/ inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } /** *The user-specified reason the pipeline was stopped.
*/ inline StopExecutionTrigger& WithReason(const Aws::String& value) { SetReason(value); return *this;} /** *The user-specified reason the pipeline was stopped.
*/ inline StopExecutionTrigger& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} /** *The user-specified reason the pipeline was stopped.
*/ inline StopExecutionTrigger& WithReason(const char* value) { SetReason(value); return *this;} private: Aws::String m_reason; bool m_reasonHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws