/** * 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 { class CreateCommitResult { public: AWS_CODECOMMIT_API CreateCommitResult(); AWS_CODECOMMIT_API CreateCommitResult(const Aws::AmazonWebServiceResult& result); AWS_CODECOMMIT_API CreateCommitResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The full commit ID of the commit that contains your committed file * changes.

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

The full commit ID of the commit that contains your committed file * changes.

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

The full commit ID of the commit that contains your committed file * changes.

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

The full commit ID of the commit that contains your committed file * changes.

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

The full commit ID of the commit that contains your committed file * changes.

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

The full commit ID of the commit that contains your committed file * changes.

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

The full commit ID of the commit that contains your committed file * changes.

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

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

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

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

*/ 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 commited file changes.

*/ 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 commited file changes.

*/ 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 commited file changes.

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

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

*/ inline CreateCommitResult& 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 commited file changes.

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

The files added as part of the committed file changes.

*/ inline const Aws::Vector& GetFilesAdded() const{ return m_filesAdded; } /** *

The files added as part of the committed file changes.

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

The files added as part of the committed file changes.

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

The files added as part of the committed file changes.

*/ inline CreateCommitResult& WithFilesAdded(const Aws::Vector& value) { SetFilesAdded(value); return *this;} /** *

The files added as part of the committed file changes.

*/ inline CreateCommitResult& WithFilesAdded(Aws::Vector&& value) { SetFilesAdded(std::move(value)); return *this;} /** *

The files added as part of the committed file changes.

*/ inline CreateCommitResult& AddFilesAdded(const FileMetadata& value) { m_filesAdded.push_back(value); return *this; } /** *

The files added as part of the committed file changes.

*/ inline CreateCommitResult& AddFilesAdded(FileMetadata&& value) { m_filesAdded.push_back(std::move(value)); return *this; } /** *

The files updated as part of the commited file changes.

*/ inline const Aws::Vector& GetFilesUpdated() const{ return m_filesUpdated; } /** *

The files updated as part of the commited file changes.

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

The files updated as part of the commited file changes.

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

The files updated as part of the commited file changes.

*/ inline CreateCommitResult& WithFilesUpdated(const Aws::Vector& value) { SetFilesUpdated(value); return *this;} /** *

The files updated as part of the commited file changes.

*/ inline CreateCommitResult& WithFilesUpdated(Aws::Vector&& value) { SetFilesUpdated(std::move(value)); return *this;} /** *

The files updated as part of the commited file changes.

*/ inline CreateCommitResult& AddFilesUpdated(const FileMetadata& value) { m_filesUpdated.push_back(value); return *this; } /** *

The files updated as part of the commited file changes.

*/ inline CreateCommitResult& AddFilesUpdated(FileMetadata&& value) { m_filesUpdated.push_back(std::move(value)); return *this; } /** *

The files deleted as part of the committed file changes.

*/ inline const Aws::Vector& GetFilesDeleted() const{ return m_filesDeleted; } /** *

The files deleted as part of the committed file changes.

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

The files deleted as part of the committed file changes.

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

The files deleted as part of the committed file changes.

*/ inline CreateCommitResult& WithFilesDeleted(const Aws::Vector& value) { SetFilesDeleted(value); return *this;} /** *

The files deleted as part of the committed file changes.

*/ inline CreateCommitResult& WithFilesDeleted(Aws::Vector&& value) { SetFilesDeleted(std::move(value)); return *this;} /** *

The files deleted as part of the committed file changes.

*/ inline CreateCommitResult& AddFilesDeleted(const FileMetadata& value) { m_filesDeleted.push_back(value); return *this; } /** *

The files deleted as part of the committed file changes.

*/ inline CreateCommitResult& AddFilesDeleted(FileMetadata&& value) { m_filesDeleted.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 CreateCommitResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateCommitResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateCommitResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_commitId; Aws::String m_treeId; Aws::Vector m_filesAdded; Aws::Vector m_filesUpdated; Aws::Vector m_filesDeleted; Aws::String m_requestId; }; } // namespace Model } // namespace CodeCommit } // namespace Aws