/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodePipeline { namespace Model { /** *

The interaction that stopped a pipeline execution.

See Also:

* AWS * API Reference

*/ class StopExecutionTrigger { public: AWS_CODEPIPELINE_API StopExecutionTrigger(); AWS_CODEPIPELINE_API StopExecutionTrigger(Aws::Utils::Json::JsonView jsonValue); AWS_CODEPIPELINE_API StopExecutionTrigger& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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