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

Represents the output of a PutActionRevision * action.

See Also:

AWS * API Reference

*/ class PutActionRevisionResult { public: AWS_CODEPIPELINE_API PutActionRevisionResult(); AWS_CODEPIPELINE_API PutActionRevisionResult(const Aws::AmazonWebServiceResult& result); AWS_CODEPIPELINE_API PutActionRevisionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Indicates whether the artifact revision was previously used in an execution * of the specified pipeline.

*/ inline bool GetNewRevision() const{ return m_newRevision; } /** *

Indicates whether the artifact revision was previously used in an execution * of the specified pipeline.

*/ inline void SetNewRevision(bool value) { m_newRevision = value; } /** *

Indicates whether the artifact revision was previously used in an execution * of the specified pipeline.

*/ inline PutActionRevisionResult& WithNewRevision(bool value) { SetNewRevision(value); return *this;} /** *

The ID of the current workflow state of the pipeline.

*/ inline const Aws::String& GetPipelineExecutionId() const{ return m_pipelineExecutionId; } /** *

The ID of the current workflow state of the pipeline.

*/ inline void SetPipelineExecutionId(const Aws::String& value) { m_pipelineExecutionId = value; } /** *

The ID of the current workflow state of the pipeline.

*/ inline void SetPipelineExecutionId(Aws::String&& value) { m_pipelineExecutionId = std::move(value); } /** *

The ID of the current workflow state of the pipeline.

*/ inline void SetPipelineExecutionId(const char* value) { m_pipelineExecutionId.assign(value); } /** *

The ID of the current workflow state of the pipeline.

*/ inline PutActionRevisionResult& WithPipelineExecutionId(const Aws::String& value) { SetPipelineExecutionId(value); return *this;} /** *

The ID of the current workflow state of the pipeline.

*/ inline PutActionRevisionResult& WithPipelineExecutionId(Aws::String&& value) { SetPipelineExecutionId(std::move(value)); return *this;} /** *

The ID of the current workflow state of the pipeline.

*/ inline PutActionRevisionResult& WithPipelineExecutionId(const char* value) { SetPipelineExecutionId(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline PutActionRevisionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutActionRevisionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutActionRevisionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: bool m_newRevision; Aws::String m_pipelineExecutionId; Aws::String m_requestId; }; } // namespace Model } // namespace CodePipeline } // namespace Aws