/** * 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 ListPipelines action.

See * Also:

AWS * API Reference

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

The list of pipelines.

*/ inline const Aws::Vector& GetPipelines() const{ return m_pipelines; } /** *

The list of pipelines.

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

The list of pipelines.

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

The list of pipelines.

*/ inline ListPipelinesResult& WithPipelines(const Aws::Vector& value) { SetPipelines(value); return *this;} /** *

The list of pipelines.

*/ inline ListPipelinesResult& WithPipelines(Aws::Vector&& value) { SetPipelines(std::move(value)); return *this;} /** *

The list of pipelines.

*/ inline ListPipelinesResult& AddPipelines(const PipelineSummary& value) { m_pipelines.push_back(value); return *this; } /** *

The list of pipelines.

*/ inline ListPipelinesResult& AddPipelines(PipelineSummary&& value) { m_pipelines.push_back(std::move(value)); return *this; } /** *

If the amount of returned information is significantly large, an identifier * is also returned. It can be used in a subsequent list pipelines call to return * the next set of pipelines in the list.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

If the amount of returned information is significantly large, an identifier * is also returned. It can be used in a subsequent list pipelines call to return * the next set of pipelines in the list.

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

If the amount of returned information is significantly large, an identifier * is also returned. It can be used in a subsequent list pipelines call to return * the next set of pipelines in the list.

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

If the amount of returned information is significantly large, an identifier * is also returned. It can be used in a subsequent list pipelines call to return * the next set of pipelines in the list.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

If the amount of returned information is significantly large, an identifier * is also returned. It can be used in a subsequent list pipelines call to return * the next set of pipelines in the list.

*/ inline ListPipelinesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

If the amount of returned information is significantly large, an identifier * is also returned. It can be used in a subsequent list pipelines call to return * the next set of pipelines in the list.

*/ inline ListPipelinesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

If the amount of returned information is significantly large, an identifier * is also returned. It can be used in a subsequent list pipelines call to return * the next set of pipelines in the list.

*/ inline ListPipelinesResult& WithNextToken(const char* value) { SetNextToken(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 ListPipelinesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListPipelinesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListPipelinesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_pipelines; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace CodePipeline } // namespace Aws