/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Metadata about the pull request that is used when comparing the pull request
* source with its destination.See Also:
AWS
* API Reference
The name of the repository where the pull request was created.
*/ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; } /** *The name of the repository where the pull request was created.
*/ inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; } /** *The name of the repository where the pull request was created.
*/ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; } /** *The name of the repository where the pull request was created.
*/ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); } /** *The name of the repository where the pull request was created.
*/ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); } /** *The name of the repository where the pull request was created.
*/ inline PullRequestCreatedEventMetadata& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *The name of the repository where the pull request was created.
*/ inline PullRequestCreatedEventMetadata& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;} /** *The name of the repository where the pull request was created.
*/ inline PullRequestCreatedEventMetadata& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;} /** *The commit ID on the source branch used when the pull request was * created.
*/ inline const Aws::String& GetSourceCommitId() const{ return m_sourceCommitId; } /** *The commit ID on the source branch used when the pull request was * created.
*/ inline bool SourceCommitIdHasBeenSet() const { return m_sourceCommitIdHasBeenSet; } /** *The commit ID on the source branch used when the pull request was * created.
*/ inline void SetSourceCommitId(const Aws::String& value) { m_sourceCommitIdHasBeenSet = true; m_sourceCommitId = value; } /** *The commit ID on the source branch used when the pull request was * created.
*/ inline void SetSourceCommitId(Aws::String&& value) { m_sourceCommitIdHasBeenSet = true; m_sourceCommitId = std::move(value); } /** *The commit ID on the source branch used when the pull request was * created.
*/ inline void SetSourceCommitId(const char* value) { m_sourceCommitIdHasBeenSet = true; m_sourceCommitId.assign(value); } /** *The commit ID on the source branch used when the pull request was * created.
*/ inline PullRequestCreatedEventMetadata& WithSourceCommitId(const Aws::String& value) { SetSourceCommitId(value); return *this;} /** *The commit ID on the source branch used when the pull request was * created.
*/ inline PullRequestCreatedEventMetadata& WithSourceCommitId(Aws::String&& value) { SetSourceCommitId(std::move(value)); return *this;} /** *The commit ID on the source branch used when the pull request was * created.
*/ inline PullRequestCreatedEventMetadata& WithSourceCommitId(const char* value) { SetSourceCommitId(value); return *this;} /** *The commit ID of the tip of the branch specified as the destination branch * when the pull request was created.
*/ inline const Aws::String& GetDestinationCommitId() const{ return m_destinationCommitId; } /** *The commit ID of the tip of the branch specified as the destination branch * when the pull request was created.
*/ inline bool DestinationCommitIdHasBeenSet() const { return m_destinationCommitIdHasBeenSet; } /** *The commit ID of the tip of the branch specified as the destination branch * when the pull request was created.
*/ inline void SetDestinationCommitId(const Aws::String& value) { m_destinationCommitIdHasBeenSet = true; m_destinationCommitId = value; } /** *The commit ID of the tip of the branch specified as the destination branch * when the pull request was created.
*/ inline void SetDestinationCommitId(Aws::String&& value) { m_destinationCommitIdHasBeenSet = true; m_destinationCommitId = std::move(value); } /** *The commit ID of the tip of the branch specified as the destination branch * when the pull request was created.
*/ inline void SetDestinationCommitId(const char* value) { m_destinationCommitIdHasBeenSet = true; m_destinationCommitId.assign(value); } /** *The commit ID of the tip of the branch specified as the destination branch * when the pull request was created.
*/ inline PullRequestCreatedEventMetadata& WithDestinationCommitId(const Aws::String& value) { SetDestinationCommitId(value); return *this;} /** *The commit ID of the tip of the branch specified as the destination branch * when the pull request was created.
*/ inline PullRequestCreatedEventMetadata& WithDestinationCommitId(Aws::String&& value) { SetDestinationCommitId(std::move(value)); return *this;} /** *The commit ID of the tip of the branch specified as the destination branch * when the pull request was created.
*/ inline PullRequestCreatedEventMetadata& WithDestinationCommitId(const char* value) { SetDestinationCommitId(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 PullRequestCreatedEventMetadata& 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 PullRequestCreatedEventMetadata& 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 PullRequestCreatedEventMetadata& WithMergeBase(const char* value) { SetMergeBase(value); return *this;} private: Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::String m_sourceCommitId; bool m_sourceCommitIdHasBeenSet = false; Aws::String m_destinationCommitId; bool m_destinationCommitIdHasBeenSet = false; Aws::String m_mergeBase; bool m_mergeBaseHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws