/** * 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 GetCommentsForComparedCommitRequest : public CodeCommitRequest { public: AWS_CODECOMMIT_API GetCommentsForComparedCommitRequest(); // 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 "GetCommentsForComparedCommit"; } 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 compare commits.

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

The name of the repository where you want to compare commits.

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

The name of the repository where you want to compare commits.

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

The name of the repository where you want to compare commits.

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

The name of the repository where you want to compare commits.

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

The name of the repository where you want to compare commits.

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

The name of the repository where you want to compare commits.

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

The name of the repository where you want to compare commits.

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

To establish the directionality of the comparison, the full commit ID of the * before commit.

*/ inline const Aws::String& GetBeforeCommitId() const{ return m_beforeCommitId; } /** *

To establish the directionality of the comparison, the full commit ID of the * before commit.

*/ inline bool BeforeCommitIdHasBeenSet() const { return m_beforeCommitIdHasBeenSet; } /** *

To establish the directionality of the comparison, the full commit ID of the * before commit.

*/ inline void SetBeforeCommitId(const Aws::String& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = value; } /** *

To establish the directionality of the comparison, the full commit ID of the * before commit.

*/ inline void SetBeforeCommitId(Aws::String&& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = std::move(value); } /** *

To establish the directionality of the comparison, the full commit ID of the * before commit.

*/ inline void SetBeforeCommitId(const char* value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId.assign(value); } /** *

To establish the directionality of the comparison, the full commit ID of the * before commit.

*/ inline GetCommentsForComparedCommitRequest& WithBeforeCommitId(const Aws::String& value) { SetBeforeCommitId(value); return *this;} /** *

To establish the directionality of the comparison, the full commit ID of the * before commit.

*/ inline GetCommentsForComparedCommitRequest& WithBeforeCommitId(Aws::String&& value) { SetBeforeCommitId(std::move(value)); return *this;} /** *

To establish the directionality of the comparison, the full commit ID of the * before commit.

*/ inline GetCommentsForComparedCommitRequest& WithBeforeCommitId(const char* value) { SetBeforeCommitId(value); return *this;} /** *

To establish the directionality of the comparison, the full commit ID of the * after commit.

*/ inline const Aws::String& GetAfterCommitId() const{ return m_afterCommitId; } /** *

To establish the directionality of the comparison, the full commit ID of the * after commit.

*/ inline bool AfterCommitIdHasBeenSet() const { return m_afterCommitIdHasBeenSet; } /** *

To establish the directionality of the comparison, the full commit ID of the * after commit.

*/ inline void SetAfterCommitId(const Aws::String& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = value; } /** *

To establish the directionality of the comparison, the full commit ID of the * after commit.

*/ inline void SetAfterCommitId(Aws::String&& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = std::move(value); } /** *

To establish the directionality of the comparison, the full commit ID of the * after commit.

*/ inline void SetAfterCommitId(const char* value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId.assign(value); } /** *

To establish the directionality of the comparison, the full commit ID of the * after commit.

*/ inline GetCommentsForComparedCommitRequest& WithAfterCommitId(const Aws::String& value) { SetAfterCommitId(value); return *this;} /** *

To establish the directionality of the comparison, the full commit ID of the * after commit.

*/ inline GetCommentsForComparedCommitRequest& WithAfterCommitId(Aws::String&& value) { SetAfterCommitId(std::move(value)); return *this;} /** *

To establish the directionality of the comparison, the full commit ID of the * after commit.

*/ inline GetCommentsForComparedCommitRequest& WithAfterCommitId(const char* value) { SetAfterCommitId(value); return *this;} /** *

An enumeration token that when provided in a request, returns the next batch * of the results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

An enumeration token that when provided in a request, returns the next batch * of the results.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

An enumeration token that when provided in a request, returns the next batch * of the results.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

An enumeration token that when provided in a request, returns the next batch * of the results.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

An enumeration token that when provided in a request, returns the next batch * of the results.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

An enumeration token that when provided in a request, returns the next batch * of the results.

*/ inline GetCommentsForComparedCommitRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

An enumeration token that when provided in a request, returns the next batch * of the results.

*/ inline GetCommentsForComparedCommitRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

An enumeration token that when provided in a request, returns the next batch * of the results.

*/ inline GetCommentsForComparedCommitRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

A non-zero, non-negative integer used to limit the number of returned * results. The default is 100 comments, but you can configure up to 500.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

A non-zero, non-negative integer used to limit the number of returned * results. The default is 100 comments, but you can configure up to 500.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

A non-zero, non-negative integer used to limit the number of returned * results. The default is 100 comments, but you can configure up to 500.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

A non-zero, non-negative integer used to limit the number of returned * results. The default is 100 comments, but you can configure up to 500.

*/ inline GetCommentsForComparedCommitRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::String m_beforeCommitId; bool m_beforeCommitIdHasBeenSet = false; Aws::String m_afterCommitId; bool m_afterCommitIdHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws