/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace CodeGuruReviewer { namespace Model { /** */ class CreateCodeReviewRequest : public CodeGuruReviewerRequest { public: AWS_CODEGURUREVIEWER_API CreateCodeReviewRequest(); // 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 "CreateCodeReview"; } AWS_CODEGURUREVIEWER_API Aws::String SerializePayload() const override; /** *

The name of the code review. The name of each code review in your Amazon Web * Services account must be unique.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the code review. The name of each code review in your Amazon Web * Services account must be unique.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the code review. The name of each code review in your Amazon Web * Services account must be unique.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the code review. The name of each code review in your Amazon Web * Services account must be unique.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the code review. The name of each code review in your Amazon Web * Services account must be unique.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the code review. The name of each code review in your Amazon Web * Services account must be unique.

*/ inline CreateCodeReviewRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the code review. The name of each code review in your Amazon Web * Services account must be unique.

*/ inline CreateCodeReviewRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the code review. The name of each code review in your Amazon Web * Services account must be unique.

*/ inline CreateCodeReviewRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the RepositoryAssociation * object. You can retrieve this ARN by calling ListRepositoryAssociations.

*

A code review can only be created on an associated repository. This is the * ARN of the associated repository.

*/ inline const Aws::String& GetRepositoryAssociationArn() const{ return m_repositoryAssociationArn; } /** *

The Amazon Resource Name (ARN) of the RepositoryAssociation * object. You can retrieve this ARN by calling ListRepositoryAssociations.

*

A code review can only be created on an associated repository. This is the * ARN of the associated repository.

*/ inline bool RepositoryAssociationArnHasBeenSet() const { return m_repositoryAssociationArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the RepositoryAssociation * object. You can retrieve this ARN by calling ListRepositoryAssociations.

*

A code review can only be created on an associated repository. This is the * ARN of the associated repository.

*/ inline void SetRepositoryAssociationArn(const Aws::String& value) { m_repositoryAssociationArnHasBeenSet = true; m_repositoryAssociationArn = value; } /** *

The Amazon Resource Name (ARN) of the RepositoryAssociation * object. You can retrieve this ARN by calling ListRepositoryAssociations.

*

A code review can only be created on an associated repository. This is the * ARN of the associated repository.

*/ inline void SetRepositoryAssociationArn(Aws::String&& value) { m_repositoryAssociationArnHasBeenSet = true; m_repositoryAssociationArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the RepositoryAssociation * object. You can retrieve this ARN by calling ListRepositoryAssociations.

*

A code review can only be created on an associated repository. This is the * ARN of the associated repository.

*/ inline void SetRepositoryAssociationArn(const char* value) { m_repositoryAssociationArnHasBeenSet = true; m_repositoryAssociationArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the RepositoryAssociation * object. You can retrieve this ARN by calling ListRepositoryAssociations.

*

A code review can only be created on an associated repository. This is the * ARN of the associated repository.

*/ inline CreateCodeReviewRequest& WithRepositoryAssociationArn(const Aws::String& value) { SetRepositoryAssociationArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the RepositoryAssociation * object. You can retrieve this ARN by calling ListRepositoryAssociations.

*

A code review can only be created on an associated repository. This is the * ARN of the associated repository.

*/ inline CreateCodeReviewRequest& WithRepositoryAssociationArn(Aws::String&& value) { SetRepositoryAssociationArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the RepositoryAssociation * object. You can retrieve this ARN by calling ListRepositoryAssociations.

*

A code review can only be created on an associated repository. This is the * ARN of the associated repository.

*/ inline CreateCodeReviewRequest& WithRepositoryAssociationArn(const char* value) { SetRepositoryAssociationArn(value); return *this;} /** *

The type of code review to create. This is specified using a CodeReviewType * object. You can create a code review only of type * RepositoryAnalysis.

*/ inline const CodeReviewType& GetType() const{ return m_type; } /** *

The type of code review to create. This is specified using a CodeReviewType * object. You can create a code review only of type * RepositoryAnalysis.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of code review to create. This is specified using a CodeReviewType * object. You can create a code review only of type * RepositoryAnalysis.

*/ inline void SetType(const CodeReviewType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of code review to create. This is specified using a CodeReviewType * object. You can create a code review only of type * RepositoryAnalysis.

*/ inline void SetType(CodeReviewType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of code review to create. This is specified using a CodeReviewType * object. You can create a code review only of type * RepositoryAnalysis.

*/ inline CreateCodeReviewRequest& WithType(const CodeReviewType& value) { SetType(value); return *this;} /** *

The type of code review to create. This is specified using a CodeReviewType * object. You can create a code review only of type * RepositoryAnalysis.

*/ inline CreateCodeReviewRequest& WithType(CodeReviewType&& value) { SetType(std::move(value)); return *this;} /** *

Amazon CodeGuru Reviewer uses this value to prevent the accidental creation * of duplicate code reviews if there are failures and retries.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

Amazon CodeGuru Reviewer uses this value to prevent the accidental creation * of duplicate code reviews if there are failures and retries.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

Amazon CodeGuru Reviewer uses this value to prevent the accidental creation * of duplicate code reviews if there are failures and retries.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

Amazon CodeGuru Reviewer uses this value to prevent the accidental creation * of duplicate code reviews if there are failures and retries.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

Amazon CodeGuru Reviewer uses this value to prevent the accidental creation * of duplicate code reviews if there are failures and retries.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

Amazon CodeGuru Reviewer uses this value to prevent the accidental creation * of duplicate code reviews if there are failures and retries.

*/ inline CreateCodeReviewRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

Amazon CodeGuru Reviewer uses this value to prevent the accidental creation * of duplicate code reviews if there are failures and retries.

*/ inline CreateCodeReviewRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

Amazon CodeGuru Reviewer uses this value to prevent the accidental creation * of duplicate code reviews if there are failures and retries.

*/ inline CreateCodeReviewRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_repositoryAssociationArn; bool m_repositoryAssociationArnHasBeenSet = false; CodeReviewType m_type; bool m_typeHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruReviewer } // namespace Aws