/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeCommit { namespace Model { /** *

Returns information about a target for a pull request.

See * Also:

AWS * API Reference

*/ class Target { public: AWS_CODECOMMIT_API Target(); AWS_CODECOMMIT_API Target(Aws::Utils::Json::JsonView jsonValue); AWS_CODECOMMIT_API Target& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the repository that contains the pull request.

*/ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; } /** *

The name of the repository that contains the pull request.

*/ inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; } /** *

The name of the repository that contains the pull request.

*/ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; } /** *

The name of the repository that contains the pull request.

*/ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); } /** *

The name of the repository that contains the pull request.

*/ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); } /** *

The name of the repository that contains the pull request.

*/ inline Target& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *

The name of the repository that contains the pull request.

*/ inline Target& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;} /** *

The name of the repository that contains the pull request.

*/ inline Target& 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 Target& 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 Target& 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 Target& 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 Target& 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 Target& 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 Target& WithDestinationReference(const char* value) { SetDestinationReference(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; }; } // namespace Model } // namespace CodeCommit } // namespace Aws