/** * 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 { /** *

Represents the context of an action in the stage of a pipeline to a job * worker.

See Also:

AWS * API Reference

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

The name of the action in the context of a job.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the action in the context of a job.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the action in the context of a job.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the action in the context of a job.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the action in the context of a job.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the action in the context of a job.

*/ inline ActionContext& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the action in the context of a job.

*/ inline ActionContext& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the action in the context of a job.

*/ inline ActionContext& WithName(const char* value) { SetName(value); return *this;} /** *

The system-generated unique ID that corresponds to an action's execution.

*/ inline const Aws::String& GetActionExecutionId() const{ return m_actionExecutionId; } /** *

The system-generated unique ID that corresponds to an action's execution.

*/ inline bool ActionExecutionIdHasBeenSet() const { return m_actionExecutionIdHasBeenSet; } /** *

The system-generated unique ID that corresponds to an action's execution.

*/ inline void SetActionExecutionId(const Aws::String& value) { m_actionExecutionIdHasBeenSet = true; m_actionExecutionId = value; } /** *

The system-generated unique ID that corresponds to an action's execution.

*/ inline void SetActionExecutionId(Aws::String&& value) { m_actionExecutionIdHasBeenSet = true; m_actionExecutionId = std::move(value); } /** *

The system-generated unique ID that corresponds to an action's execution.

*/ inline void SetActionExecutionId(const char* value) { m_actionExecutionIdHasBeenSet = true; m_actionExecutionId.assign(value); } /** *

The system-generated unique ID that corresponds to an action's execution.

*/ inline ActionContext& WithActionExecutionId(const Aws::String& value) { SetActionExecutionId(value); return *this;} /** *

The system-generated unique ID that corresponds to an action's execution.

*/ inline ActionContext& WithActionExecutionId(Aws::String&& value) { SetActionExecutionId(std::move(value)); return *this;} /** *

The system-generated unique ID that corresponds to an action's execution.

*/ inline ActionContext& WithActionExecutionId(const char* value) { SetActionExecutionId(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_actionExecutionId; bool m_actionExecutionIdHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws