/** * 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 batch get repositories operation.

See * Also:

AWS * API Reference

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

A list of repositories returned by the batch get repositories operation.

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

A list of repositories returned by the batch get repositories operation.

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

A list of repositories returned by the batch get repositories operation.

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

A list of repositories returned by the batch get repositories operation.

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

A list of repositories returned by the batch get repositories operation.

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

A list of repositories returned by the batch get repositories operation.

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

A list of repositories returned by the batch get repositories operation.

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

Returns a list of repository names for which information could not be * found.

*/ inline const Aws::Vector& GetRepositoriesNotFound() const{ return m_repositoriesNotFound; } /** *

Returns a list of repository names for which information could not be * found.

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

Returns a list of repository names for which information could not be * found.

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

Returns a list of repository names for which information could not be * found.

*/ inline BatchGetRepositoriesResult& WithRepositoriesNotFound(const Aws::Vector& value) { SetRepositoriesNotFound(value); return *this;} /** *

Returns a list of repository names for which information could not be * found.

*/ inline BatchGetRepositoriesResult& WithRepositoriesNotFound(Aws::Vector&& value) { SetRepositoriesNotFound(std::move(value)); return *this;} /** *

Returns a list of repository names for which information could not be * found.

*/ inline BatchGetRepositoriesResult& AddRepositoriesNotFound(const Aws::String& value) { m_repositoriesNotFound.push_back(value); return *this; } /** *

Returns a list of repository names for which information could not be * found.

*/ inline BatchGetRepositoriesResult& AddRepositoriesNotFound(Aws::String&& value) { m_repositoriesNotFound.push_back(std::move(value)); return *this; } /** *

Returns a list of repository names for which information could not be * found.

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