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

Represents the input of a PutActionRevision * action.

See Also:

AWS * API Reference

*/ class PutActionRevisionRequest : public CodePipelineRequest { public: AWS_CODEPIPELINE_API PutActionRevisionRequest(); // 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 "PutActionRevision"; } AWS_CODEPIPELINE_API Aws::String SerializePayload() const override; AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the pipeline that starts processing the revision to the * source.

*/ inline const Aws::String& GetPipelineName() const{ return m_pipelineName; } /** *

The name of the pipeline that starts processing the revision to the * source.

*/ inline bool PipelineNameHasBeenSet() const { return m_pipelineNameHasBeenSet; } /** *

The name of the pipeline that starts processing the revision to the * source.

*/ inline void SetPipelineName(const Aws::String& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = value; } /** *

The name of the pipeline that starts processing the revision to the * source.

*/ inline void SetPipelineName(Aws::String&& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = std::move(value); } /** *

The name of the pipeline that starts processing the revision to the * source.

*/ inline void SetPipelineName(const char* value) { m_pipelineNameHasBeenSet = true; m_pipelineName.assign(value); } /** *

The name of the pipeline that starts processing the revision to the * source.

*/ inline PutActionRevisionRequest& WithPipelineName(const Aws::String& value) { SetPipelineName(value); return *this;} /** *

The name of the pipeline that starts processing the revision to the * source.

*/ inline PutActionRevisionRequest& WithPipelineName(Aws::String&& value) { SetPipelineName(std::move(value)); return *this;} /** *

The name of the pipeline that starts processing the revision to the * source.

*/ inline PutActionRevisionRequest& WithPipelineName(const char* value) { SetPipelineName(value); return *this;} /** *

The name of the stage that contains the action that acts on the revision.

*/ inline const Aws::String& GetStageName() const{ return m_stageName; } /** *

The name of the stage that contains the action that acts on the revision.

*/ inline bool StageNameHasBeenSet() const { return m_stageNameHasBeenSet; } /** *

The name of the stage that contains the action that acts on the revision.

*/ inline void SetStageName(const Aws::String& value) { m_stageNameHasBeenSet = true; m_stageName = value; } /** *

The name of the stage that contains the action that acts on the revision.

*/ inline void SetStageName(Aws::String&& value) { m_stageNameHasBeenSet = true; m_stageName = std::move(value); } /** *

The name of the stage that contains the action that acts on the revision.

*/ inline void SetStageName(const char* value) { m_stageNameHasBeenSet = true; m_stageName.assign(value); } /** *

The name of the stage that contains the action that acts on the revision.

*/ inline PutActionRevisionRequest& WithStageName(const Aws::String& value) { SetStageName(value); return *this;} /** *

The name of the stage that contains the action that acts on the revision.

*/ inline PutActionRevisionRequest& WithStageName(Aws::String&& value) { SetStageName(std::move(value)); return *this;} /** *

The name of the stage that contains the action that acts on the revision.

*/ inline PutActionRevisionRequest& WithStageName(const char* value) { SetStageName(value); return *this;} /** *

The name of the action that processes the revision.

*/ inline const Aws::String& GetActionName() const{ return m_actionName; } /** *

The name of the action that processes the revision.

*/ inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; } /** *

The name of the action that processes the revision.

*/ inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; } /** *

The name of the action that processes the revision.

*/ inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); } /** *

The name of the action that processes the revision.

*/ inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); } /** *

The name of the action that processes the revision.

*/ inline PutActionRevisionRequest& WithActionName(const Aws::String& value) { SetActionName(value); return *this;} /** *

The name of the action that processes the revision.

*/ inline PutActionRevisionRequest& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;} /** *

The name of the action that processes the revision.

*/ inline PutActionRevisionRequest& WithActionName(const char* value) { SetActionName(value); return *this;} /** *

Represents information about the version (or revision) of an action.

*/ inline const ActionRevision& GetActionRevision() const{ return m_actionRevision; } /** *

Represents information about the version (or revision) of an action.

*/ inline bool ActionRevisionHasBeenSet() const { return m_actionRevisionHasBeenSet; } /** *

Represents information about the version (or revision) of an action.

*/ inline void SetActionRevision(const ActionRevision& value) { m_actionRevisionHasBeenSet = true; m_actionRevision = value; } /** *

Represents information about the version (or revision) of an action.

*/ inline void SetActionRevision(ActionRevision&& value) { m_actionRevisionHasBeenSet = true; m_actionRevision = std::move(value); } /** *

Represents information about the version (or revision) of an action.

*/ inline PutActionRevisionRequest& WithActionRevision(const ActionRevision& value) { SetActionRevision(value); return *this;} /** *

Represents information about the version (or revision) of an action.

*/ inline PutActionRevisionRequest& WithActionRevision(ActionRevision&& value) { SetActionRevision(std::move(value)); return *this;} private: Aws::String m_pipelineName; bool m_pipelineNameHasBeenSet = false; Aws::String m_stageName; bool m_stageNameHasBeenSet = false; Aws::String m_actionName; bool m_actionNameHasBeenSet = false; ActionRevision m_actionRevision; bool m_actionRevisionHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws