/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Returns information about a pull request target.See Also:
* AWS
* API Reference
The name of the repository that contains the pull request source and * destination branches.
*/ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; } /** *The name of the repository that contains the pull request source and * destination branches.
*/ inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; } /** *The name of the repository that contains the pull request source and * destination branches.
*/ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; } /** *The name of the repository that contains the pull request source and * destination branches.
*/ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); } /** *The name of the repository that contains the pull request source and * destination branches.
*/ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); } /** *The name of the repository that contains the pull request source and * destination branches.
*/ inline PullRequestTarget& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *The name of the repository that contains the pull request source and * destination branches.
*/ inline PullRequestTarget& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;} /** *The name of the repository that contains the pull request source and * destination branches.
*/ inline PullRequestTarget& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;} /** *The branch of the repository that contains the changes for the pull request. * Also known as the source branch.
*/ inline const Aws::String& GetSourceReference() const{ return m_sourceReference; } /** *The branch of the repository that contains the changes for the pull request. * Also known as the source branch.
*/ inline bool SourceReferenceHasBeenSet() const { return m_sourceReferenceHasBeenSet; } /** *The branch of the repository that contains the changes for the pull request. * Also known as the source branch.
*/ inline void SetSourceReference(const Aws::String& value) { m_sourceReferenceHasBeenSet = true; m_sourceReference = value; } /** *The branch of the repository that contains the changes for the pull request. * Also known as the source branch.
*/ inline void SetSourceReference(Aws::String&& value) { m_sourceReferenceHasBeenSet = true; m_sourceReference = std::move(value); } /** *The branch of the repository that contains the changes for the pull request. * Also known as the source branch.
*/ inline void SetSourceReference(const char* value) { m_sourceReferenceHasBeenSet = true; m_sourceReference.assign(value); } /** *The branch of the repository that contains the changes for the pull request. * Also known as the source branch.
*/ inline PullRequestTarget& WithSourceReference(const Aws::String& value) { SetSourceReference(value); return *this;} /** *The branch of the repository that contains the changes for the pull request. * Also known as the source branch.
*/ inline PullRequestTarget& WithSourceReference(Aws::String&& value) { SetSourceReference(std::move(value)); return *this;} /** *The branch of the repository that contains the changes for the pull request. * Also known as the source branch.
*/ inline PullRequestTarget& WithSourceReference(const char* value) { SetSourceReference(value); return *this;} /** *The branch of the repository where the pull request changes are merged. Also * known as the destination branch.
*/ inline const Aws::String& GetDestinationReference() const{ return m_destinationReference; } /** *The branch of the repository where the pull request changes are merged. Also * known as the destination branch.
*/ inline bool DestinationReferenceHasBeenSet() const { return m_destinationReferenceHasBeenSet; } /** *The branch of the repository where the pull request changes are merged. Also * known as the destination branch.
*/ inline void SetDestinationReference(const Aws::String& value) { m_destinationReferenceHasBeenSet = true; m_destinationReference = value; } /** *The branch of the repository where the pull request changes are merged. Also * known as the destination branch.
*/ inline void SetDestinationReference(Aws::String&& value) { m_destinationReferenceHasBeenSet = true; m_destinationReference = std::move(value); } /** *The branch of the repository where the pull request changes are merged. Also * known as the destination branch.
*/ inline void SetDestinationReference(const char* value) { m_destinationReferenceHasBeenSet = true; m_destinationReference.assign(value); } /** *The branch of the repository where the pull request changes are merged. Also * known as the destination branch.
*/ inline PullRequestTarget& WithDestinationReference(const Aws::String& value) { SetDestinationReference(value); return *this;} /** *The branch of the repository where the pull request changes are merged. Also * known as the destination branch.
*/ inline PullRequestTarget& WithDestinationReference(Aws::String&& value) { SetDestinationReference(std::move(value)); return *this;} /** *The branch of the repository where the pull request changes are merged. Also * known as the destination branch.
*/ inline PullRequestTarget& WithDestinationReference(const char* value) { SetDestinationReference(value); return *this;} /** *The full commit ID that is the tip of the destination branch. This is the * commit where the pull request was or will be merged.
*/ inline const Aws::String& GetDestinationCommit() const{ return m_destinationCommit; } /** *The full commit ID that is the tip of the destination branch. This is the * commit where the pull request was or will be merged.
*/ inline bool DestinationCommitHasBeenSet() const { return m_destinationCommitHasBeenSet; } /** *The full commit ID that is the tip of the destination branch. This is the * commit where the pull request was or will be merged.
*/ inline void SetDestinationCommit(const Aws::String& value) { m_destinationCommitHasBeenSet = true; m_destinationCommit = value; } /** *The full commit ID that is the tip of the destination branch. This is the * commit where the pull request was or will be merged.
*/ inline void SetDestinationCommit(Aws::String&& value) { m_destinationCommitHasBeenSet = true; m_destinationCommit = std::move(value); } /** *The full commit ID that is the tip of the destination branch. This is the * commit where the pull request was or will be merged.
*/ inline void SetDestinationCommit(const char* value) { m_destinationCommitHasBeenSet = true; m_destinationCommit.assign(value); } /** *The full commit ID that is the tip of the destination branch. This is the * commit where the pull request was or will be merged.
*/ inline PullRequestTarget& WithDestinationCommit(const Aws::String& value) { SetDestinationCommit(value); return *this;} /** *The full commit ID that is the tip of the destination branch. This is the * commit where the pull request was or will be merged.
*/ inline PullRequestTarget& WithDestinationCommit(Aws::String&& value) { SetDestinationCommit(std::move(value)); return *this;} /** *The full commit ID that is the tip of the destination branch. This is the * commit where the pull request was or will be merged.
*/ inline PullRequestTarget& WithDestinationCommit(const char* value) { SetDestinationCommit(value); return *this;} /** *The full commit ID of the tip of the source branch used to create the pull * request. If the pull request branch is updated by a push while the pull request * is open, the commit ID changes to reflect the new tip of the branch.
*/ inline const Aws::String& GetSourceCommit() const{ return m_sourceCommit; } /** *The full commit ID of the tip of the source branch used to create the pull * request. If the pull request branch is updated by a push while the pull request * is open, the commit ID changes to reflect the new tip of the branch.
*/ inline bool SourceCommitHasBeenSet() const { return m_sourceCommitHasBeenSet; } /** *The full commit ID of the tip of the source branch used to create the pull * request. If the pull request branch is updated by a push while the pull request * is open, the commit ID changes to reflect the new tip of the branch.
*/ inline void SetSourceCommit(const Aws::String& value) { m_sourceCommitHasBeenSet = true; m_sourceCommit = value; } /** *The full commit ID of the tip of the source branch used to create the pull * request. If the pull request branch is updated by a push while the pull request * is open, the commit ID changes to reflect the new tip of the branch.
*/ inline void SetSourceCommit(Aws::String&& value) { m_sourceCommitHasBeenSet = true; m_sourceCommit = std::move(value); } /** *The full commit ID of the tip of the source branch used to create the pull * request. If the pull request branch is updated by a push while the pull request * is open, the commit ID changes to reflect the new tip of the branch.
*/ inline void SetSourceCommit(const char* value) { m_sourceCommitHasBeenSet = true; m_sourceCommit.assign(value); } /** *The full commit ID of the tip of the source branch used to create the pull * request. If the pull request branch is updated by a push while the pull request * is open, the commit ID changes to reflect the new tip of the branch.
*/ inline PullRequestTarget& WithSourceCommit(const Aws::String& value) { SetSourceCommit(value); return *this;} /** *The full commit ID of the tip of the source branch used to create the pull * request. If the pull request branch is updated by a push while the pull request * is open, the commit ID changes to reflect the new tip of the branch.
*/ inline PullRequestTarget& WithSourceCommit(Aws::String&& value) { SetSourceCommit(std::move(value)); return *this;} /** *The full commit ID of the tip of the source branch used to create the pull * request. If the pull request branch is updated by a push while the pull request * is open, the commit ID changes to reflect the new tip of the branch.
*/ inline PullRequestTarget& WithSourceCommit(const char* value) { SetSourceCommit(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 PullRequestTarget& 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 PullRequestTarget& 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 PullRequestTarget& WithMergeBase(const char* value) { SetMergeBase(value); return *this;} /** *Returns metadata about the state of the merge, including whether the merge * has been made.
*/ inline const MergeMetadata& GetMergeMetadata() const{ return m_mergeMetadata; } /** *Returns metadata about the state of the merge, including whether the merge * has been made.
*/ inline bool MergeMetadataHasBeenSet() const { return m_mergeMetadataHasBeenSet; } /** *Returns metadata about the state of the merge, including whether the merge * has been made.
*/ inline void SetMergeMetadata(const MergeMetadata& value) { m_mergeMetadataHasBeenSet = true; m_mergeMetadata = value; } /** *Returns metadata about the state of the merge, including whether the merge * has been made.
*/ inline void SetMergeMetadata(MergeMetadata&& value) { m_mergeMetadataHasBeenSet = true; m_mergeMetadata = std::move(value); } /** *Returns metadata about the state of the merge, including whether the merge * has been made.
*/ inline PullRequestTarget& WithMergeMetadata(const MergeMetadata& value) { SetMergeMetadata(value); return *this;} /** *Returns metadata about the state of the merge, including whether the merge * has been made.
*/ inline PullRequestTarget& WithMergeMetadata(MergeMetadata&& value) { SetMergeMetadata(std::move(value)); return *this;} private: Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::String m_sourceReference; bool m_sourceReferenceHasBeenSet = false; Aws::String m_destinationReference; bool m_destinationReferenceHasBeenSet = false; Aws::String m_destinationCommit; bool m_destinationCommitHasBeenSet = false; Aws::String m_sourceCommit; bool m_sourceCommitHasBeenSet = false; Aws::String m_mergeBase; bool m_mergeBaseHasBeenSet = false; MergeMetadata m_mergeMetadata; bool m_mergeMetadataHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws