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

Returns information about the change in the merge state for a pull request * event.

See Also:

AWS * API Reference

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

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 PullRequestMergedStateChangedEventMetadata& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *

The name of the repository where the pull request was created.

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

The name of the repository where the pull request was created.

*/ inline PullRequestMergedStateChangedEventMetadata& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;} /** *

The name of the branch that the pull request is merged into.

*/ inline const Aws::String& GetDestinationReference() const{ return m_destinationReference; } /** *

The name of the branch that the pull request is merged into.

*/ inline bool DestinationReferenceHasBeenSet() const { return m_destinationReferenceHasBeenSet; } /** *

The name of the branch that the pull request is merged into.

*/ inline void SetDestinationReference(const Aws::String& value) { m_destinationReferenceHasBeenSet = true; m_destinationReference = value; } /** *

The name of the branch that the pull request is merged into.

*/ inline void SetDestinationReference(Aws::String&& value) { m_destinationReferenceHasBeenSet = true; m_destinationReference = std::move(value); } /** *

The name of the branch that the pull request is merged into.

*/ inline void SetDestinationReference(const char* value) { m_destinationReferenceHasBeenSet = true; m_destinationReference.assign(value); } /** *

The name of the branch that the pull request is merged into.

*/ inline PullRequestMergedStateChangedEventMetadata& WithDestinationReference(const Aws::String& value) { SetDestinationReference(value); return *this;} /** *

The name of the branch that the pull request is merged into.

*/ inline PullRequestMergedStateChangedEventMetadata& WithDestinationReference(Aws::String&& value) { SetDestinationReference(std::move(value)); return *this;} /** *

The name of the branch that the pull request is merged into.

*/ inline PullRequestMergedStateChangedEventMetadata& WithDestinationReference(const char* value) { SetDestinationReference(value); return *this;} /** *

Information about the merge state change event.

*/ inline const MergeMetadata& GetMergeMetadata() const{ return m_mergeMetadata; } /** *

Information about the merge state change event.

*/ inline bool MergeMetadataHasBeenSet() const { return m_mergeMetadataHasBeenSet; } /** *

Information about the merge state change event.

*/ inline void SetMergeMetadata(const MergeMetadata& value) { m_mergeMetadataHasBeenSet = true; m_mergeMetadata = value; } /** *

Information about the merge state change event.

*/ inline void SetMergeMetadata(MergeMetadata&& value) { m_mergeMetadataHasBeenSet = true; m_mergeMetadata = std::move(value); } /** *

Information about the merge state change event.

*/ inline PullRequestMergedStateChangedEventMetadata& WithMergeMetadata(const MergeMetadata& value) { SetMergeMetadata(value); return *this;} /** *

Information about the merge state change event.

*/ inline PullRequestMergedStateChangedEventMetadata& WithMergeMetadata(MergeMetadata&& value) { SetMergeMetadata(std::move(value)); return *this;} private: Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::String m_destinationReference; bool m_destinationReferenceHasBeenSet = false; MergeMetadata m_mergeMetadata; bool m_mergeMetadataHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws