/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 GetPipelineState * action.

See Also:

AWS * API Reference

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

The name of the pipeline for which you want to get the state.

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

The name of the pipeline for which you want to get the state.

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

The name of the pipeline for which you want to get the state.

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

The name of the pipeline for which you want to get the state.

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

The name of the pipeline for which you want to get the state.

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

The name of the pipeline for which you want to get the state.

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

The name of the pipeline for which you want to get the state.

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

The version number of the pipeline.

A newly created pipeline is * always assigned a version number of 1.

*/ inline int GetPipelineVersion() const{ return m_pipelineVersion; } /** *

The version number of the pipeline.

A newly created pipeline is * always assigned a version number of 1.

*/ inline void SetPipelineVersion(int value) { m_pipelineVersion = value; } /** *

The version number of the pipeline.

A newly created pipeline is * always assigned a version number of 1.

*/ inline GetPipelineStateResult& WithPipelineVersion(int value) { SetPipelineVersion(value); return *this;} /** *

A list of the pipeline stage output information, including stage name, state, * most recent run details, whether the stage is disabled, and other data.

*/ inline const Aws::Vector& GetStageStates() const{ return m_stageStates; } /** *

A list of the pipeline stage output information, including stage name, state, * most recent run details, whether the stage is disabled, and other data.

*/ inline void SetStageStates(const Aws::Vector& value) { m_stageStates = value; } /** *

A list of the pipeline stage output information, including stage name, state, * most recent run details, whether the stage is disabled, and other data.

*/ inline void SetStageStates(Aws::Vector&& value) { m_stageStates = std::move(value); } /** *

A list of the pipeline stage output information, including stage name, state, * most recent run details, whether the stage is disabled, and other data.

*/ inline GetPipelineStateResult& WithStageStates(const Aws::Vector& value) { SetStageStates(value); return *this;} /** *

A list of the pipeline stage output information, including stage name, state, * most recent run details, whether the stage is disabled, and other data.

*/ inline GetPipelineStateResult& WithStageStates(Aws::Vector&& value) { SetStageStates(std::move(value)); return *this;} /** *

A list of the pipeline stage output information, including stage name, state, * most recent run details, whether the stage is disabled, and other data.

*/ inline GetPipelineStateResult& AddStageStates(const StageState& value) { m_stageStates.push_back(value); return *this; } /** *

A list of the pipeline stage output information, including stage name, state, * most recent run details, whether the stage is disabled, and other data.

*/ inline GetPipelineStateResult& AddStageStates(StageState&& value) { m_stageStates.push_back(std::move(value)); return *this; } /** *

The date and time the pipeline was created, in timestamp format.

*/ inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; } /** *

The date and time the pipeline was created, in timestamp format.

*/ inline void SetCreated(const Aws::Utils::DateTime& value) { m_created = value; } /** *

The date and time the pipeline was created, in timestamp format.

*/ inline void SetCreated(Aws::Utils::DateTime&& value) { m_created = std::move(value); } /** *

The date and time the pipeline was created, in timestamp format.

*/ inline GetPipelineStateResult& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;} /** *

The date and time the pipeline was created, in timestamp format.

*/ inline GetPipelineStateResult& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;} /** *

The date and time the pipeline was last updated, in timestamp format.

*/ inline const Aws::Utils::DateTime& GetUpdated() const{ return m_updated; } /** *

The date and time the pipeline was last updated, in timestamp format.

*/ inline void SetUpdated(const Aws::Utils::DateTime& value) { m_updated = value; } /** *

The date and time the pipeline was last updated, in timestamp format.

*/ inline void SetUpdated(Aws::Utils::DateTime&& value) { m_updated = std::move(value); } /** *

The date and time the pipeline was last updated, in timestamp format.

*/ inline GetPipelineStateResult& WithUpdated(const Aws::Utils::DateTime& value) { SetUpdated(value); return *this;} /** *

The date and time the pipeline was last updated, in timestamp format.

*/ inline GetPipelineStateResult& WithUpdated(Aws::Utils::DateTime&& value) { SetUpdated(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 GetPipelineStateResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetPipelineStateResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetPipelineStateResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_pipelineName; int m_pipelineVersion; Aws::Vector m_stageStates; Aws::Utils::DateTime m_created; Aws::Utils::DateTime m_updated; Aws::String m_requestId; }; } // namespace Model } // namespace CodePipeline } // namespace Aws