/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Returns information about a specific commit.See Also:
AWS
* API Reference
The full SHA ID of the specified commit.
*/ inline const Aws::String& GetCommitId() const{ return m_commitId; } /** *The full SHA ID of the specified commit.
*/ inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; } /** *The full SHA ID of the specified commit.
*/ inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; } /** *The full SHA ID of the specified commit.
*/ inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = std::move(value); } /** *The full SHA ID of the specified commit.
*/ inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); } /** *The full SHA ID of the specified commit.
*/ inline Commit& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;} /** *The full SHA ID of the specified commit.
*/ inline Commit& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;} /** *The full SHA ID of the specified commit.
*/ inline Commit& WithCommitId(const char* value) { SetCommitId(value); return *this;} /** *Tree information for the specified commit.
*/ inline const Aws::String& GetTreeId() const{ return m_treeId; } /** *Tree information for the specified commit.
*/ inline bool TreeIdHasBeenSet() const { return m_treeIdHasBeenSet; } /** *Tree information for the specified commit.
*/ inline void SetTreeId(const Aws::String& value) { m_treeIdHasBeenSet = true; m_treeId = value; } /** *Tree information for the specified commit.
*/ inline void SetTreeId(Aws::String&& value) { m_treeIdHasBeenSet = true; m_treeId = std::move(value); } /** *Tree information for the specified commit.
*/ inline void SetTreeId(const char* value) { m_treeIdHasBeenSet = true; m_treeId.assign(value); } /** *Tree information for the specified commit.
*/ inline Commit& WithTreeId(const Aws::String& value) { SetTreeId(value); return *this;} /** *Tree information for the specified commit.
*/ inline Commit& WithTreeId(Aws::String&& value) { SetTreeId(std::move(value)); return *this;} /** *Tree information for the specified commit.
*/ inline Commit& WithTreeId(const char* value) { SetTreeId(value); return *this;} /** *A list of parent commits for the specified commit. Each parent commit ID is * the full commit ID.
*/ inline const Aws::VectorA list of parent commits for the specified commit. Each parent commit ID is * the full commit ID.
*/ inline bool ParentsHasBeenSet() const { return m_parentsHasBeenSet; } /** *A list of parent commits for the specified commit. Each parent commit ID is * the full commit ID.
*/ inline void SetParents(const Aws::VectorA list of parent commits for the specified commit. Each parent commit ID is * the full commit ID.
*/ inline void SetParents(Aws::VectorA list of parent commits for the specified commit. Each parent commit ID is * the full commit ID.
*/ inline Commit& WithParents(const Aws::VectorA list of parent commits for the specified commit. Each parent commit ID is * the full commit ID.
*/ inline Commit& WithParents(Aws::VectorA list of parent commits for the specified commit. Each parent commit ID is * the full commit ID.
*/ inline Commit& AddParents(const Aws::String& value) { m_parentsHasBeenSet = true; m_parents.push_back(value); return *this; } /** *A list of parent commits for the specified commit. Each parent commit ID is * the full commit ID.
*/ inline Commit& AddParents(Aws::String&& value) { m_parentsHasBeenSet = true; m_parents.push_back(std::move(value)); return *this; } /** *A list of parent commits for the specified commit. Each parent commit ID is * the full commit ID.
*/ inline Commit& AddParents(const char* value) { m_parentsHasBeenSet = true; m_parents.push_back(value); return *this; } /** *The commit message associated with the specified commit.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *The commit message associated with the specified commit.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *The commit message associated with the specified commit.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *The commit message associated with the specified commit.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *The commit message associated with the specified commit.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *The commit message associated with the specified commit.
*/ inline Commit& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *The commit message associated with the specified commit.
*/ inline Commit& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *The commit message associated with the specified commit.
*/ inline Commit& WithMessage(const char* value) { SetMessage(value); return *this;} /** *Information about the author of the specified commit. Information includes * the date in timestamp format with GMT offset, the name of the author, and the * email address for the author, as configured in Git.
*/ inline const UserInfo& GetAuthor() const{ return m_author; } /** *Information about the author of the specified commit. Information includes * the date in timestamp format with GMT offset, the name of the author, and the * email address for the author, as configured in Git.
*/ inline bool AuthorHasBeenSet() const { return m_authorHasBeenSet; } /** *Information about the author of the specified commit. Information includes * the date in timestamp format with GMT offset, the name of the author, and the * email address for the author, as configured in Git.
*/ inline void SetAuthor(const UserInfo& value) { m_authorHasBeenSet = true; m_author = value; } /** *Information about the author of the specified commit. Information includes * the date in timestamp format with GMT offset, the name of the author, and the * email address for the author, as configured in Git.
*/ inline void SetAuthor(UserInfo&& value) { m_authorHasBeenSet = true; m_author = std::move(value); } /** *Information about the author of the specified commit. Information includes * the date in timestamp format with GMT offset, the name of the author, and the * email address for the author, as configured in Git.
*/ inline Commit& WithAuthor(const UserInfo& value) { SetAuthor(value); return *this;} /** *Information about the author of the specified commit. Information includes * the date in timestamp format with GMT offset, the name of the author, and the * email address for the author, as configured in Git.
*/ inline Commit& WithAuthor(UserInfo&& value) { SetAuthor(std::move(value)); return *this;} /** *Information about the person who committed the specified commit, also known * as the committer. Information includes the date in timestamp format with GMT * offset, the name of the committer, and the email address for the committer, as * configured in Git.
For more information about the difference between an * author and a committer in Git, see Viewing the Commit History in Pro * Git by Scott Chacon and Ben Straub.
*/ inline const UserInfo& GetCommitter() const{ return m_committer; } /** *Information about the person who committed the specified commit, also known * as the committer. Information includes the date in timestamp format with GMT * offset, the name of the committer, and the email address for the committer, as * configured in Git.
For more information about the difference between an * author and a committer in Git, see Viewing the Commit History in Pro * Git by Scott Chacon and Ben Straub.
*/ inline bool CommitterHasBeenSet() const { return m_committerHasBeenSet; } /** *Information about the person who committed the specified commit, also known * as the committer. Information includes the date in timestamp format with GMT * offset, the name of the committer, and the email address for the committer, as * configured in Git.
For more information about the difference between an * author and a committer in Git, see Viewing the Commit History in Pro * Git by Scott Chacon and Ben Straub.
*/ inline void SetCommitter(const UserInfo& value) { m_committerHasBeenSet = true; m_committer = value; } /** *Information about the person who committed the specified commit, also known * as the committer. Information includes the date in timestamp format with GMT * offset, the name of the committer, and the email address for the committer, as * configured in Git.
For more information about the difference between an * author and a committer in Git, see Viewing the Commit History in Pro * Git by Scott Chacon and Ben Straub.
*/ inline void SetCommitter(UserInfo&& value) { m_committerHasBeenSet = true; m_committer = std::move(value); } /** *Information about the person who committed the specified commit, also known * as the committer. Information includes the date in timestamp format with GMT * offset, the name of the committer, and the email address for the committer, as * configured in Git.
For more information about the difference between an * author and a committer in Git, see Viewing the Commit History in Pro * Git by Scott Chacon and Ben Straub.
*/ inline Commit& WithCommitter(const UserInfo& value) { SetCommitter(value); return *this;} /** *Information about the person who committed the specified commit, also known * as the committer. Information includes the date in timestamp format with GMT * offset, the name of the committer, and the email address for the committer, as * configured in Git.
For more information about the difference between an * author and a committer in Git, see Viewing the Commit History in Pro * Git by Scott Chacon and Ben Straub.
*/ inline Commit& WithCommitter(UserInfo&& value) { SetCommitter(std::move(value)); return *this;} /** *Any other data associated with the specified commit.
*/ inline const Aws::String& GetAdditionalData() const{ return m_additionalData; } /** *Any other data associated with the specified commit.
*/ inline bool AdditionalDataHasBeenSet() const { return m_additionalDataHasBeenSet; } /** *Any other data associated with the specified commit.
*/ inline void SetAdditionalData(const Aws::String& value) { m_additionalDataHasBeenSet = true; m_additionalData = value; } /** *Any other data associated with the specified commit.
*/ inline void SetAdditionalData(Aws::String&& value) { m_additionalDataHasBeenSet = true; m_additionalData = std::move(value); } /** *Any other data associated with the specified commit.
*/ inline void SetAdditionalData(const char* value) { m_additionalDataHasBeenSet = true; m_additionalData.assign(value); } /** *Any other data associated with the specified commit.
*/ inline Commit& WithAdditionalData(const Aws::String& value) { SetAdditionalData(value); return *this;} /** *Any other data associated with the specified commit.
*/ inline Commit& WithAdditionalData(Aws::String&& value) { SetAdditionalData(std::move(value)); return *this;} /** *Any other data associated with the specified commit.
*/ inline Commit& WithAdditionalData(const char* value) { SetAdditionalData(value); return *this;} private: Aws::String m_commitId; bool m_commitIdHasBeenSet = false; Aws::String m_treeId; bool m_treeIdHasBeenSet = false; Aws::Vector