/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CodeCommit { namespace Model { class GetFolderResult { public: AWS_CODECOMMIT_API GetFolderResult(); AWS_CODECOMMIT_API GetFolderResult(const Aws::AmazonWebServiceResult& result); AWS_CODECOMMIT_API GetFolderResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The full commit ID used as a reference for the returned version of the folder * content.

*/ inline const Aws::String& GetCommitId() const{ return m_commitId; } /** *

The full commit ID used as a reference for the returned version of the folder * content.

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

The full commit ID used as a reference for the returned version of the folder * content.

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

The full commit ID used as a reference for the returned version of the folder * content.

*/ inline void SetCommitId(const char* value) { m_commitId.assign(value); } /** *

The full commit ID used as a reference for the returned version of the folder * content.

*/ inline GetFolderResult& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;} /** *

The full commit ID used as a reference for the returned version of the folder * content.

*/ inline GetFolderResult& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;} /** *

The full commit ID used as a reference for the returned version of the folder * content.

*/ inline GetFolderResult& WithCommitId(const char* value) { SetCommitId(value); return *this;} /** *

The fully qualified path of the folder whose contents are returned.

*/ inline const Aws::String& GetFolderPath() const{ return m_folderPath; } /** *

The fully qualified path of the folder whose contents are returned.

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

The fully qualified path of the folder whose contents are returned.

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

The fully qualified path of the folder whose contents are returned.

*/ inline void SetFolderPath(const char* value) { m_folderPath.assign(value); } /** *

The fully qualified path of the folder whose contents are returned.

*/ inline GetFolderResult& WithFolderPath(const Aws::String& value) { SetFolderPath(value); return *this;} /** *

The fully qualified path of the folder whose contents are returned.

*/ inline GetFolderResult& WithFolderPath(Aws::String&& value) { SetFolderPath(std::move(value)); return *this;} /** *

The fully qualified path of the folder whose contents are returned.

*/ inline GetFolderResult& WithFolderPath(const char* value) { SetFolderPath(value); return *this;} /** *

The full SHA-1 pointer of the tree information for the commit that contains * the folder.

*/ inline const Aws::String& GetTreeId() const{ return m_treeId; } /** *

The full SHA-1 pointer of the tree information for the commit that contains * the folder.

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

The full SHA-1 pointer of the tree information for the commit that contains * the folder.

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

The full SHA-1 pointer of the tree information for the commit that contains * the folder.

*/ inline void SetTreeId(const char* value) { m_treeId.assign(value); } /** *

The full SHA-1 pointer of the tree information for the commit that contains * the folder.

*/ inline GetFolderResult& WithTreeId(const Aws::String& value) { SetTreeId(value); return *this;} /** *

The full SHA-1 pointer of the tree information for the commit that contains * the folder.

*/ inline GetFolderResult& WithTreeId(Aws::String&& value) { SetTreeId(std::move(value)); return *this;} /** *

The full SHA-1 pointer of the tree information for the commit that contains * the folder.

*/ inline GetFolderResult& WithTreeId(const char* value) { SetTreeId(value); return *this;} /** *

The list of folders that exist under the specified folder, if any.

*/ inline const Aws::Vector& GetSubFolders() const{ return m_subFolders; } /** *

The list of folders that exist under the specified folder, if any.

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

The list of folders that exist under the specified folder, if any.

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

The list of folders that exist under the specified folder, if any.

*/ inline GetFolderResult& WithSubFolders(const Aws::Vector& value) { SetSubFolders(value); return *this;} /** *

The list of folders that exist under the specified folder, if any.

*/ inline GetFolderResult& WithSubFolders(Aws::Vector&& value) { SetSubFolders(std::move(value)); return *this;} /** *

The list of folders that exist under the specified folder, if any.

*/ inline GetFolderResult& AddSubFolders(const Folder& value) { m_subFolders.push_back(value); return *this; } /** *

The list of folders that exist under the specified folder, if any.

*/ inline GetFolderResult& AddSubFolders(Folder&& value) { m_subFolders.push_back(std::move(value)); return *this; } /** *

The list of files in the specified folder, if any.

*/ inline const Aws::Vector& GetFiles() const{ return m_files; } /** *

The list of files in the specified folder, if any.

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

The list of files in the specified folder, if any.

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

The list of files in the specified folder, if any.

*/ inline GetFolderResult& WithFiles(const Aws::Vector& value) { SetFiles(value); return *this;} /** *

The list of files in the specified folder, if any.

*/ inline GetFolderResult& WithFiles(Aws::Vector&& value) { SetFiles(std::move(value)); return *this;} /** *

The list of files in the specified folder, if any.

*/ inline GetFolderResult& AddFiles(const File& value) { m_files.push_back(value); return *this; } /** *

The list of files in the specified folder, if any.

*/ inline GetFolderResult& AddFiles(File&& value) { m_files.push_back(std::move(value)); return *this; } /** *

The list of symbolic links to other files and folders in the specified * folder, if any.

*/ inline const Aws::Vector& GetSymbolicLinks() const{ return m_symbolicLinks; } /** *

The list of symbolic links to other files and folders in the specified * folder, if any.

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

The list of symbolic links to other files and folders in the specified * folder, if any.

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

The list of symbolic links to other files and folders in the specified * folder, if any.

*/ inline GetFolderResult& WithSymbolicLinks(const Aws::Vector& value) { SetSymbolicLinks(value); return *this;} /** *

The list of symbolic links to other files and folders in the specified * folder, if any.

*/ inline GetFolderResult& WithSymbolicLinks(Aws::Vector&& value) { SetSymbolicLinks(std::move(value)); return *this;} /** *

The list of symbolic links to other files and folders in the specified * folder, if any.

*/ inline GetFolderResult& AddSymbolicLinks(const SymbolicLink& value) { m_symbolicLinks.push_back(value); return *this; } /** *

The list of symbolic links to other files and folders in the specified * folder, if any.

*/ inline GetFolderResult& AddSymbolicLinks(SymbolicLink&& value) { m_symbolicLinks.push_back(std::move(value)); return *this; } /** *

The list of submodules in the specified folder, if any.

*/ inline const Aws::Vector& GetSubModules() const{ return m_subModules; } /** *

The list of submodules in the specified folder, if any.

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

The list of submodules in the specified folder, if any.

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

The list of submodules in the specified folder, if any.

*/ inline GetFolderResult& WithSubModules(const Aws::Vector& value) { SetSubModules(value); return *this;} /** *

The list of submodules in the specified folder, if any.

*/ inline GetFolderResult& WithSubModules(Aws::Vector&& value) { SetSubModules(std::move(value)); return *this;} /** *

The list of submodules in the specified folder, if any.

*/ inline GetFolderResult& AddSubModules(const SubModule& value) { m_subModules.push_back(value); return *this; } /** *

The list of submodules in the specified folder, if any.

*/ inline GetFolderResult& AddSubModules(SubModule&& value) { m_subModules.push_back(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 GetFolderResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetFolderResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetFolderResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_commitId; Aws::String m_folderPath; Aws::String m_treeId; Aws::Vector m_subFolders; Aws::Vector m_files; Aws::Vector m_symbolicLinks; Aws::Vector m_subModules; Aws::String m_requestId; }; } // namespace Model } // namespace CodeCommit } // namespace Aws