/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about an update to the source branch of a pull
* request.See Also:
AWS
* API Reference
The name of the repository where the pull request was updated.
*/ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; } /** *The name of the repository where the pull request was updated.
*/ inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; } /** *The name of the repository where the pull request was updated.
*/ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; } /** *The name of the repository where the pull request was updated.
*/ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); } /** *The name of the repository where the pull request was updated.
*/ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); } /** *The name of the repository where the pull request was updated.
*/ inline PullRequestSourceReferenceUpdatedEventMetadata& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *The name of the repository where the pull request was updated.
*/ inline PullRequestSourceReferenceUpdatedEventMetadata& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;} /** *The name of the repository where the pull request was updated.
*/ inline PullRequestSourceReferenceUpdatedEventMetadata& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;} /** *The full commit ID of the commit in the destination branch that was the tip * of the branch at the time the pull request was updated.
*/ inline const Aws::String& GetBeforeCommitId() const{ return m_beforeCommitId; } /** *The full commit ID of the commit in the destination branch that was the tip * of the branch at the time the pull request was updated.
*/ inline bool BeforeCommitIdHasBeenSet() const { return m_beforeCommitIdHasBeenSet; } /** *The full commit ID of the commit in the destination branch that was the tip * of the branch at the time the pull request was updated.
*/ inline void SetBeforeCommitId(const Aws::String& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = value; } /** *The full commit ID of the commit in the destination branch that was the tip * of the branch at the time the pull request was updated.
*/ inline void SetBeforeCommitId(Aws::String&& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = std::move(value); } /** *The full commit ID of the commit in the destination branch that was the tip * of the branch at the time the pull request was updated.
*/ inline void SetBeforeCommitId(const char* value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId.assign(value); } /** *The full commit ID of the commit in the destination branch that was the tip * of the branch at the time the pull request was updated.
*/ inline PullRequestSourceReferenceUpdatedEventMetadata& WithBeforeCommitId(const Aws::String& value) { SetBeforeCommitId(value); return *this;} /** *The full commit ID of the commit in the destination branch that was the tip * of the branch at the time the pull request was updated.
*/ inline PullRequestSourceReferenceUpdatedEventMetadata& WithBeforeCommitId(Aws::String&& value) { SetBeforeCommitId(std::move(value)); return *this;} /** *The full commit ID of the commit in the destination branch that was the tip * of the branch at the time the pull request was updated.
*/ inline PullRequestSourceReferenceUpdatedEventMetadata& WithBeforeCommitId(const char* value) { SetBeforeCommitId(value); return *this;} /** *The full commit ID of the commit in the source branch that was the tip of the * branch at the time the pull request was updated.
*/ inline const Aws::String& GetAfterCommitId() const{ return m_afterCommitId; } /** *The full commit ID of the commit in the source branch that was the tip of the * branch at the time the pull request was updated.
*/ inline bool AfterCommitIdHasBeenSet() const { return m_afterCommitIdHasBeenSet; } /** *The full commit ID of the commit in the source branch that was the tip of the * branch at the time the pull request was updated.
*/ inline void SetAfterCommitId(const Aws::String& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = value; } /** *The full commit ID of the commit in the source branch that was the tip of the * branch at the time the pull request was updated.
*/ inline void SetAfterCommitId(Aws::String&& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = std::move(value); } /** *The full commit ID of the commit in the source branch that was the tip of the * branch at the time the pull request was updated.
*/ inline void SetAfterCommitId(const char* value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId.assign(value); } /** *The full commit ID of the commit in the source branch that was the tip of the * branch at the time the pull request was updated.
*/ inline PullRequestSourceReferenceUpdatedEventMetadata& WithAfterCommitId(const Aws::String& value) { SetAfterCommitId(value); return *this;} /** *The full commit ID of the commit in the source branch that was the tip of the * branch at the time the pull request was updated.
*/ inline PullRequestSourceReferenceUpdatedEventMetadata& WithAfterCommitId(Aws::String&& value) { SetAfterCommitId(std::move(value)); return *this;} /** *The full commit ID of the commit in the source branch that was the tip of the * branch at the time the pull request was updated.
*/ inline PullRequestSourceReferenceUpdatedEventMetadata& WithAfterCommitId(const char* value) { SetAfterCommitId(value); return *this;} /** *The commit ID of the most recent commit that the source branch and the * destination branch have in common.
*/ inline const Aws::String& GetMergeBase() const{ return m_mergeBase; } /** *The commit ID of the most recent commit that the source branch and the * destination branch have in common.
*/ inline bool MergeBaseHasBeenSet() const { return m_mergeBaseHasBeenSet; } /** *The commit ID of the most recent commit that the source branch and the * destination branch have in common.
*/ inline void SetMergeBase(const Aws::String& value) { m_mergeBaseHasBeenSet = true; m_mergeBase = value; } /** *The commit ID of the most recent commit that the source branch and the * destination branch have in common.
*/ inline void SetMergeBase(Aws::String&& value) { m_mergeBaseHasBeenSet = true; m_mergeBase = std::move(value); } /** *The commit ID of the most recent commit that the source branch and the * destination branch have in common.
*/ inline void SetMergeBase(const char* value) { m_mergeBaseHasBeenSet = true; m_mergeBase.assign(value); } /** *The commit ID of the most recent commit that the source branch and the * destination branch have in common.
*/ inline PullRequestSourceReferenceUpdatedEventMetadata& WithMergeBase(const Aws::String& value) { SetMergeBase(value); return *this;} /** *The commit ID of the most recent commit that the source branch and the * destination branch have in common.
*/ inline PullRequestSourceReferenceUpdatedEventMetadata& WithMergeBase(Aws::String&& value) { SetMergeBase(std::move(value)); return *this;} /** *The commit ID of the most recent commit that the source branch and the * destination branch have in common.
*/ inline PullRequestSourceReferenceUpdatedEventMetadata& WithMergeBase(const char* value) { SetMergeBase(value); return *this;} private: Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::String m_beforeCommitId; bool m_beforeCommitIdHasBeenSet = false; Aws::String m_afterCommitId; bool m_afterCommitIdHasBeenSet = false; Aws::String m_mergeBase; bool m_mergeBaseHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws