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

The full SHA ID of the commit that contains this file change.

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

The full SHA ID of the commit that contains this file change.

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

The full SHA ID of the commit that contains this file change.

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

The full SHA ID of the commit that contains this file change.

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

The full SHA ID of the commit that contains this file change.

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

The full SHA ID of the commit that contains this file change.

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

The full SHA ID of the commit that contains this file change.

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

The ID of the blob, which is its SHA-1 pointer.

*/ inline const Aws::String& GetBlobId() const{ return m_blobId; } /** *

The ID of the blob, which is its SHA-1 pointer.

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

The ID of the blob, which is its SHA-1 pointer.

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

The ID of the blob, which is its SHA-1 pointer.

*/ inline void SetBlobId(const char* value) { m_blobId.assign(value); } /** *

The ID of the blob, which is its SHA-1 pointer.

*/ inline PutFileResult& WithBlobId(const Aws::String& value) { SetBlobId(value); return *this;} /** *

The ID of the blob, which is its SHA-1 pointer.

*/ inline PutFileResult& WithBlobId(Aws::String&& value) { SetBlobId(std::move(value)); return *this;} /** *

The ID of the blob, which is its SHA-1 pointer.

*/ inline PutFileResult& WithBlobId(const char* value) { SetBlobId(value); return *this;} /** *

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

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

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

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

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

*/ 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 * this file change.

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

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

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

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

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

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

*/ inline PutFileResult& WithTreeId(const char* value) { SetTreeId(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 PutFileResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutFileResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutFileResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_commitId; Aws::String m_blobId; Aws::String m_treeId; Aws::String m_requestId; }; } // namespace Model } // namespace CodeCommit } // namespace Aws