/** * 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 CodeCommit { namespace Model { /** *

Represents the output of a list repositories operation.

See * Also:

AWS * API Reference

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

Lists the repositories called by the list repositories operation.

*/ inline const Aws::Vector& GetRepositories() const{ return m_repositories; } /** *

Lists the repositories called by the list repositories operation.

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

Lists the repositories called by the list repositories operation.

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

Lists the repositories called by the list repositories operation.

*/ inline ListRepositoriesResult& WithRepositories(const Aws::Vector& value) { SetRepositories(value); return *this;} /** *

Lists the repositories called by the list repositories operation.

*/ inline ListRepositoriesResult& WithRepositories(Aws::Vector&& value) { SetRepositories(std::move(value)); return *this;} /** *

Lists the repositories called by the list repositories operation.

*/ inline ListRepositoriesResult& AddRepositories(const RepositoryNameIdPair& value) { m_repositories.push_back(value); return *this; } /** *

Lists the repositories called by the list repositories operation.

*/ inline ListRepositoriesResult& AddRepositories(RepositoryNameIdPair&& value) { m_repositories.push_back(std::move(value)); return *this; } /** *

An enumeration token that allows the operation to batch the results of the * operation. Batch sizes are 1,000 for list repository operations. When the client * sends the token back to AWS CodeCommit, another page of 1,000 records is * retrieved.

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

An enumeration token that allows the operation to batch the results of the * operation. Batch sizes are 1,000 for list repository operations. When the client * sends the token back to AWS CodeCommit, another page of 1,000 records is * retrieved.

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

An enumeration token that allows the operation to batch the results of the * operation. Batch sizes are 1,000 for list repository operations. When the client * sends the token back to AWS CodeCommit, another page of 1,000 records is * retrieved.

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

An enumeration token that allows the operation to batch the results of the * operation. Batch sizes are 1,000 for list repository operations. When the client * sends the token back to AWS CodeCommit, another page of 1,000 records is * retrieved.

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

An enumeration token that allows the operation to batch the results of the * operation. Batch sizes are 1,000 for list repository operations. When the client * sends the token back to AWS CodeCommit, another page of 1,000 records is * retrieved.

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

An enumeration token that allows the operation to batch the results of the * operation. Batch sizes are 1,000 for list repository operations. When the client * sends the token back to AWS CodeCommit, another page of 1,000 records is * retrieved.

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

An enumeration token that allows the operation to batch the results of the * operation. Batch sizes are 1,000 for list repository operations. When the client * sends the token back to AWS CodeCommit, another page of 1,000 records is * retrieved.

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