/** * 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 CodeCommit { namespace Model { /** */ class MergeBranchesByFastForwardRequest : public CodeCommitRequest { public: AWS_CODECOMMIT_API MergeBranchesByFastForwardRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "MergeBranchesByFastForward"; } AWS_CODECOMMIT_API Aws::String SerializePayload() const override; AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the repository where you want to merge two branches.

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

The name of the repository where you want to merge two branches.

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

The name of the repository where you want to merge two branches.

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

The name of the repository where you want to merge two branches.

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

The name of the repository where you want to merge two branches.

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

The name of the repository where you want to merge two branches.

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

The name of the repository where you want to merge two branches.

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

The name of the repository where you want to merge two branches.

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

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline const Aws::String& GetSourceCommitSpecifier() const{ return m_sourceCommitSpecifier; } /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline bool SourceCommitSpecifierHasBeenSet() const { return m_sourceCommitSpecifierHasBeenSet; } /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline void SetSourceCommitSpecifier(const Aws::String& value) { m_sourceCommitSpecifierHasBeenSet = true; m_sourceCommitSpecifier = value; } /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline void SetSourceCommitSpecifier(Aws::String&& value) { m_sourceCommitSpecifierHasBeenSet = true; m_sourceCommitSpecifier = std::move(value); } /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline void SetSourceCommitSpecifier(const char* value) { m_sourceCommitSpecifierHasBeenSet = true; m_sourceCommitSpecifier.assign(value); } /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline MergeBranchesByFastForwardRequest& WithSourceCommitSpecifier(const Aws::String& value) { SetSourceCommitSpecifier(value); return *this;} /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline MergeBranchesByFastForwardRequest& WithSourceCommitSpecifier(Aws::String&& value) { SetSourceCommitSpecifier(std::move(value)); return *this;} /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline MergeBranchesByFastForwardRequest& WithSourceCommitSpecifier(const char* value) { SetSourceCommitSpecifier(value); return *this;} /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline const Aws::String& GetDestinationCommitSpecifier() const{ return m_destinationCommitSpecifier; } /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline bool DestinationCommitSpecifierHasBeenSet() const { return m_destinationCommitSpecifierHasBeenSet; } /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline void SetDestinationCommitSpecifier(const Aws::String& value) { m_destinationCommitSpecifierHasBeenSet = true; m_destinationCommitSpecifier = value; } /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline void SetDestinationCommitSpecifier(Aws::String&& value) { m_destinationCommitSpecifierHasBeenSet = true; m_destinationCommitSpecifier = std::move(value); } /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline void SetDestinationCommitSpecifier(const char* value) { m_destinationCommitSpecifierHasBeenSet = true; m_destinationCommitSpecifier.assign(value); } /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline MergeBranchesByFastForwardRequest& WithDestinationCommitSpecifier(const Aws::String& value) { SetDestinationCommitSpecifier(value); return *this;} /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline MergeBranchesByFastForwardRequest& WithDestinationCommitSpecifier(Aws::String&& value) { SetDestinationCommitSpecifier(std::move(value)); return *this;} /** *

The branch, tag, HEAD, or other fully qualified reference used to identify a * commit (for example, a branch name or a full commit ID).

*/ inline MergeBranchesByFastForwardRequest& WithDestinationCommitSpecifier(const char* value) { SetDestinationCommitSpecifier(value); return *this;} /** *

The branch where the merge is applied.

*/ inline const Aws::String& GetTargetBranch() const{ return m_targetBranch; } /** *

The branch where the merge is applied.

*/ inline bool TargetBranchHasBeenSet() const { return m_targetBranchHasBeenSet; } /** *

The branch where the merge is applied.

*/ inline void SetTargetBranch(const Aws::String& value) { m_targetBranchHasBeenSet = true; m_targetBranch = value; } /** *

The branch where the merge is applied.

*/ inline void SetTargetBranch(Aws::String&& value) { m_targetBranchHasBeenSet = true; m_targetBranch = std::move(value); } /** *

The branch where the merge is applied.

*/ inline void SetTargetBranch(const char* value) { m_targetBranchHasBeenSet = true; m_targetBranch.assign(value); } /** *

The branch where the merge is applied.

*/ inline MergeBranchesByFastForwardRequest& WithTargetBranch(const Aws::String& value) { SetTargetBranch(value); return *this;} /** *

The branch where the merge is applied.

*/ inline MergeBranchesByFastForwardRequest& WithTargetBranch(Aws::String&& value) { SetTargetBranch(std::move(value)); return *this;} /** *

The branch where the merge is applied.

*/ inline MergeBranchesByFastForwardRequest& WithTargetBranch(const char* value) { SetTargetBranch(value); return *this;} private: Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::String m_sourceCommitSpecifier; bool m_sourceCommitSpecifierHasBeenSet = false; Aws::String m_destinationCommitSpecifier; bool m_destinationCommitSpecifierHasBeenSet = false; Aws::String m_targetBranch; bool m_targetBranchHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws