/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CodePipeline { namespace Model { /** *

Represents the output of a GetPipeline action.

See * Also:

AWS * API Reference

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

Represents the structure of actions and stages to be performed in the * pipeline.

*/ inline const PipelineDeclaration& GetPipeline() const{ return m_pipeline; } /** *

Represents the structure of actions and stages to be performed in the * pipeline.

*/ inline void SetPipeline(const PipelineDeclaration& value) { m_pipeline = value; } /** *

Represents the structure of actions and stages to be performed in the * pipeline.

*/ inline void SetPipeline(PipelineDeclaration&& value) { m_pipeline = std::move(value); } /** *

Represents the structure of actions and stages to be performed in the * pipeline.

*/ inline GetPipelineResult& WithPipeline(const PipelineDeclaration& value) { SetPipeline(value); return *this;} /** *

Represents the structure of actions and stages to be performed in the * pipeline.

*/ inline GetPipelineResult& WithPipeline(PipelineDeclaration&& value) { SetPipeline(std::move(value)); return *this;} /** *

Represents the pipeline metadata information returned as part of the output * of a GetPipeline action.

*/ inline const PipelineMetadata& GetMetadata() const{ return m_metadata; } /** *

Represents the pipeline metadata information returned as part of the output * of a GetPipeline action.

*/ inline void SetMetadata(const PipelineMetadata& value) { m_metadata = value; } /** *

Represents the pipeline metadata information returned as part of the output * of a GetPipeline action.

*/ inline void SetMetadata(PipelineMetadata&& value) { m_metadata = std::move(value); } /** *

Represents the pipeline metadata information returned as part of the output * of a GetPipeline action.

*/ inline GetPipelineResult& WithMetadata(const PipelineMetadata& value) { SetMetadata(value); return *this;} /** *

Represents the pipeline metadata information returned as part of the output * of a GetPipeline action.

*/ inline GetPipelineResult& WithMetadata(PipelineMetadata&& value) { SetMetadata(std::move(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 GetPipelineResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetPipelineResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetPipelineResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: PipelineDeclaration m_pipeline; PipelineMetadata m_metadata; Aws::String m_requestId; }; } // namespace Model } // namespace CodePipeline } // namespace Aws