feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,558 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/codeguru-reviewer/CodeGuruReviewerErrors.h>
#include <aws/core/client/AWSError.h>
#include <aws/core/client/ClientConfiguration.h>
#include <aws/core/client/AWSClient.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/codeguru-reviewer/model/AssociateRepositoryResult.h>
#include <aws/codeguru-reviewer/model/DescribeCodeReviewResult.h>
#include <aws/codeguru-reviewer/model/DescribeRecommendationFeedbackResult.h>
#include <aws/codeguru-reviewer/model/DescribeRepositoryAssociationResult.h>
#include <aws/codeguru-reviewer/model/DisassociateRepositoryResult.h>
#include <aws/codeguru-reviewer/model/ListCodeReviewsResult.h>
#include <aws/codeguru-reviewer/model/ListRecommendationFeedbackResult.h>
#include <aws/codeguru-reviewer/model/ListRecommendationsResult.h>
#include <aws/codeguru-reviewer/model/ListRepositoryAssociationsResult.h>
#include <aws/codeguru-reviewer/model/PutRecommendationFeedbackResult.h>
#include <aws/core/client/AsyncCallerContext.h>
#include <aws/core/http/HttpTypes.h>
#include <future>
#include <functional>
namespace Aws
{
namespace Http
{
class HttpClient;
class HttpClientFactory;
} // namespace Http
namespace Utils
{
template< typename R, typename E> class Outcome;
namespace Threading
{
class Executor;
} // namespace Threading
} // namespace Utils
namespace Auth
{
class AWSCredentials;
class AWSCredentialsProvider;
} // namespace Auth
namespace Client
{
class RetryStrategy;
} // namespace Client
namespace CodeGuruReviewer
{
namespace Model
{
class AssociateRepositoryRequest;
class DescribeCodeReviewRequest;
class DescribeRecommendationFeedbackRequest;
class DescribeRepositoryAssociationRequest;
class DisassociateRepositoryRequest;
class ListCodeReviewsRequest;
class ListRecommendationFeedbackRequest;
class ListRecommendationsRequest;
class ListRepositoryAssociationsRequest;
class PutRecommendationFeedbackRequest;
typedef Aws::Utils::Outcome<AssociateRepositoryResult, CodeGuruReviewerError> AssociateRepositoryOutcome;
typedef Aws::Utils::Outcome<DescribeCodeReviewResult, CodeGuruReviewerError> DescribeCodeReviewOutcome;
typedef Aws::Utils::Outcome<DescribeRecommendationFeedbackResult, CodeGuruReviewerError> DescribeRecommendationFeedbackOutcome;
typedef Aws::Utils::Outcome<DescribeRepositoryAssociationResult, CodeGuruReviewerError> DescribeRepositoryAssociationOutcome;
typedef Aws::Utils::Outcome<DisassociateRepositoryResult, CodeGuruReviewerError> DisassociateRepositoryOutcome;
typedef Aws::Utils::Outcome<ListCodeReviewsResult, CodeGuruReviewerError> ListCodeReviewsOutcome;
typedef Aws::Utils::Outcome<ListRecommendationFeedbackResult, CodeGuruReviewerError> ListRecommendationFeedbackOutcome;
typedef Aws::Utils::Outcome<ListRecommendationsResult, CodeGuruReviewerError> ListRecommendationsOutcome;
typedef Aws::Utils::Outcome<ListRepositoryAssociationsResult, CodeGuruReviewerError> ListRepositoryAssociationsOutcome;
typedef Aws::Utils::Outcome<PutRecommendationFeedbackResult, CodeGuruReviewerError> PutRecommendationFeedbackOutcome;
typedef std::future<AssociateRepositoryOutcome> AssociateRepositoryOutcomeCallable;
typedef std::future<DescribeCodeReviewOutcome> DescribeCodeReviewOutcomeCallable;
typedef std::future<DescribeRecommendationFeedbackOutcome> DescribeRecommendationFeedbackOutcomeCallable;
typedef std::future<DescribeRepositoryAssociationOutcome> DescribeRepositoryAssociationOutcomeCallable;
typedef std::future<DisassociateRepositoryOutcome> DisassociateRepositoryOutcomeCallable;
typedef std::future<ListCodeReviewsOutcome> ListCodeReviewsOutcomeCallable;
typedef std::future<ListRecommendationFeedbackOutcome> ListRecommendationFeedbackOutcomeCallable;
typedef std::future<ListRecommendationsOutcome> ListRecommendationsOutcomeCallable;
typedef std::future<ListRepositoryAssociationsOutcome> ListRepositoryAssociationsOutcomeCallable;
typedef std::future<PutRecommendationFeedbackOutcome> PutRecommendationFeedbackOutcomeCallable;
} // namespace Model
class CodeGuruReviewerClient;
typedef std::function<void(const CodeGuruReviewerClient*, const Model::AssociateRepositoryRequest&, const Model::AssociateRepositoryOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > AssociateRepositoryResponseReceivedHandler;
typedef std::function<void(const CodeGuruReviewerClient*, const Model::DescribeCodeReviewRequest&, const Model::DescribeCodeReviewOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeCodeReviewResponseReceivedHandler;
typedef std::function<void(const CodeGuruReviewerClient*, const Model::DescribeRecommendationFeedbackRequest&, const Model::DescribeRecommendationFeedbackOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeRecommendationFeedbackResponseReceivedHandler;
typedef std::function<void(const CodeGuruReviewerClient*, const Model::DescribeRepositoryAssociationRequest&, const Model::DescribeRepositoryAssociationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeRepositoryAssociationResponseReceivedHandler;
typedef std::function<void(const CodeGuruReviewerClient*, const Model::DisassociateRepositoryRequest&, const Model::DisassociateRepositoryOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DisassociateRepositoryResponseReceivedHandler;
typedef std::function<void(const CodeGuruReviewerClient*, const Model::ListCodeReviewsRequest&, const Model::ListCodeReviewsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListCodeReviewsResponseReceivedHandler;
typedef std::function<void(const CodeGuruReviewerClient*, const Model::ListRecommendationFeedbackRequest&, const Model::ListRecommendationFeedbackOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListRecommendationFeedbackResponseReceivedHandler;
typedef std::function<void(const CodeGuruReviewerClient*, const Model::ListRecommendationsRequest&, const Model::ListRecommendationsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListRecommendationsResponseReceivedHandler;
typedef std::function<void(const CodeGuruReviewerClient*, const Model::ListRepositoryAssociationsRequest&, const Model::ListRepositoryAssociationsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListRepositoryAssociationsResponseReceivedHandler;
typedef std::function<void(const CodeGuruReviewerClient*, const Model::PutRecommendationFeedbackRequest&, const Model::PutRecommendationFeedbackOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > PutRecommendationFeedbackResponseReceivedHandler;
/**
* <p>This section provides documentation for the Amazon CodeGuru Reviewer API
* operations. CodeGuru Reviewer is a service that uses program analysis and
* machine learning to detect potential defects that are difficult for developers
* to find and recommends fixes in your Java code.</p> <p>By proactively detecting
* and providing recommendations for addressing code defects and implementing best
* practices, CodeGuru Reviewer improves the overall quality and maintainability of
* your code base during the code review stage. For more information about CodeGuru
* Reviewer, see the <i> <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/welcome.html">Amazon
* CodeGuru Reviewer User Guide</a>.</i> </p>
*/
class AWS_CODEGURUREVIEWER_API CodeGuruReviewerClient : public Aws::Client::AWSJsonClient
{
public:
typedef Aws::Client::AWSJsonClient BASECLASS;
/**
* Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config
* is not specified, it will be initialized to default values.
*/
CodeGuruReviewerClient(const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
/**
* Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config
* is not specified, it will be initialized to default values.
*/
CodeGuruReviewerClient(const Aws::Auth::AWSCredentials& credentials, const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
/**
* Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied,
* the default http client factory will be used
*/
CodeGuruReviewerClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
virtual ~CodeGuruReviewerClient();
/**
* <p> Use to associate an AWS CodeCommit repository or a repostory managed by AWS
* CodeStar Connections with Amazon CodeGuru Reviewer. When you associate a
* repository, CodeGuru Reviewer reviews source code changes in the repository's
* pull requests and provides automatic recommendations. You can view
* recommendations using the CodeGuru Reviewer console. For more information, see
* <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/recommendations.html">Recommendations
* in Amazon CodeGuru Reviewer</a> in the <i>Amazon CodeGuru Reviewer User
* Guide.</i> </p> <p>If you associate a CodeCommit repository, it must be in the
* same AWS Region and AWS account where its CodeGuru Reviewer code reviews are
* configured.</p> <p> Bitbucket and GitHub Enterprise Server repositories are
* managed by AWS CodeStar Connections to connect to CodeGuru Reviewer. For more
* information, see <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/reviewer-ug/step-one.html#select-repository-source-provider">Connect
* to a repository source provider</a> in the <i>Amazon CodeGuru Reviewer User
* Guide.</i> </p> <p> You cannot use the CodeGuru Reviewer SDK or the AWS
* CLI to associate a GitHub repository with Amazon CodeGuru Reviewer. To associate
* a GitHub repository, use the console. For more information, see <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/getting-started-with-guru.html">Getting
* started with CodeGuru Reviewer</a> in the <i>CodeGuru Reviewer User Guide.</i>
* </p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/AssociateRepository">AWS
* API Reference</a></p>
*/
virtual Model::AssociateRepositoryOutcome AssociateRepository(const Model::AssociateRepositoryRequest& request) const;
/**
* <p> Use to associate an AWS CodeCommit repository or a repostory managed by AWS
* CodeStar Connections with Amazon CodeGuru Reviewer. When you associate a
* repository, CodeGuru Reviewer reviews source code changes in the repository's
* pull requests and provides automatic recommendations. You can view
* recommendations using the CodeGuru Reviewer console. For more information, see
* <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/recommendations.html">Recommendations
* in Amazon CodeGuru Reviewer</a> in the <i>Amazon CodeGuru Reviewer User
* Guide.</i> </p> <p>If you associate a CodeCommit repository, it must be in the
* same AWS Region and AWS account where its CodeGuru Reviewer code reviews are
* configured.</p> <p> Bitbucket and GitHub Enterprise Server repositories are
* managed by AWS CodeStar Connections to connect to CodeGuru Reviewer. For more
* information, see <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/reviewer-ug/step-one.html#select-repository-source-provider">Connect
* to a repository source provider</a> in the <i>Amazon CodeGuru Reviewer User
* Guide.</i> </p> <p> You cannot use the CodeGuru Reviewer SDK or the AWS
* CLI to associate a GitHub repository with Amazon CodeGuru Reviewer. To associate
* a GitHub repository, use the console. For more information, see <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/getting-started-with-guru.html">Getting
* started with CodeGuru Reviewer</a> in the <i>CodeGuru Reviewer User Guide.</i>
* </p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/AssociateRepository">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::AssociateRepositoryOutcomeCallable AssociateRepositoryCallable(const Model::AssociateRepositoryRequest& request) const;
/**
* <p> Use to associate an AWS CodeCommit repository or a repostory managed by AWS
* CodeStar Connections with Amazon CodeGuru Reviewer. When you associate a
* repository, CodeGuru Reviewer reviews source code changes in the repository's
* pull requests and provides automatic recommendations. You can view
* recommendations using the CodeGuru Reviewer console. For more information, see
* <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/recommendations.html">Recommendations
* in Amazon CodeGuru Reviewer</a> in the <i>Amazon CodeGuru Reviewer User
* Guide.</i> </p> <p>If you associate a CodeCommit repository, it must be in the
* same AWS Region and AWS account where its CodeGuru Reviewer code reviews are
* configured.</p> <p> Bitbucket and GitHub Enterprise Server repositories are
* managed by AWS CodeStar Connections to connect to CodeGuru Reviewer. For more
* information, see <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/reviewer-ug/step-one.html#select-repository-source-provider">Connect
* to a repository source provider</a> in the <i>Amazon CodeGuru Reviewer User
* Guide.</i> </p> <p> You cannot use the CodeGuru Reviewer SDK or the AWS
* CLI to associate a GitHub repository with Amazon CodeGuru Reviewer. To associate
* a GitHub repository, use the console. For more information, see <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/getting-started-with-guru.html">Getting
* started with CodeGuru Reviewer</a> in the <i>CodeGuru Reviewer User Guide.</i>
* </p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/AssociateRepository">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void AssociateRepositoryAsync(const Model::AssociateRepositoryRequest& request, const AssociateRepositoryResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p> Returns the metadata associated with the code review along with its
* status.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeCodeReview">AWS
* API Reference</a></p>
*/
virtual Model::DescribeCodeReviewOutcome DescribeCodeReview(const Model::DescribeCodeReviewRequest& request) const;
/**
* <p> Returns the metadata associated with the code review along with its
* status.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeCodeReview">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribeCodeReviewOutcomeCallable DescribeCodeReviewCallable(const Model::DescribeCodeReviewRequest& request) const;
/**
* <p> Returns the metadata associated with the code review along with its
* status.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeCodeReview">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribeCodeReviewAsync(const Model::DescribeCodeReviewRequest& request, const DescribeCodeReviewResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p> Describes the customer feedback for a CodeGuru Reviewer recommendation.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRecommendationFeedback">AWS
* API Reference</a></p>
*/
virtual Model::DescribeRecommendationFeedbackOutcome DescribeRecommendationFeedback(const Model::DescribeRecommendationFeedbackRequest& request) const;
/**
* <p> Describes the customer feedback for a CodeGuru Reviewer recommendation.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRecommendationFeedback">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribeRecommendationFeedbackOutcomeCallable DescribeRecommendationFeedbackCallable(const Model::DescribeRecommendationFeedbackRequest& request) const;
/**
* <p> Describes the customer feedback for a CodeGuru Reviewer recommendation.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRecommendationFeedback">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribeRecommendationFeedbackAsync(const Model::DescribeRecommendationFeedbackRequest& request, const DescribeRecommendationFeedbackResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p> Returns a <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object that contains information about
* the requested repository association. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRepositoryAssociation">AWS
* API Reference</a></p>
*/
virtual Model::DescribeRepositoryAssociationOutcome DescribeRepositoryAssociation(const Model::DescribeRepositoryAssociationRequest& request) const;
/**
* <p> Returns a <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object that contains information about
* the requested repository association. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRepositoryAssociation">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribeRepositoryAssociationOutcomeCallable DescribeRepositoryAssociationCallable(const Model::DescribeRepositoryAssociationRequest& request) const;
/**
* <p> Returns a <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object that contains information about
* the requested repository association. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRepositoryAssociation">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribeRepositoryAssociationAsync(const Model::DescribeRepositoryAssociationRequest& request, const DescribeRepositoryAssociationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Removes the association between Amazon CodeGuru Reviewer and a
* repository.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DisassociateRepository">AWS
* API Reference</a></p>
*/
virtual Model::DisassociateRepositoryOutcome DisassociateRepository(const Model::DisassociateRepositoryRequest& request) const;
/**
* <p>Removes the association between Amazon CodeGuru Reviewer and a
* repository.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DisassociateRepository">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DisassociateRepositoryOutcomeCallable DisassociateRepositoryCallable(const Model::DisassociateRepositoryRequest& request) const;
/**
* <p>Removes the association between Amazon CodeGuru Reviewer and a
* repository.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DisassociateRepository">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DisassociateRepositoryAsync(const Model::DisassociateRepositoryRequest& request, const DisassociateRepositoryResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p> Lists all the code reviews that the customer has created in the past 90
* days. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListCodeReviews">AWS
* API Reference</a></p>
*/
virtual Model::ListCodeReviewsOutcome ListCodeReviews(const Model::ListCodeReviewsRequest& request) const;
/**
* <p> Lists all the code reviews that the customer has created in the past 90
* days. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListCodeReviews">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListCodeReviewsOutcomeCallable ListCodeReviewsCallable(const Model::ListCodeReviewsRequest& request) const;
/**
* <p> Lists all the code reviews that the customer has created in the past 90
* days. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListCodeReviews">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListCodeReviewsAsync(const Model::ListCodeReviewsRequest& request, const ListCodeReviewsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p> Returns a list of <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RecommendationFeedbackSummary.html">
* <code>RecommendationFeedbackSummary</code> </a> objects that contain customer
* recommendation feedback for all CodeGuru Reviewer users. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendationFeedback">AWS
* API Reference</a></p>
*/
virtual Model::ListRecommendationFeedbackOutcome ListRecommendationFeedback(const Model::ListRecommendationFeedbackRequest& request) const;
/**
* <p> Returns a list of <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RecommendationFeedbackSummary.html">
* <code>RecommendationFeedbackSummary</code> </a> objects that contain customer
* recommendation feedback for all CodeGuru Reviewer users. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendationFeedback">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListRecommendationFeedbackOutcomeCallable ListRecommendationFeedbackCallable(const Model::ListRecommendationFeedbackRequest& request) const;
/**
* <p> Returns a list of <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RecommendationFeedbackSummary.html">
* <code>RecommendationFeedbackSummary</code> </a> objects that contain customer
* recommendation feedback for all CodeGuru Reviewer users. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendationFeedback">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListRecommendationFeedbackAsync(const Model::ListRecommendationFeedbackRequest& request, const ListRecommendationFeedbackResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p> Returns the list of all recommendations for a completed code review.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendations">AWS
* API Reference</a></p>
*/
virtual Model::ListRecommendationsOutcome ListRecommendations(const Model::ListRecommendationsRequest& request) const;
/**
* <p> Returns the list of all recommendations for a completed code review.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendations">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListRecommendationsOutcomeCallable ListRecommendationsCallable(const Model::ListRecommendationsRequest& request) const;
/**
* <p> Returns the list of all recommendations for a completed code review.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendations">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListRecommendationsAsync(const Model::ListRecommendationsRequest& request, const ListRecommendationsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p> Returns a list of <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html">
* <code>RepositoryAssociationSummary</code> </a> objects that contain summary
* information about a repository association. You can filter the returned list by
* <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-ProviderType">
* <code>ProviderType</code> </a>, <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-Name">
* <code>Name</code> </a>, <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-State">
* <code>State</code> </a>, and <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-Owner">
* <code>Owner</code> </a>. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRepositoryAssociations">AWS
* API Reference</a></p>
*/
virtual Model::ListRepositoryAssociationsOutcome ListRepositoryAssociations(const Model::ListRepositoryAssociationsRequest& request) const;
/**
* <p> Returns a list of <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html">
* <code>RepositoryAssociationSummary</code> </a> objects that contain summary
* information about a repository association. You can filter the returned list by
* <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-ProviderType">
* <code>ProviderType</code> </a>, <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-Name">
* <code>Name</code> </a>, <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-State">
* <code>State</code> </a>, and <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-Owner">
* <code>Owner</code> </a>. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRepositoryAssociations">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListRepositoryAssociationsOutcomeCallable ListRepositoryAssociationsCallable(const Model::ListRepositoryAssociationsRequest& request) const;
/**
* <p> Returns a list of <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html">
* <code>RepositoryAssociationSummary</code> </a> objects that contain summary
* information about a repository association. You can filter the returned list by
* <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-ProviderType">
* <code>ProviderType</code> </a>, <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-Name">
* <code>Name</code> </a>, <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-State">
* <code>State</code> </a>, and <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-Owner">
* <code>Owner</code> </a>. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRepositoryAssociations">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListRepositoryAssociationsAsync(const Model::ListRepositoryAssociationsRequest& request, const ListRepositoryAssociationsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p> Stores customer feedback for a CodeGuru Reviewer recommendation. When this
* API is called again with different reactions the previous feedback is
* overwritten. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/PutRecommendationFeedback">AWS
* API Reference</a></p>
*/
virtual Model::PutRecommendationFeedbackOutcome PutRecommendationFeedback(const Model::PutRecommendationFeedbackRequest& request) const;
/**
* <p> Stores customer feedback for a CodeGuru Reviewer recommendation. When this
* API is called again with different reactions the previous feedback is
* overwritten. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/PutRecommendationFeedback">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::PutRecommendationFeedbackOutcomeCallable PutRecommendationFeedbackCallable(const Model::PutRecommendationFeedbackRequest& request) const;
/**
* <p> Stores customer feedback for a CodeGuru Reviewer recommendation. When this
* API is called again with different reactions the previous feedback is
* overwritten. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/PutRecommendationFeedback">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void PutRecommendationFeedbackAsync(const Model::PutRecommendationFeedbackRequest& request, const PutRecommendationFeedbackResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
void OverrideEndpoint(const Aws::String& endpoint);
private:
void init(const Aws::Client::ClientConfiguration& clientConfiguration);
void AssociateRepositoryAsyncHelper(const Model::AssociateRepositoryRequest& request, const AssociateRepositoryResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribeCodeReviewAsyncHelper(const Model::DescribeCodeReviewRequest& request, const DescribeCodeReviewResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribeRecommendationFeedbackAsyncHelper(const Model::DescribeRecommendationFeedbackRequest& request, const DescribeRecommendationFeedbackResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribeRepositoryAssociationAsyncHelper(const Model::DescribeRepositoryAssociationRequest& request, const DescribeRepositoryAssociationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DisassociateRepositoryAsyncHelper(const Model::DisassociateRepositoryRequest& request, const DisassociateRepositoryResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListCodeReviewsAsyncHelper(const Model::ListCodeReviewsRequest& request, const ListCodeReviewsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListRecommendationFeedbackAsyncHelper(const Model::ListRecommendationFeedbackRequest& request, const ListRecommendationFeedbackResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListRecommendationsAsyncHelper(const Model::ListRecommendationsRequest& request, const ListRecommendationsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListRepositoryAssociationsAsyncHelper(const Model::ListRepositoryAssociationsRequest& request, const ListRepositoryAssociationsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void PutRecommendationFeedbackAsyncHelper(const Model::PutRecommendationFeedbackRequest& request, const PutRecommendationFeedbackResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
Aws::String m_uri;
Aws::String m_configScheme;
std::shared_ptr<Aws::Utils::Threading::Executor> m_executor;
};
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,21 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeGuruReviewer
{
namespace CodeGuruReviewerEndpoint
{
AWS_CODEGURUREVIEWER_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace CodeGuruReviewerEndpoint
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,23 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_CODEGURUREVIEWER_API CodeGuruReviewerErrorMarshaller : public Aws::Client::JsonErrorMarshaller
{
public:
Aws::Client::AWSError<Aws::Client::CoreErrors> FindErrorByName(const char* exceptionName) const override;
};
} // namespace Client
} // namespace Aws

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/core/client/AWSError.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
namespace Aws
{
namespace CodeGuruReviewer
{
enum class CodeGuruReviewerErrors
{
//From Core//
//////////////////////////////////////////////////////////////////////////////////////////
INCOMPLETE_SIGNATURE = 0,
INTERNAL_FAILURE = 1,
INVALID_ACTION = 2,
INVALID_CLIENT_TOKEN_ID = 3,
INVALID_PARAMETER_COMBINATION = 4,
INVALID_QUERY_PARAMETER = 5,
INVALID_PARAMETER_VALUE = 6,
MISSING_ACTION = 7, // SDK should never allow
MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
MISSING_PARAMETER = 9, // SDK should never allow
OPT_IN_REQUIRED = 10,
REQUEST_EXPIRED = 11,
SERVICE_UNAVAILABLE = 12,
THROTTLING = 13,
VALIDATION = 14,
ACCESS_DENIED = 15,
RESOURCE_NOT_FOUND = 16,
UNRECOGNIZED_CLIENT = 17,
MALFORMED_QUERY_STRING = 18,
SLOW_DOWN = 19,
REQUEST_TIME_TOO_SKEWED = 20,
INVALID_SIGNATURE = 21,
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
NETWORK_CONNECTION = 99,
UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////
CONFLICT= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
INTERNAL_SERVER,
NOT_FOUND
};
class AWS_CODEGURUREVIEWER_API CodeGuruReviewerError : public Aws::Client::AWSError<CodeGuruReviewerErrors>
{
public:
CodeGuruReviewerError() {}
CodeGuruReviewerError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<CodeGuruReviewerErrors>(rhs) {}
CodeGuruReviewerError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<CodeGuruReviewerErrors>(rhs) {}
CodeGuruReviewerError(const Aws::Client::AWSError<CodeGuruReviewerErrors>& rhs) : Aws::Client::AWSError<CodeGuruReviewerErrors>(rhs) {}
CodeGuruReviewerError(Aws::Client::AWSError<CodeGuruReviewerErrors>&& rhs) : Aws::Client::AWSError<CodeGuruReviewerErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace CodeGuruReviewerErrorMapper
{
AWS_CODEGURUREVIEWER_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace CodeGuruReviewer
{
class AWS_CODEGURUREVIEWER_API CodeGuruReviewerRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~CodeGuruReviewerRequest () {}
void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
inline Aws::Http::HeaderValueCollection GetHeaders() const override
{
auto headers = GetRequestSpecificHeaders();
if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
{
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 ));
}
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2019-09-19"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,29 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#ifdef _MSC_VER
//disable windows complaining about max template size.
#pragma warning (disable : 4503)
#endif // _MSC_VER
#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32)
#ifdef _MSC_VER
#pragma warning(disable : 4251)
#endif // _MSC_VER
#ifdef USE_IMPORT_EXPORT
#ifdef AWS_CODEGURUREVIEWER_EXPORTS
#define AWS_CODEGURUREVIEWER_API __declspec(dllexport)
#else
#define AWS_CODEGURUREVIEWER_API __declspec(dllimport)
#endif /* AWS_CODEGURUREVIEWER_EXPORTS */
#else
#define AWS_CODEGURUREVIEWER_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_CODEGURUREVIEWER_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

View File

@@ -0,0 +1,223 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/codeguru-reviewer/CodeGuruReviewerRequest.h>
#include <aws/codeguru-reviewer/model/Repository.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
#include <aws/core/utils/UUID.h>
namespace Aws
{
namespace CodeGuruReviewer
{
namespace Model
{
/**
*/
class AWS_CODEGURUREVIEWER_API AssociateRepositoryRequest : public CodeGuruReviewerRequest
{
public:
AssociateRepositoryRequest();
// 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 "AssociateRepository"; }
Aws::String SerializePayload() const override;
/**
* <p>The repository to associate.</p>
*/
inline const Repository& GetRepository() const{ return m_repository; }
/**
* <p>The repository to associate.</p>
*/
inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
/**
* <p>The repository to associate.</p>
*/
inline void SetRepository(const Repository& value) { m_repositoryHasBeenSet = true; m_repository = value; }
/**
* <p>The repository to associate.</p>
*/
inline void SetRepository(Repository&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); }
/**
* <p>The repository to associate.</p>
*/
inline AssociateRepositoryRequest& WithRepository(const Repository& value) { SetRepository(value); return *this;}
/**
* <p>The repository to associate.</p>
*/
inline AssociateRepositoryRequest& WithRepository(Repository&& value) { SetRepository(std::move(value)); return *this;}
/**
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
* of the request.</p> <p>To add a new repository association, this parameter
* specifies a unique identifier for the new repository association that helps
* ensure idempotency.</p> <p>If you use the AWS CLI or one of the AWS SDKs to call
* this operation, you can leave this parameter empty. The CLI or SDK generates a
* random UUID for you and includes that in the request. If you don't use the SDK
* and instead generate a raw HTTP request to the Secrets Manager service endpoint,
* you must generate a ClientRequestToken yourself for new versions and include
* that value in the request.</p> <p>You typically interact with this value if you
* implement your own retry logic and want to ensure that a given repository
* association is not created twice. We recommend that you generate a UUID-type
* value to ensure uniqueness within the specified repository association.</p>
* <p>Amazon CodeGuru Reviewer uses this value to prevent the accidental creation
* of duplicate repository associations if there are failures and retries. </p>
*/
inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
/**
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
* of the request.</p> <p>To add a new repository association, this parameter
* specifies a unique identifier for the new repository association that helps
* ensure idempotency.</p> <p>If you use the AWS CLI or one of the AWS SDKs to call
* this operation, you can leave this parameter empty. The CLI or SDK generates a
* random UUID for you and includes that in the request. If you don't use the SDK
* and instead generate a raw HTTP request to the Secrets Manager service endpoint,
* you must generate a ClientRequestToken yourself for new versions and include
* that value in the request.</p> <p>You typically interact with this value if you
* implement your own retry logic and want to ensure that a given repository
* association is not created twice. We recommend that you generate a UUID-type
* value to ensure uniqueness within the specified repository association.</p>
* <p>Amazon CodeGuru Reviewer uses this value to prevent the accidental creation
* of duplicate repository associations if there are failures and retries. </p>
*/
inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
/**
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
* of the request.</p> <p>To add a new repository association, this parameter
* specifies a unique identifier for the new repository association that helps
* ensure idempotency.</p> <p>If you use the AWS CLI or one of the AWS SDKs to call
* this operation, you can leave this parameter empty. The CLI or SDK generates a
* random UUID for you and includes that in the request. If you don't use the SDK
* and instead generate a raw HTTP request to the Secrets Manager service endpoint,
* you must generate a ClientRequestToken yourself for new versions and include
* that value in the request.</p> <p>You typically interact with this value if you
* implement your own retry logic and want to ensure that a given repository
* association is not created twice. We recommend that you generate a UUID-type
* value to ensure uniqueness within the specified repository association.</p>
* <p>Amazon CodeGuru Reviewer uses this value to prevent the accidental creation
* of duplicate repository associations if there are failures and retries. </p>
*/
inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
/**
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
* of the request.</p> <p>To add a new repository association, this parameter
* specifies a unique identifier for the new repository association that helps
* ensure idempotency.</p> <p>If you use the AWS CLI or one of the AWS SDKs to call
* this operation, you can leave this parameter empty. The CLI or SDK generates a
* random UUID for you and includes that in the request. If you don't use the SDK
* and instead generate a raw HTTP request to the Secrets Manager service endpoint,
* you must generate a ClientRequestToken yourself for new versions and include
* that value in the request.</p> <p>You typically interact with this value if you
* implement your own retry logic and want to ensure that a given repository
* association is not created twice. We recommend that you generate a UUID-type
* value to ensure uniqueness within the specified repository association.</p>
* <p>Amazon CodeGuru Reviewer uses this value to prevent the accidental creation
* of duplicate repository associations if there are failures and retries. </p>
*/
inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
/**
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
* of the request.</p> <p>To add a new repository association, this parameter
* specifies a unique identifier for the new repository association that helps
* ensure idempotency.</p> <p>If you use the AWS CLI or one of the AWS SDKs to call
* this operation, you can leave this parameter empty. The CLI or SDK generates a
* random UUID for you and includes that in the request. If you don't use the SDK
* and instead generate a raw HTTP request to the Secrets Manager service endpoint,
* you must generate a ClientRequestToken yourself for new versions and include
* that value in the request.</p> <p>You typically interact with this value if you
* implement your own retry logic and want to ensure that a given repository
* association is not created twice. We recommend that you generate a UUID-type
* value to ensure uniqueness within the specified repository association.</p>
* <p>Amazon CodeGuru Reviewer uses this value to prevent the accidental creation
* of duplicate repository associations if there are failures and retries. </p>
*/
inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
/**
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
* of the request.</p> <p>To add a new repository association, this parameter
* specifies a unique identifier for the new repository association that helps
* ensure idempotency.</p> <p>If you use the AWS CLI or one of the AWS SDKs to call
* this operation, you can leave this parameter empty. The CLI or SDK generates a
* random UUID for you and includes that in the request. If you don't use the SDK
* and instead generate a raw HTTP request to the Secrets Manager service endpoint,
* you must generate a ClientRequestToken yourself for new versions and include
* that value in the request.</p> <p>You typically interact with this value if you
* implement your own retry logic and want to ensure that a given repository
* association is not created twice. We recommend that you generate a UUID-type
* value to ensure uniqueness within the specified repository association.</p>
* <p>Amazon CodeGuru Reviewer uses this value to prevent the accidental creation
* of duplicate repository associations if there are failures and retries. </p>
*/
inline AssociateRepositoryRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
/**
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
* of the request.</p> <p>To add a new repository association, this parameter
* specifies a unique identifier for the new repository association that helps
* ensure idempotency.</p> <p>If you use the AWS CLI or one of the AWS SDKs to call
* this operation, you can leave this parameter empty. The CLI or SDK generates a
* random UUID for you and includes that in the request. If you don't use the SDK
* and instead generate a raw HTTP request to the Secrets Manager service endpoint,
* you must generate a ClientRequestToken yourself for new versions and include
* that value in the request.</p> <p>You typically interact with this value if you
* implement your own retry logic and want to ensure that a given repository
* association is not created twice. We recommend that you generate a UUID-type
* value to ensure uniqueness within the specified repository association.</p>
* <p>Amazon CodeGuru Reviewer uses this value to prevent the accidental creation
* of duplicate repository associations if there are failures and retries. </p>
*/
inline AssociateRepositoryRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
/**
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency
* of the request.</p> <p>To add a new repository association, this parameter
* specifies a unique identifier for the new repository association that helps
* ensure idempotency.</p> <p>If you use the AWS CLI or one of the AWS SDKs to call
* this operation, you can leave this parameter empty. The CLI or SDK generates a
* random UUID for you and includes that in the request. If you don't use the SDK
* and instead generate a raw HTTP request to the Secrets Manager service endpoint,
* you must generate a ClientRequestToken yourself for new versions and include
* that value in the request.</p> <p>You typically interact with this value if you
* implement your own retry logic and want to ensure that a given repository
* association is not created twice. We recommend that you generate a UUID-type
* value to ensure uniqueness within the specified repository association.</p>
* <p>Amazon CodeGuru Reviewer uses this value to prevent the accidental creation
* of duplicate repository associations if there are failures and retries. </p>
*/
inline AssociateRepositoryRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
private:
Repository m_repository;
bool m_repositoryHasBeenSet;
Aws::String m_clientRequestToken;
bool m_clientRequestTokenHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/codeguru-reviewer/model/RepositoryAssociation.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
class AWS_CODEGURUREVIEWER_API AssociateRepositoryResult
{
public:
AssociateRepositoryResult();
AssociateRepositoryResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AssociateRepositoryResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the repository association.</p>
*/
inline const RepositoryAssociation& GetRepositoryAssociation() const{ return m_repositoryAssociation; }
/**
* <p>Information about the repository association.</p>
*/
inline void SetRepositoryAssociation(const RepositoryAssociation& value) { m_repositoryAssociation = value; }
/**
* <p>Information about the repository association.</p>
*/
inline void SetRepositoryAssociation(RepositoryAssociation&& value) { m_repositoryAssociation = std::move(value); }
/**
* <p>Information about the repository association.</p>
*/
inline AssociateRepositoryResult& WithRepositoryAssociation(const RepositoryAssociation& value) { SetRepositoryAssociation(value); return *this;}
/**
* <p>Information about the repository association.</p>
*/
inline AssociateRepositoryResult& WithRepositoryAssociation(RepositoryAssociation&& value) { SetRepositoryAssociation(std::move(value)); return *this;}
private:
RepositoryAssociation m_repositoryAssociation;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,106 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
/**
* <p>Information about an AWS CodeCommit repository. The CodeCommit repository
* must be in the same AWS Region and AWS account where its CodeGuru Reviewer code
* reviews are configured. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CodeCommitRepository">AWS
* API Reference</a></p>
*/
class AWS_CODEGURUREVIEWER_API CodeCommitRepository
{
public:
CodeCommitRepository();
CodeCommitRepository(Aws::Utils::Json::JsonView jsonValue);
CodeCommitRepository& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the AWS CodeCommit repository. For more information, see <a
* href="https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetRepository.html#CodeCommit-GetRepository-request-repositoryName">repositoryName</a>
* in the <i>AWS CodeCommit API Reference</i>.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the AWS CodeCommit repository. For more information, see <a
* href="https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetRepository.html#CodeCommit-GetRepository-request-repositoryName">repositoryName</a>
* in the <i>AWS CodeCommit API Reference</i>.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the AWS CodeCommit repository. For more information, see <a
* href="https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetRepository.html#CodeCommit-GetRepository-request-repositoryName">repositoryName</a>
* in the <i>AWS CodeCommit API Reference</i>.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the AWS CodeCommit repository. For more information, see <a
* href="https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetRepository.html#CodeCommit-GetRepository-request-repositoryName">repositoryName</a>
* in the <i>AWS CodeCommit API Reference</i>.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the AWS CodeCommit repository. For more information, see <a
* href="https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetRepository.html#CodeCommit-GetRepository-request-repositoryName">repositoryName</a>
* in the <i>AWS CodeCommit API Reference</i>.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the AWS CodeCommit repository. For more information, see <a
* href="https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetRepository.html#CodeCommit-GetRepository-request-repositoryName">repositoryName</a>
* in the <i>AWS CodeCommit API Reference</i>.</p>
*/
inline CodeCommitRepository& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the AWS CodeCommit repository. For more information, see <a
* href="https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetRepository.html#CodeCommit-GetRepository-request-repositoryName">repositoryName</a>
* in the <i>AWS CodeCommit API Reference</i>.</p>
*/
inline CodeCommitRepository& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the AWS CodeCommit repository. For more information, see <a
* href="https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetRepository.html#CodeCommit-GetRepository-request-repositoryName">repositoryName</a>
* in the <i>AWS CodeCommit API Reference</i>.</p>
*/
inline CodeCommitRepository& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,634 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codeguru-reviewer/model/ProviderType.h>
#include <aws/codeguru-reviewer/model/JobState.h>
#include <aws/core/utils/DateTime.h>
#include <aws/codeguru-reviewer/model/Type.h>
#include <aws/codeguru-reviewer/model/SourceCodeType.h>
#include <aws/codeguru-reviewer/model/Metrics.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
/**
* <p> Information about a code review. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CodeReview">AWS
* API Reference</a></p>
*/
class AWS_CODEGURUREVIEWER_API CodeReview
{
public:
CodeReview();
CodeReview(Aws::Utils::Json::JsonView jsonValue);
CodeReview& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The name of the code review. </p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p> The name of the code review. </p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p> The name of the code review. </p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p> The name of the code review. </p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p> The name of the code review. </p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p> The name of the code review. </p>
*/
inline CodeReview& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p> The name of the code review. </p>
*/
inline CodeReview& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p> The name of the code review. </p>
*/
inline CodeReview& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline const Aws::String& GetCodeReviewArn() const{ return m_codeReviewArn; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline bool CodeReviewArnHasBeenSet() const { return m_codeReviewArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(const Aws::String& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(Aws::String&& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(const char* value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline CodeReview& WithCodeReviewArn(const Aws::String& value) { SetCodeReviewArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline CodeReview& WithCodeReviewArn(Aws::String&& value) { SetCodeReviewArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline CodeReview& WithCodeReviewArn(const char* value) { SetCodeReviewArn(value); return *this;}
/**
* <p> The name of the repository. </p>
*/
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
/**
* <p> The name of the repository. </p>
*/
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
/**
* <p> The name of the repository. </p>
*/
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
/**
* <p> The name of the repository. </p>
*/
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
/**
* <p> The name of the repository. </p>
*/
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
/**
* <p> The name of the repository. </p>
*/
inline CodeReview& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
/**
* <p> The name of the repository. </p>
*/
inline CodeReview& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
/**
* <p> The name of the repository. </p>
*/
inline CodeReview& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline const Aws::String& GetOwner() const{ return m_owner; }
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline CodeReview& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline CodeReview& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline CodeReview& WithOwner(const char* value) { SetOwner(value); return *this;}
/**
* <p> The type of repository that contains the reviewed code (for example, GitHub
* or Bitbucket). </p>
*/
inline const ProviderType& GetProviderType() const{ return m_providerType; }
/**
* <p> The type of repository that contains the reviewed code (for example, GitHub
* or Bitbucket). </p>
*/
inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
/**
* <p> The type of repository that contains the reviewed code (for example, GitHub
* or Bitbucket). </p>
*/
inline void SetProviderType(const ProviderType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
/**
* <p> The type of repository that contains the reviewed code (for example, GitHub
* or Bitbucket). </p>
*/
inline void SetProviderType(ProviderType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); }
/**
* <p> The type of repository that contains the reviewed code (for example, GitHub
* or Bitbucket). </p>
*/
inline CodeReview& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;}
/**
* <p> The type of repository that contains the reviewed code (for example, GitHub
* or Bitbucket). </p>
*/
inline CodeReview& WithProviderType(ProviderType&& value) { SetProviderType(std::move(value)); return *this;}
/**
* <p>The valid code review states are:</p> <ul> <li> <p> <code>Completed</code>:
* The code review is complete. </p> </li> <li> <p> <code>Pending</code>: The code
* review started and has not completed or failed. </p> </li> <li> <p>
* <code>Failed</code>: The code review failed. </p> </li> <li> <p>
* <code>Deleting</code>: The code review is being deleted. </p> </li> </ul>
*/
inline const JobState& GetState() const{ return m_state; }
/**
* <p>The valid code review states are:</p> <ul> <li> <p> <code>Completed</code>:
* The code review is complete. </p> </li> <li> <p> <code>Pending</code>: The code
* review started and has not completed or failed. </p> </li> <li> <p>
* <code>Failed</code>: The code review failed. </p> </li> <li> <p>
* <code>Deleting</code>: The code review is being deleted. </p> </li> </ul>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The valid code review states are:</p> <ul> <li> <p> <code>Completed</code>:
* The code review is complete. </p> </li> <li> <p> <code>Pending</code>: The code
* review started and has not completed or failed. </p> </li> <li> <p>
* <code>Failed</code>: The code review failed. </p> </li> <li> <p>
* <code>Deleting</code>: The code review is being deleted. </p> </li> </ul>
*/
inline void SetState(const JobState& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The valid code review states are:</p> <ul> <li> <p> <code>Completed</code>:
* The code review is complete. </p> </li> <li> <p> <code>Pending</code>: The code
* review started and has not completed or failed. </p> </li> <li> <p>
* <code>Failed</code>: The code review failed. </p> </li> <li> <p>
* <code>Deleting</code>: The code review is being deleted. </p> </li> </ul>
*/
inline void SetState(JobState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The valid code review states are:</p> <ul> <li> <p> <code>Completed</code>:
* The code review is complete. </p> </li> <li> <p> <code>Pending</code>: The code
* review started and has not completed or failed. </p> </li> <li> <p>
* <code>Failed</code>: The code review failed. </p> </li> <li> <p>
* <code>Deleting</code>: The code review is being deleted. </p> </li> </ul>
*/
inline CodeReview& WithState(const JobState& value) { SetState(value); return *this;}
/**
* <p>The valid code review states are:</p> <ul> <li> <p> <code>Completed</code>:
* The code review is complete. </p> </li> <li> <p> <code>Pending</code>: The code
* review started and has not completed or failed. </p> </li> <li> <p>
* <code>Failed</code>: The code review failed. </p> </li> <li> <p>
* <code>Deleting</code>: The code review is being deleted. </p> </li> </ul>
*/
inline CodeReview& WithState(JobState&& value) { SetState(std::move(value)); return *this;}
/**
* <p> The reason for the state of the code review. </p>
*/
inline const Aws::String& GetStateReason() const{ return m_stateReason; }
/**
* <p> The reason for the state of the code review. </p>
*/
inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
/**
* <p> The reason for the state of the code review. </p>
*/
inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
/**
* <p> The reason for the state of the code review. </p>
*/
inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); }
/**
* <p> The reason for the state of the code review. </p>
*/
inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); }
/**
* <p> The reason for the state of the code review. </p>
*/
inline CodeReview& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
/**
* <p> The reason for the state of the code review. </p>
*/
inline CodeReview& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
/**
* <p> The reason for the state of the code review. </p>
*/
inline CodeReview& WithStateReason(const char* value) { SetStateReason(value); return *this;}
/**
* <p> The time, in milliseconds since the epoch, when the code review was created.
* </p>
*/
inline const Aws::Utils::DateTime& GetCreatedTimeStamp() const{ return m_createdTimeStamp; }
/**
* <p> The time, in milliseconds since the epoch, when the code review was created.
* </p>
*/
inline bool CreatedTimeStampHasBeenSet() const { return m_createdTimeStampHasBeenSet; }
/**
* <p> The time, in milliseconds since the epoch, when the code review was created.
* </p>
*/
inline void SetCreatedTimeStamp(const Aws::Utils::DateTime& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = value; }
/**
* <p> The time, in milliseconds since the epoch, when the code review was created.
* </p>
*/
inline void SetCreatedTimeStamp(Aws::Utils::DateTime&& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = std::move(value); }
/**
* <p> The time, in milliseconds since the epoch, when the code review was created.
* </p>
*/
inline CodeReview& WithCreatedTimeStamp(const Aws::Utils::DateTime& value) { SetCreatedTimeStamp(value); return *this;}
/**
* <p> The time, in milliseconds since the epoch, when the code review was created.
* </p>
*/
inline CodeReview& WithCreatedTimeStamp(Aws::Utils::DateTime&& value) { SetCreatedTimeStamp(std::move(value)); return *this;}
/**
* <p> The time, in milliseconds since the epoch, when the code review was last
* updated. </p>
*/
inline const Aws::Utils::DateTime& GetLastUpdatedTimeStamp() const{ return m_lastUpdatedTimeStamp; }
/**
* <p> The time, in milliseconds since the epoch, when the code review was last
* updated. </p>
*/
inline bool LastUpdatedTimeStampHasBeenSet() const { return m_lastUpdatedTimeStampHasBeenSet; }
/**
* <p> The time, in milliseconds since the epoch, when the code review was last
* updated. </p>
*/
inline void SetLastUpdatedTimeStamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = value; }
/**
* <p> The time, in milliseconds since the epoch, when the code review was last
* updated. </p>
*/
inline void SetLastUpdatedTimeStamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = std::move(value); }
/**
* <p> The time, in milliseconds since the epoch, when the code review was last
* updated. </p>
*/
inline CodeReview& WithLastUpdatedTimeStamp(const Aws::Utils::DateTime& value) { SetLastUpdatedTimeStamp(value); return *this;}
/**
* <p> The time, in milliseconds since the epoch, when the code review was last
* updated. </p>
*/
inline CodeReview& WithLastUpdatedTimeStamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimeStamp(std::move(value)); return *this;}
/**
* <p> The type of code review. </p>
*/
inline const Type& GetType() const{ return m_type; }
/**
* <p> The type of code review. </p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p> The type of code review. </p>
*/
inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p> The type of code review. </p>
*/
inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p> The type of code review. </p>
*/
inline CodeReview& WithType(const Type& value) { SetType(value); return *this;}
/**
* <p> The type of code review. </p>
*/
inline CodeReview& WithType(Type&& value) { SetType(std::move(value)); return *this;}
/**
* <p> The pull request ID for the code review. </p>
*/
inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; }
/**
* <p> The pull request ID for the code review. </p>
*/
inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
/**
* <p> The pull request ID for the code review. </p>
*/
inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; }
/**
* <p> The pull request ID for the code review. </p>
*/
inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); }
/**
* <p> The pull request ID for the code review. </p>
*/
inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); }
/**
* <p> The pull request ID for the code review. </p>
*/
inline CodeReview& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;}
/**
* <p> The pull request ID for the code review. </p>
*/
inline CodeReview& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;}
/**
* <p> The pull request ID for the code review. </p>
*/
inline CodeReview& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
/**
* <p> The type of the source code for the code review. </p>
*/
inline const SourceCodeType& GetSourceCodeType() const{ return m_sourceCodeType; }
/**
* <p> The type of the source code for the code review. </p>
*/
inline bool SourceCodeTypeHasBeenSet() const { return m_sourceCodeTypeHasBeenSet; }
/**
* <p> The type of the source code for the code review. </p>
*/
inline void SetSourceCodeType(const SourceCodeType& value) { m_sourceCodeTypeHasBeenSet = true; m_sourceCodeType = value; }
/**
* <p> The type of the source code for the code review. </p>
*/
inline void SetSourceCodeType(SourceCodeType&& value) { m_sourceCodeTypeHasBeenSet = true; m_sourceCodeType = std::move(value); }
/**
* <p> The type of the source code for the code review. </p>
*/
inline CodeReview& WithSourceCodeType(const SourceCodeType& value) { SetSourceCodeType(value); return *this;}
/**
* <p> The type of the source code for the code review. </p>
*/
inline CodeReview& WithSourceCodeType(SourceCodeType&& value) { SetSourceCodeType(std::move(value)); return *this;}
/**
* <p> The statistics from the code review. </p>
*/
inline const Metrics& GetMetrics() const{ return m_metrics; }
/**
* <p> The statistics from the code review. </p>
*/
inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
/**
* <p> The statistics from the code review. </p>
*/
inline void SetMetrics(const Metrics& value) { m_metricsHasBeenSet = true; m_metrics = value; }
/**
* <p> The statistics from the code review. </p>
*/
inline void SetMetrics(Metrics&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
/**
* <p> The statistics from the code review. </p>
*/
inline CodeReview& WithMetrics(const Metrics& value) { SetMetrics(value); return *this;}
/**
* <p> The statistics from the code review. </p>
*/
inline CodeReview& WithMetrics(Metrics&& value) { SetMetrics(std::move(value)); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_codeReviewArn;
bool m_codeReviewArnHasBeenSet;
Aws::String m_repositoryName;
bool m_repositoryNameHasBeenSet;
Aws::String m_owner;
bool m_ownerHasBeenSet;
ProviderType m_providerType;
bool m_providerTypeHasBeenSet;
JobState m_state;
bool m_stateHasBeenSet;
Aws::String m_stateReason;
bool m_stateReasonHasBeenSet;
Aws::Utils::DateTime m_createdTimeStamp;
bool m_createdTimeStampHasBeenSet;
Aws::Utils::DateTime m_lastUpdatedTimeStamp;
bool m_lastUpdatedTimeStampHasBeenSet;
Type m_type;
bool m_typeHasBeenSet;
Aws::String m_pullRequestId;
bool m_pullRequestIdHasBeenSet;
SourceCodeType m_sourceCodeType;
bool m_sourceCodeTypeHasBeenSet;
Metrics m_metrics;
bool m_metricsHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,556 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codeguru-reviewer/model/ProviderType.h>
#include <aws/codeguru-reviewer/model/JobState.h>
#include <aws/core/utils/DateTime.h>
#include <aws/codeguru-reviewer/model/Type.h>
#include <aws/codeguru-reviewer/model/MetricsSummary.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
/**
* <p> Information about the summary of the code review. </p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CodeReviewSummary">AWS
* API Reference</a></p>
*/
class AWS_CODEGURUREVIEWER_API CodeReviewSummary
{
public:
CodeReviewSummary();
CodeReviewSummary(Aws::Utils::Json::JsonView jsonValue);
CodeReviewSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The name of the code review. </p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p> The name of the code review. </p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p> The name of the code review. </p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p> The name of the code review. </p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p> The name of the code review. </p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p> The name of the code review. </p>
*/
inline CodeReviewSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p> The name of the code review. </p>
*/
inline CodeReviewSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p> The name of the code review. </p>
*/
inline CodeReviewSummary& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline const Aws::String& GetCodeReviewArn() const{ return m_codeReviewArn; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline bool CodeReviewArnHasBeenSet() const { return m_codeReviewArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(const Aws::String& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(Aws::String&& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(const char* value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline CodeReviewSummary& WithCodeReviewArn(const Aws::String& value) { SetCodeReviewArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline CodeReviewSummary& WithCodeReviewArn(Aws::String&& value) { SetCodeReviewArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline CodeReviewSummary& WithCodeReviewArn(const char* value) { SetCodeReviewArn(value); return *this;}
/**
* <p> The name of the repository. </p>
*/
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
/**
* <p> The name of the repository. </p>
*/
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
/**
* <p> The name of the repository. </p>
*/
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
/**
* <p> The name of the repository. </p>
*/
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
/**
* <p> The name of the repository. </p>
*/
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
/**
* <p> The name of the repository. </p>
*/
inline CodeReviewSummary& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
/**
* <p> The name of the repository. </p>
*/
inline CodeReviewSummary& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
/**
* <p> The name of the repository. </p>
*/
inline CodeReviewSummary& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline const Aws::String& GetOwner() const{ return m_owner; }
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline CodeReviewSummary& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline CodeReviewSummary& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline CodeReviewSummary& WithOwner(const char* value) { SetOwner(value); return *this;}
/**
* <p> The provider type of the repository association. </p>
*/
inline const ProviderType& GetProviderType() const{ return m_providerType; }
/**
* <p> The provider type of the repository association. </p>
*/
inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
/**
* <p> The provider type of the repository association. </p>
*/
inline void SetProviderType(const ProviderType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
/**
* <p> The provider type of the repository association. </p>
*/
inline void SetProviderType(ProviderType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); }
/**
* <p> The provider type of the repository association. </p>
*/
inline CodeReviewSummary& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;}
/**
* <p> The provider type of the repository association. </p>
*/
inline CodeReviewSummary& WithProviderType(ProviderType&& value) { SetProviderType(std::move(value)); return *this;}
/**
* <p> The state of the code review. </p> <p>The valid code review states are:</p>
* <ul> <li> <p> <code>Completed</code>: The code review is complete. </p> </li>
* <li> <p> <code>Pending</code>: The code review started and has not completed or
* failed. </p> </li> <li> <p> <code>Failed</code>: The code review failed. </p>
* </li> <li> <p> <code>Deleting</code>: The code review is being deleted. </p>
* </li> </ul>
*/
inline const JobState& GetState() const{ return m_state; }
/**
* <p> The state of the code review. </p> <p>The valid code review states are:</p>
* <ul> <li> <p> <code>Completed</code>: The code review is complete. </p> </li>
* <li> <p> <code>Pending</code>: The code review started and has not completed or
* failed. </p> </li> <li> <p> <code>Failed</code>: The code review failed. </p>
* </li> <li> <p> <code>Deleting</code>: The code review is being deleted. </p>
* </li> </ul>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p> The state of the code review. </p> <p>The valid code review states are:</p>
* <ul> <li> <p> <code>Completed</code>: The code review is complete. </p> </li>
* <li> <p> <code>Pending</code>: The code review started and has not completed or
* failed. </p> </li> <li> <p> <code>Failed</code>: The code review failed. </p>
* </li> <li> <p> <code>Deleting</code>: The code review is being deleted. </p>
* </li> </ul>
*/
inline void SetState(const JobState& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p> The state of the code review. </p> <p>The valid code review states are:</p>
* <ul> <li> <p> <code>Completed</code>: The code review is complete. </p> </li>
* <li> <p> <code>Pending</code>: The code review started and has not completed or
* failed. </p> </li> <li> <p> <code>Failed</code>: The code review failed. </p>
* </li> <li> <p> <code>Deleting</code>: The code review is being deleted. </p>
* </li> </ul>
*/
inline void SetState(JobState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p> The state of the code review. </p> <p>The valid code review states are:</p>
* <ul> <li> <p> <code>Completed</code>: The code review is complete. </p> </li>
* <li> <p> <code>Pending</code>: The code review started and has not completed or
* failed. </p> </li> <li> <p> <code>Failed</code>: The code review failed. </p>
* </li> <li> <p> <code>Deleting</code>: The code review is being deleted. </p>
* </li> </ul>
*/
inline CodeReviewSummary& WithState(const JobState& value) { SetState(value); return *this;}
/**
* <p> The state of the code review. </p> <p>The valid code review states are:</p>
* <ul> <li> <p> <code>Completed</code>: The code review is complete. </p> </li>
* <li> <p> <code>Pending</code>: The code review started and has not completed or
* failed. </p> </li> <li> <p> <code>Failed</code>: The code review failed. </p>
* </li> <li> <p> <code>Deleting</code>: The code review is being deleted. </p>
* </li> </ul>
*/
inline CodeReviewSummary& WithState(JobState&& value) { SetState(std::move(value)); return *this;}
/**
* <p> The time, in milliseconds since the epoch, when the code review was created.
* </p>
*/
inline const Aws::Utils::DateTime& GetCreatedTimeStamp() const{ return m_createdTimeStamp; }
/**
* <p> The time, in milliseconds since the epoch, when the code review was created.
* </p>
*/
inline bool CreatedTimeStampHasBeenSet() const { return m_createdTimeStampHasBeenSet; }
/**
* <p> The time, in milliseconds since the epoch, when the code review was created.
* </p>
*/
inline void SetCreatedTimeStamp(const Aws::Utils::DateTime& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = value; }
/**
* <p> The time, in milliseconds since the epoch, when the code review was created.
* </p>
*/
inline void SetCreatedTimeStamp(Aws::Utils::DateTime&& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = std::move(value); }
/**
* <p> The time, in milliseconds since the epoch, when the code review was created.
* </p>
*/
inline CodeReviewSummary& WithCreatedTimeStamp(const Aws::Utils::DateTime& value) { SetCreatedTimeStamp(value); return *this;}
/**
* <p> The time, in milliseconds since the epoch, when the code review was created.
* </p>
*/
inline CodeReviewSummary& WithCreatedTimeStamp(Aws::Utils::DateTime&& value) { SetCreatedTimeStamp(std::move(value)); return *this;}
/**
* <p> The time, in milliseconds since the epoch, when the code review was last
* updated. </p>
*/
inline const Aws::Utils::DateTime& GetLastUpdatedTimeStamp() const{ return m_lastUpdatedTimeStamp; }
/**
* <p> The time, in milliseconds since the epoch, when the code review was last
* updated. </p>
*/
inline bool LastUpdatedTimeStampHasBeenSet() const { return m_lastUpdatedTimeStampHasBeenSet; }
/**
* <p> The time, in milliseconds since the epoch, when the code review was last
* updated. </p>
*/
inline void SetLastUpdatedTimeStamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = value; }
/**
* <p> The time, in milliseconds since the epoch, when the code review was last
* updated. </p>
*/
inline void SetLastUpdatedTimeStamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = std::move(value); }
/**
* <p> The time, in milliseconds since the epoch, when the code review was last
* updated. </p>
*/
inline CodeReviewSummary& WithLastUpdatedTimeStamp(const Aws::Utils::DateTime& value) { SetLastUpdatedTimeStamp(value); return *this;}
/**
* <p> The time, in milliseconds since the epoch, when the code review was last
* updated. </p>
*/
inline CodeReviewSummary& WithLastUpdatedTimeStamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimeStamp(std::move(value)); return *this;}
/**
* <p> The type of the code review. </p>
*/
inline const Type& GetType() const{ return m_type; }
/**
* <p> The type of the code review. </p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p> The type of the code review. </p>
*/
inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p> The type of the code review. </p>
*/
inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p> The type of the code review. </p>
*/
inline CodeReviewSummary& WithType(const Type& value) { SetType(value); return *this;}
/**
* <p> The type of the code review. </p>
*/
inline CodeReviewSummary& WithType(Type&& value) { SetType(std::move(value)); return *this;}
/**
* <p> The pull request ID for the code review. </p>
*/
inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; }
/**
* <p> The pull request ID for the code review. </p>
*/
inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
/**
* <p> The pull request ID for the code review. </p>
*/
inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; }
/**
* <p> The pull request ID for the code review. </p>
*/
inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); }
/**
* <p> The pull request ID for the code review. </p>
*/
inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); }
/**
* <p> The pull request ID for the code review. </p>
*/
inline CodeReviewSummary& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;}
/**
* <p> The pull request ID for the code review. </p>
*/
inline CodeReviewSummary& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;}
/**
* <p> The pull request ID for the code review. </p>
*/
inline CodeReviewSummary& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
/**
* <p> The statistics from the code review. </p>
*/
inline const MetricsSummary& GetMetricsSummary() const{ return m_metricsSummary; }
/**
* <p> The statistics from the code review. </p>
*/
inline bool MetricsSummaryHasBeenSet() const { return m_metricsSummaryHasBeenSet; }
/**
* <p> The statistics from the code review. </p>
*/
inline void SetMetricsSummary(const MetricsSummary& value) { m_metricsSummaryHasBeenSet = true; m_metricsSummary = value; }
/**
* <p> The statistics from the code review. </p>
*/
inline void SetMetricsSummary(MetricsSummary&& value) { m_metricsSummaryHasBeenSet = true; m_metricsSummary = std::move(value); }
/**
* <p> The statistics from the code review. </p>
*/
inline CodeReviewSummary& WithMetricsSummary(const MetricsSummary& value) { SetMetricsSummary(value); return *this;}
/**
* <p> The statistics from the code review. </p>
*/
inline CodeReviewSummary& WithMetricsSummary(MetricsSummary&& value) { SetMetricsSummary(std::move(value)); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_codeReviewArn;
bool m_codeReviewArnHasBeenSet;
Aws::String m_repositoryName;
bool m_repositoryNameHasBeenSet;
Aws::String m_owner;
bool m_ownerHasBeenSet;
ProviderType m_providerType;
bool m_providerTypeHasBeenSet;
JobState m_state;
bool m_stateHasBeenSet;
Aws::Utils::DateTime m_createdTimeStamp;
bool m_createdTimeStampHasBeenSet;
Aws::Utils::DateTime m_lastUpdatedTimeStamp;
bool m_lastUpdatedTimeStampHasBeenSet;
Type m_type;
bool m_typeHasBeenSet;
Aws::String m_pullRequestId;
bool m_pullRequestIdHasBeenSet;
MetricsSummary m_metricsSummary;
bool m_metricsSummaryHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,132 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
/**
* <p> The commit diff for the pull request. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CommitDiffSourceCodeType">AWS
* API Reference</a></p>
*/
class AWS_CODEGURUREVIEWER_API CommitDiffSourceCodeType
{
public:
CommitDiffSourceCodeType();
CommitDiffSourceCodeType(Aws::Utils::Json::JsonView jsonValue);
CommitDiffSourceCodeType& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The SHA of the source commit. </p>
*/
inline const Aws::String& GetSourceCommit() const{ return m_sourceCommit; }
/**
* <p> The SHA of the source commit. </p>
*/
inline bool SourceCommitHasBeenSet() const { return m_sourceCommitHasBeenSet; }
/**
* <p> The SHA of the source commit. </p>
*/
inline void SetSourceCommit(const Aws::String& value) { m_sourceCommitHasBeenSet = true; m_sourceCommit = value; }
/**
* <p> The SHA of the source commit. </p>
*/
inline void SetSourceCommit(Aws::String&& value) { m_sourceCommitHasBeenSet = true; m_sourceCommit = std::move(value); }
/**
* <p> The SHA of the source commit. </p>
*/
inline void SetSourceCommit(const char* value) { m_sourceCommitHasBeenSet = true; m_sourceCommit.assign(value); }
/**
* <p> The SHA of the source commit. </p>
*/
inline CommitDiffSourceCodeType& WithSourceCommit(const Aws::String& value) { SetSourceCommit(value); return *this;}
/**
* <p> The SHA of the source commit. </p>
*/
inline CommitDiffSourceCodeType& WithSourceCommit(Aws::String&& value) { SetSourceCommit(std::move(value)); return *this;}
/**
* <p> The SHA of the source commit. </p>
*/
inline CommitDiffSourceCodeType& WithSourceCommit(const char* value) { SetSourceCommit(value); return *this;}
/**
* <p> The SHA of the destination commit. </p>
*/
inline const Aws::String& GetDestinationCommit() const{ return m_destinationCommit; }
/**
* <p> The SHA of the destination commit. </p>
*/
inline bool DestinationCommitHasBeenSet() const { return m_destinationCommitHasBeenSet; }
/**
* <p> The SHA of the destination commit. </p>
*/
inline void SetDestinationCommit(const Aws::String& value) { m_destinationCommitHasBeenSet = true; m_destinationCommit = value; }
/**
* <p> The SHA of the destination commit. </p>
*/
inline void SetDestinationCommit(Aws::String&& value) { m_destinationCommitHasBeenSet = true; m_destinationCommit = std::move(value); }
/**
* <p> The SHA of the destination commit. </p>
*/
inline void SetDestinationCommit(const char* value) { m_destinationCommitHasBeenSet = true; m_destinationCommit.assign(value); }
/**
* <p> The SHA of the destination commit. </p>
*/
inline CommitDiffSourceCodeType& WithDestinationCommit(const Aws::String& value) { SetDestinationCommit(value); return *this;}
/**
* <p> The SHA of the destination commit. </p>
*/
inline CommitDiffSourceCodeType& WithDestinationCommit(Aws::String&& value) { SetDestinationCommit(std::move(value)); return *this;}
/**
* <p> The SHA of the destination commit. </p>
*/
inline CommitDiffSourceCodeType& WithDestinationCommit(const char* value) { SetDestinationCommit(value); return *this;}
private:
Aws::String m_sourceCommit;
bool m_sourceCommitHasBeenSet;
Aws::String m_destinationCommit;
bool m_destinationCommitHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,99 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/codeguru-reviewer/CodeGuruReviewerRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeGuruReviewer
{
namespace Model
{
/**
*/
class AWS_CODEGURUREVIEWER_API DescribeCodeReviewRequest : public CodeGuruReviewerRequest
{
public:
DescribeCodeReviewRequest();
// 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 "DescribeCodeReview"; }
Aws::String SerializePayload() const override;
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline const Aws::String& GetCodeReviewArn() const{ return m_codeReviewArn; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline bool CodeReviewArnHasBeenSet() const { return m_codeReviewArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(const Aws::String& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(Aws::String&& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(const char* value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline DescribeCodeReviewRequest& WithCodeReviewArn(const Aws::String& value) { SetCodeReviewArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline DescribeCodeReviewRequest& WithCodeReviewArn(Aws::String&& value) { SetCodeReviewArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline DescribeCodeReviewRequest& WithCodeReviewArn(const char* value) { SetCodeReviewArn(value); return *this;}
private:
Aws::String m_codeReviewArn;
bool m_codeReviewArnHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/codeguru-reviewer/model/CodeReview.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
class AWS_CODEGURUREVIEWER_API DescribeCodeReviewResult
{
public:
DescribeCodeReviewResult();
DescribeCodeReviewResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeCodeReviewResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> Information about the code review. </p>
*/
inline const CodeReview& GetCodeReview() const{ return m_codeReview; }
/**
* <p> Information about the code review. </p>
*/
inline void SetCodeReview(const CodeReview& value) { m_codeReview = value; }
/**
* <p> Information about the code review. </p>
*/
inline void SetCodeReview(CodeReview&& value) { m_codeReview = std::move(value); }
/**
* <p> Information about the code review. </p>
*/
inline DescribeCodeReviewResult& WithCodeReview(const CodeReview& value) { SetCodeReview(value); return *this;}
/**
* <p> Information about the code review. </p>
*/
inline DescribeCodeReviewResult& WithCodeReview(CodeReview&& value) { SetCodeReview(std::move(value)); return *this;}
private:
CodeReview m_codeReview;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,249 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/codeguru-reviewer/CodeGuruReviewerRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace CodeGuruReviewer
{
namespace Model
{
/**
*/
class AWS_CODEGURUREVIEWER_API DescribeRecommendationFeedbackRequest : public CodeGuruReviewerRequest
{
public:
DescribeRecommendationFeedbackRequest();
// 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 "DescribeRecommendationFeedback"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline const Aws::String& GetCodeReviewArn() const{ return m_codeReviewArn; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline bool CodeReviewArnHasBeenSet() const { return m_codeReviewArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(const Aws::String& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(Aws::String&& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(const char* value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline DescribeRecommendationFeedbackRequest& WithCodeReviewArn(const Aws::String& value) { SetCodeReviewArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline DescribeRecommendationFeedbackRequest& WithCodeReviewArn(Aws::String&& value) { SetCodeReviewArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline DescribeRecommendationFeedbackRequest& WithCodeReviewArn(const char* value) { SetCodeReviewArn(value); return *this;}
/**
* <p> The recommendation ID that can be used to track the provided recommendations
* and then to collect the feedback. </p>
*/
inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; }
/**
* <p> The recommendation ID that can be used to track the provided recommendations
* and then to collect the feedback. </p>
*/
inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
/**
* <p> The recommendation ID that can be used to track the provided recommendations
* and then to collect the feedback. </p>
*/
inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; }
/**
* <p> The recommendation ID that can be used to track the provided recommendations
* and then to collect the feedback. </p>
*/
inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); }
/**
* <p> The recommendation ID that can be used to track the provided recommendations
* and then to collect the feedback. </p>
*/
inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); }
/**
* <p> The recommendation ID that can be used to track the provided recommendations
* and then to collect the feedback. </p>
*/
inline DescribeRecommendationFeedbackRequest& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;}
/**
* <p> The recommendation ID that can be used to track the provided recommendations
* and then to collect the feedback. </p>
*/
inline DescribeRecommendationFeedbackRequest& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;}
/**
* <p> The recommendation ID that can be used to track the provided recommendations
* and then to collect the feedback. </p>
*/
inline DescribeRecommendationFeedbackRequest& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;}
/**
* <p> Optional parameter to describe the feedback for a given user. If this is not
* supplied, it defaults to the user making the request. </p> <p> The
* <code>UserId</code> is an IAM principal that can be specified as an AWS account
* ID or an Amazon Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline const Aws::String& GetUserId() const{ return m_userId; }
/**
* <p> Optional parameter to describe the feedback for a given user. If this is not
* supplied, it defaults to the user making the request. </p> <p> The
* <code>UserId</code> is an IAM principal that can be specified as an AWS account
* ID or an Amazon Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
/**
* <p> Optional parameter to describe the feedback for a given user. If this is not
* supplied, it defaults to the user making the request. </p> <p> The
* <code>UserId</code> is an IAM principal that can be specified as an AWS account
* ID or an Amazon Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
/**
* <p> Optional parameter to describe the feedback for a given user. If this is not
* supplied, it defaults to the user making the request. </p> <p> The
* <code>UserId</code> is an IAM principal that can be specified as an AWS account
* ID or an Amazon Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
/**
* <p> Optional parameter to describe the feedback for a given user. If this is not
* supplied, it defaults to the user making the request. </p> <p> The
* <code>UserId</code> is an IAM principal that can be specified as an AWS account
* ID or an Amazon Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
/**
* <p> Optional parameter to describe the feedback for a given user. If this is not
* supplied, it defaults to the user making the request. </p> <p> The
* <code>UserId</code> is an IAM principal that can be specified as an AWS account
* ID or an Amazon Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline DescribeRecommendationFeedbackRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
/**
* <p> Optional parameter to describe the feedback for a given user. If this is not
* supplied, it defaults to the user making the request. </p> <p> The
* <code>UserId</code> is an IAM principal that can be specified as an AWS account
* ID or an Amazon Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline DescribeRecommendationFeedbackRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
/**
* <p> Optional parameter to describe the feedback for a given user. If this is not
* supplied, it defaults to the user making the request. </p> <p> The
* <code>UserId</code> is an IAM principal that can be specified as an AWS account
* ID or an Amazon Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline DescribeRecommendationFeedbackRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
private:
Aws::String m_codeReviewArn;
bool m_codeReviewArnHasBeenSet;
Aws::String m_recommendationId;
bool m_recommendationIdHasBeenSet;
Aws::String m_userId;
bool m_userIdHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/codeguru-reviewer/model/RecommendationFeedback.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
class AWS_CODEGURUREVIEWER_API DescribeRecommendationFeedbackResult
{
public:
DescribeRecommendationFeedbackResult();
DescribeRecommendationFeedbackResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeRecommendationFeedbackResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> The recommendation feedback given by the user. </p>
*/
inline const RecommendationFeedback& GetRecommendationFeedback() const{ return m_recommendationFeedback; }
/**
* <p> The recommendation feedback given by the user. </p>
*/
inline void SetRecommendationFeedback(const RecommendationFeedback& value) { m_recommendationFeedback = value; }
/**
* <p> The recommendation feedback given by the user. </p>
*/
inline void SetRecommendationFeedback(RecommendationFeedback&& value) { m_recommendationFeedback = std::move(value); }
/**
* <p> The recommendation feedback given by the user. </p>
*/
inline DescribeRecommendationFeedbackResult& WithRecommendationFeedback(const RecommendationFeedback& value) { SetRecommendationFeedback(value); return *this;}
/**
* <p> The recommendation feedback given by the user. </p>
*/
inline DescribeRecommendationFeedbackResult& WithRecommendationFeedback(RecommendationFeedback&& value) { SetRecommendationFeedback(std::move(value)); return *this;}
private:
RecommendationFeedback m_recommendationFeedback;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,107 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/codeguru-reviewer/CodeGuruReviewerRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeGuruReviewer
{
namespace Model
{
/**
*/
class AWS_CODEGURUREVIEWER_API DescribeRepositoryAssociationRequest : public CodeGuruReviewerRequest
{
public:
DescribeRepositoryAssociationRequest();
// 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 "DescribeRepositoryAssociation"; }
Aws::String SerializePayload() const override;
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. You can retrieve this ARN by
* calling <code>ListRepositories</code>.</p>
*/
inline const Aws::String& GetAssociationArn() const{ return m_associationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. You can retrieve this ARN by
* calling <code>ListRepositories</code>.</p>
*/
inline bool AssociationArnHasBeenSet() const { return m_associationArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. You can retrieve this ARN by
* calling <code>ListRepositories</code>.</p>
*/
inline void SetAssociationArn(const Aws::String& value) { m_associationArnHasBeenSet = true; m_associationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. You can retrieve this ARN by
* calling <code>ListRepositories</code>.</p>
*/
inline void SetAssociationArn(Aws::String&& value) { m_associationArnHasBeenSet = true; m_associationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. You can retrieve this ARN by
* calling <code>ListRepositories</code>.</p>
*/
inline void SetAssociationArn(const char* value) { m_associationArnHasBeenSet = true; m_associationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. You can retrieve this ARN by
* calling <code>ListRepositories</code>.</p>
*/
inline DescribeRepositoryAssociationRequest& WithAssociationArn(const Aws::String& value) { SetAssociationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. You can retrieve this ARN by
* calling <code>ListRepositories</code>.</p>
*/
inline DescribeRepositoryAssociationRequest& WithAssociationArn(Aws::String&& value) { SetAssociationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. You can retrieve this ARN by
* calling <code>ListRepositories</code>.</p>
*/
inline DescribeRepositoryAssociationRequest& WithAssociationArn(const char* value) { SetAssociationArn(value); return *this;}
private:
Aws::String m_associationArn;
bool m_associationArnHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/codeguru-reviewer/model/RepositoryAssociation.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
class AWS_CODEGURUREVIEWER_API DescribeRepositoryAssociationResult
{
public:
DescribeRepositoryAssociationResult();
DescribeRepositoryAssociationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeRepositoryAssociationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the repository association.</p>
*/
inline const RepositoryAssociation& GetRepositoryAssociation() const{ return m_repositoryAssociation; }
/**
* <p>Information about the repository association.</p>
*/
inline void SetRepositoryAssociation(const RepositoryAssociation& value) { m_repositoryAssociation = value; }
/**
* <p>Information about the repository association.</p>
*/
inline void SetRepositoryAssociation(RepositoryAssociation&& value) { m_repositoryAssociation = std::move(value); }
/**
* <p>Information about the repository association.</p>
*/
inline DescribeRepositoryAssociationResult& WithRepositoryAssociation(const RepositoryAssociation& value) { SetRepositoryAssociation(value); return *this;}
/**
* <p>Information about the repository association.</p>
*/
inline DescribeRepositoryAssociationResult& WithRepositoryAssociation(RepositoryAssociation&& value) { SetRepositoryAssociation(std::move(value)); return *this;}
private:
RepositoryAssociation m_repositoryAssociation;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,99 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/codeguru-reviewer/CodeGuruReviewerRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeGuruReviewer
{
namespace Model
{
/**
*/
class AWS_CODEGURUREVIEWER_API DisassociateRepositoryRequest : public CodeGuruReviewerRequest
{
public:
DisassociateRepositoryRequest();
// 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 "DisassociateRepository"; }
Aws::String SerializePayload() const override;
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. </p>
*/
inline const Aws::String& GetAssociationArn() const{ return m_associationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. </p>
*/
inline bool AssociationArnHasBeenSet() const { return m_associationArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. </p>
*/
inline void SetAssociationArn(const Aws::String& value) { m_associationArnHasBeenSet = true; m_associationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. </p>
*/
inline void SetAssociationArn(Aws::String&& value) { m_associationArnHasBeenSet = true; m_associationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. </p>
*/
inline void SetAssociationArn(const char* value) { m_associationArnHasBeenSet = true; m_associationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. </p>
*/
inline DisassociateRepositoryRequest& WithAssociationArn(const Aws::String& value) { SetAssociationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. </p>
*/
inline DisassociateRepositoryRequest& WithAssociationArn(Aws::String&& value) { SetAssociationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. </p>
*/
inline DisassociateRepositoryRequest& WithAssociationArn(const char* value) { SetAssociationArn(value); return *this;}
private:
Aws::String m_associationArn;
bool m_associationArnHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/codeguru-reviewer/model/RepositoryAssociation.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
class AWS_CODEGURUREVIEWER_API DisassociateRepositoryResult
{
public:
DisassociateRepositoryResult();
DisassociateRepositoryResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DisassociateRepositoryResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the disassociated repository.</p>
*/
inline const RepositoryAssociation& GetRepositoryAssociation() const{ return m_repositoryAssociation; }
/**
* <p>Information about the disassociated repository.</p>
*/
inline void SetRepositoryAssociation(const RepositoryAssociation& value) { m_repositoryAssociation = value; }
/**
* <p>Information about the disassociated repository.</p>
*/
inline void SetRepositoryAssociation(RepositoryAssociation&& value) { m_repositoryAssociation = std::move(value); }
/**
* <p>Information about the disassociated repository.</p>
*/
inline DisassociateRepositoryResult& WithRepositoryAssociation(const RepositoryAssociation& value) { SetRepositoryAssociation(value); return *this;}
/**
* <p>Information about the disassociated repository.</p>
*/
inline DisassociateRepositoryResult& WithRepositoryAssociation(RepositoryAssociation&& value) { SetRepositoryAssociation(std::move(value)); return *this;}
private:
RepositoryAssociation m_repositoryAssociation;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,33 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeGuruReviewer
{
namespace Model
{
enum class JobState
{
NOT_SET,
Completed,
Pending,
Failed,
Deleting
};
namespace JobStateMapper
{
AWS_CODEGURUREVIEWER_API JobState GetJobStateForName(const Aws::String& name);
AWS_CODEGURUREVIEWER_API Aws::String GetNameForJobState(JobState value);
} // namespace JobStateMapper
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,389 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/codeguru-reviewer/CodeGuruReviewerRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codeguru-reviewer/model/Type.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codeguru-reviewer/model/ProviderType.h>
#include <aws/codeguru-reviewer/model/JobState.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace CodeGuruReviewer
{
namespace Model
{
/**
*/
class AWS_CODEGURUREVIEWER_API ListCodeReviewsRequest : public CodeGuruReviewerRequest
{
public:
ListCodeReviewsRequest();
// 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 "ListCodeReviews"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p> List of provider types for filtering that needs to be applied before
* displaying the result. For example, <code>providerTypes=[GitHub]</code> lists
* code reviews from GitHub. </p>
*/
inline const Aws::Vector<ProviderType>& GetProviderTypes() const{ return m_providerTypes; }
/**
* <p> List of provider types for filtering that needs to be applied before
* displaying the result. For example, <code>providerTypes=[GitHub]</code> lists
* code reviews from GitHub. </p>
*/
inline bool ProviderTypesHasBeenSet() const { return m_providerTypesHasBeenSet; }
/**
* <p> List of provider types for filtering that needs to be applied before
* displaying the result. For example, <code>providerTypes=[GitHub]</code> lists
* code reviews from GitHub. </p>
*/
inline void SetProviderTypes(const Aws::Vector<ProviderType>& value) { m_providerTypesHasBeenSet = true; m_providerTypes = value; }
/**
* <p> List of provider types for filtering that needs to be applied before
* displaying the result. For example, <code>providerTypes=[GitHub]</code> lists
* code reviews from GitHub. </p>
*/
inline void SetProviderTypes(Aws::Vector<ProviderType>&& value) { m_providerTypesHasBeenSet = true; m_providerTypes = std::move(value); }
/**
* <p> List of provider types for filtering that needs to be applied before
* displaying the result. For example, <code>providerTypes=[GitHub]</code> lists
* code reviews from GitHub. </p>
*/
inline ListCodeReviewsRequest& WithProviderTypes(const Aws::Vector<ProviderType>& value) { SetProviderTypes(value); return *this;}
/**
* <p> List of provider types for filtering that needs to be applied before
* displaying the result. For example, <code>providerTypes=[GitHub]</code> lists
* code reviews from GitHub. </p>
*/
inline ListCodeReviewsRequest& WithProviderTypes(Aws::Vector<ProviderType>&& value) { SetProviderTypes(std::move(value)); return *this;}
/**
* <p> List of provider types for filtering that needs to be applied before
* displaying the result. For example, <code>providerTypes=[GitHub]</code> lists
* code reviews from GitHub. </p>
*/
inline ListCodeReviewsRequest& AddProviderTypes(const ProviderType& value) { m_providerTypesHasBeenSet = true; m_providerTypes.push_back(value); return *this; }
/**
* <p> List of provider types for filtering that needs to be applied before
* displaying the result. For example, <code>providerTypes=[GitHub]</code> lists
* code reviews from GitHub. </p>
*/
inline ListCodeReviewsRequest& AddProviderTypes(ProviderType&& value) { m_providerTypesHasBeenSet = true; m_providerTypes.push_back(std::move(value)); return *this; }
/**
* <p> List of states for filtering that needs to be applied before displaying the
* result. For example, <code>states=[Pending]</code> lists code reviews in the
* Pending state. </p> <p>The valid code review states are:</p> <ul> <li> <p>
* <code>Completed</code>: The code review is complete. </p> </li> <li> <p>
* <code>Pending</code>: The code review started and has not completed or failed.
* </p> </li> <li> <p> <code>Failed</code>: The code review failed. </p> </li> <li>
* <p> <code>Deleting</code>: The code review is being deleted. </p> </li> </ul>
*/
inline const Aws::Vector<JobState>& GetStates() const{ return m_states; }
/**
* <p> List of states for filtering that needs to be applied before displaying the
* result. For example, <code>states=[Pending]</code> lists code reviews in the
* Pending state. </p> <p>The valid code review states are:</p> <ul> <li> <p>
* <code>Completed</code>: The code review is complete. </p> </li> <li> <p>
* <code>Pending</code>: The code review started and has not completed or failed.
* </p> </li> <li> <p> <code>Failed</code>: The code review failed. </p> </li> <li>
* <p> <code>Deleting</code>: The code review is being deleted. </p> </li> </ul>
*/
inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; }
/**
* <p> List of states for filtering that needs to be applied before displaying the
* result. For example, <code>states=[Pending]</code> lists code reviews in the
* Pending state. </p> <p>The valid code review states are:</p> <ul> <li> <p>
* <code>Completed</code>: The code review is complete. </p> </li> <li> <p>
* <code>Pending</code>: The code review started and has not completed or failed.
* </p> </li> <li> <p> <code>Failed</code>: The code review failed. </p> </li> <li>
* <p> <code>Deleting</code>: The code review is being deleted. </p> </li> </ul>
*/
inline void SetStates(const Aws::Vector<JobState>& value) { m_statesHasBeenSet = true; m_states = value; }
/**
* <p> List of states for filtering that needs to be applied before displaying the
* result. For example, <code>states=[Pending]</code> lists code reviews in the
* Pending state. </p> <p>The valid code review states are:</p> <ul> <li> <p>
* <code>Completed</code>: The code review is complete. </p> </li> <li> <p>
* <code>Pending</code>: The code review started and has not completed or failed.
* </p> </li> <li> <p> <code>Failed</code>: The code review failed. </p> </li> <li>
* <p> <code>Deleting</code>: The code review is being deleted. </p> </li> </ul>
*/
inline void SetStates(Aws::Vector<JobState>&& value) { m_statesHasBeenSet = true; m_states = std::move(value); }
/**
* <p> List of states for filtering that needs to be applied before displaying the
* result. For example, <code>states=[Pending]</code> lists code reviews in the
* Pending state. </p> <p>The valid code review states are:</p> <ul> <li> <p>
* <code>Completed</code>: The code review is complete. </p> </li> <li> <p>
* <code>Pending</code>: The code review started and has not completed or failed.
* </p> </li> <li> <p> <code>Failed</code>: The code review failed. </p> </li> <li>
* <p> <code>Deleting</code>: The code review is being deleted. </p> </li> </ul>
*/
inline ListCodeReviewsRequest& WithStates(const Aws::Vector<JobState>& value) { SetStates(value); return *this;}
/**
* <p> List of states for filtering that needs to be applied before displaying the
* result. For example, <code>states=[Pending]</code> lists code reviews in the
* Pending state. </p> <p>The valid code review states are:</p> <ul> <li> <p>
* <code>Completed</code>: The code review is complete. </p> </li> <li> <p>
* <code>Pending</code>: The code review started and has not completed or failed.
* </p> </li> <li> <p> <code>Failed</code>: The code review failed. </p> </li> <li>
* <p> <code>Deleting</code>: The code review is being deleted. </p> </li> </ul>
*/
inline ListCodeReviewsRequest& WithStates(Aws::Vector<JobState>&& value) { SetStates(std::move(value)); return *this;}
/**
* <p> List of states for filtering that needs to be applied before displaying the
* result. For example, <code>states=[Pending]</code> lists code reviews in the
* Pending state. </p> <p>The valid code review states are:</p> <ul> <li> <p>
* <code>Completed</code>: The code review is complete. </p> </li> <li> <p>
* <code>Pending</code>: The code review started and has not completed or failed.
* </p> </li> <li> <p> <code>Failed</code>: The code review failed. </p> </li> <li>
* <p> <code>Deleting</code>: The code review is being deleted. </p> </li> </ul>
*/
inline ListCodeReviewsRequest& AddStates(const JobState& value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; }
/**
* <p> List of states for filtering that needs to be applied before displaying the
* result. For example, <code>states=[Pending]</code> lists code reviews in the
* Pending state. </p> <p>The valid code review states are:</p> <ul> <li> <p>
* <code>Completed</code>: The code review is complete. </p> </li> <li> <p>
* <code>Pending</code>: The code review started and has not completed or failed.
* </p> </li> <li> <p> <code>Failed</code>: The code review failed. </p> </li> <li>
* <p> <code>Deleting</code>: The code review is being deleted. </p> </li> </ul>
*/
inline ListCodeReviewsRequest& AddStates(JobState&& value) { m_statesHasBeenSet = true; m_states.push_back(std::move(value)); return *this; }
/**
* <p> List of repository names for filtering that needs to be applied before
* displaying the result. </p>
*/
inline const Aws::Vector<Aws::String>& GetRepositoryNames() const{ return m_repositoryNames; }
/**
* <p> List of repository names for filtering that needs to be applied before
* displaying the result. </p>
*/
inline bool RepositoryNamesHasBeenSet() const { return m_repositoryNamesHasBeenSet; }
/**
* <p> List of repository names for filtering that needs to be applied before
* displaying the result. </p>
*/
inline void SetRepositoryNames(const Aws::Vector<Aws::String>& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = value; }
/**
* <p> List of repository names for filtering that needs to be applied before
* displaying the result. </p>
*/
inline void SetRepositoryNames(Aws::Vector<Aws::String>&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = std::move(value); }
/**
* <p> List of repository names for filtering that needs to be applied before
* displaying the result. </p>
*/
inline ListCodeReviewsRequest& WithRepositoryNames(const Aws::Vector<Aws::String>& value) { SetRepositoryNames(value); return *this;}
/**
* <p> List of repository names for filtering that needs to be applied before
* displaying the result. </p>
*/
inline ListCodeReviewsRequest& WithRepositoryNames(Aws::Vector<Aws::String>&& value) { SetRepositoryNames(std::move(value)); return *this;}
/**
* <p> List of repository names for filtering that needs to be applied before
* displaying the result. </p>
*/
inline ListCodeReviewsRequest& AddRepositoryNames(const Aws::String& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(value); return *this; }
/**
* <p> List of repository names for filtering that needs to be applied before
* displaying the result. </p>
*/
inline ListCodeReviewsRequest& AddRepositoryNames(Aws::String&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(std::move(value)); return *this; }
/**
* <p> List of repository names for filtering that needs to be applied before
* displaying the result. </p>
*/
inline ListCodeReviewsRequest& AddRepositoryNames(const char* value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(value); return *this; }
/**
* <p> The type of code reviews to list in the response. </p>
*/
inline const Type& GetType() const{ return m_type; }
/**
* <p> The type of code reviews to list in the response. </p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p> The type of code reviews to list in the response. </p>
*/
inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p> The type of code reviews to list in the response. </p>
*/
inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p> The type of code reviews to list in the response. </p>
*/
inline ListCodeReviewsRequest& WithType(const Type& value) { SetType(value); return *this;}
/**
* <p> The type of code reviews to list in the response. </p>
*/
inline ListCodeReviewsRequest& WithType(Type&& value) { SetType(std::move(value)); return *this;}
/**
* <p> The maximum number of results that are returned per call. The default is
* 100. </p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p> The maximum number of results that are returned per call. The default is
* 100. </p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p> The maximum number of results that are returned per call. The default is
* 100. </p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p> The maximum number of results that are returned per call. The default is
* 100. </p>
*/
inline ListCodeReviewsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p> If nextToken is returned, there are more results available. The value of
* nextToken is a unique pagination token for each page. Make the call again using
* the returned token to retrieve the next page. Keep all other arguments
* unchanged. </p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p> If nextToken is returned, there are more results available. The value of
* nextToken is a unique pagination token for each page. Make the call again using
* the returned token to retrieve the next page. Keep all other arguments
* unchanged. </p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p> If nextToken is returned, there are more results available. The value of
* nextToken is a unique pagination token for each page. Make the call again using
* the returned token to retrieve the next page. Keep all other arguments
* unchanged. </p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p> If nextToken is returned, there are more results available. The value of
* nextToken is a unique pagination token for each page. Make the call again using
* the returned token to retrieve the next page. Keep all other arguments
* unchanged. </p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p> If nextToken is returned, there are more results available. The value of
* nextToken is a unique pagination token for each page. Make the call again using
* the returned token to retrieve the next page. Keep all other arguments
* unchanged. </p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p> If nextToken is returned, there are more results available. The value of
* nextToken is a unique pagination token for each page. Make the call again using
* the returned token to retrieve the next page. Keep all other arguments
* unchanged. </p>
*/
inline ListCodeReviewsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p> If nextToken is returned, there are more results available. The value of
* nextToken is a unique pagination token for each page. Make the call again using
* the returned token to retrieve the next page. Keep all other arguments
* unchanged. </p>
*/
inline ListCodeReviewsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p> If nextToken is returned, there are more results available. The value of
* nextToken is a unique pagination token for each page. Make the call again using
* the returned token to retrieve the next page. Keep all other arguments
* unchanged. </p>
*/
inline ListCodeReviewsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<ProviderType> m_providerTypes;
bool m_providerTypesHasBeenSet;
Aws::Vector<JobState> m_states;
bool m_statesHasBeenSet;
Aws::Vector<Aws::String> m_repositoryNames;
bool m_repositoryNamesHasBeenSet;
Type m_type;
bool m_typeHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codeguru-reviewer/model/CodeReviewSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
class AWS_CODEGURUREVIEWER_API ListCodeReviewsResult
{
public:
ListCodeReviewsResult();
ListCodeReviewsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListCodeReviewsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> A list of code reviews that meet the criteria of the request. </p>
*/
inline const Aws::Vector<CodeReviewSummary>& GetCodeReviewSummaries() const{ return m_codeReviewSummaries; }
/**
* <p> A list of code reviews that meet the criteria of the request. </p>
*/
inline void SetCodeReviewSummaries(const Aws::Vector<CodeReviewSummary>& value) { m_codeReviewSummaries = value; }
/**
* <p> A list of code reviews that meet the criteria of the request. </p>
*/
inline void SetCodeReviewSummaries(Aws::Vector<CodeReviewSummary>&& value) { m_codeReviewSummaries = std::move(value); }
/**
* <p> A list of code reviews that meet the criteria of the request. </p>
*/
inline ListCodeReviewsResult& WithCodeReviewSummaries(const Aws::Vector<CodeReviewSummary>& value) { SetCodeReviewSummaries(value); return *this;}
/**
* <p> A list of code reviews that meet the criteria of the request. </p>
*/
inline ListCodeReviewsResult& WithCodeReviewSummaries(Aws::Vector<CodeReviewSummary>&& value) { SetCodeReviewSummaries(std::move(value)); return *this;}
/**
* <p> A list of code reviews that meet the criteria of the request. </p>
*/
inline ListCodeReviewsResult& AddCodeReviewSummaries(const CodeReviewSummary& value) { m_codeReviewSummaries.push_back(value); return *this; }
/**
* <p> A list of code reviews that meet the criteria of the request. </p>
*/
inline ListCodeReviewsResult& AddCodeReviewSummaries(CodeReviewSummary&& value) { m_codeReviewSummaries.push_back(std::move(value)); return *this; }
/**
* <p> Pagination token. </p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p> Pagination token. </p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p> Pagination token. </p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p> Pagination token. </p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p> Pagination token. </p>
*/
inline ListCodeReviewsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p> Pagination token. </p>
*/
inline ListCodeReviewsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p> Pagination token. </p>
*/
inline ListCodeReviewsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<CodeReviewSummary> m_codeReviewSummaries;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,354 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/codeguru-reviewer/CodeGuruReviewerRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace CodeGuruReviewer
{
namespace Model
{
/**
*/
class AWS_CODEGURUREVIEWER_API ListRecommendationFeedbackRequest : public CodeGuruReviewerRequest
{
public:
ListRecommendationFeedbackRequest();
// 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 "ListRecommendationFeedback"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p> If <code>nextToken</code> is returned, there are more results available. The
* value of nextToken is a unique pagination token for each page. Make the call
* again using the returned token to retrieve the next page. Keep all other
* arguments unchanged. </p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p> If <code>nextToken</code> is returned, there are more results available. The
* value of nextToken is a unique pagination token for each page. Make the call
* again using the returned token to retrieve the next page. Keep all other
* arguments unchanged. </p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p> If <code>nextToken</code> is returned, there are more results available. The
* value of nextToken is a unique pagination token for each page. Make the call
* again using the returned token to retrieve the next page. Keep all other
* arguments unchanged. </p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p> If <code>nextToken</code> is returned, there are more results available. The
* value of nextToken is a unique pagination token for each page. Make the call
* again using the returned token to retrieve the next page. Keep all other
* arguments unchanged. </p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p> If <code>nextToken</code> is returned, there are more results available. The
* value of nextToken is a unique pagination token for each page. Make the call
* again using the returned token to retrieve the next page. Keep all other
* arguments unchanged. </p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p> If <code>nextToken</code> is returned, there are more results available. The
* value of nextToken is a unique pagination token for each page. Make the call
* again using the returned token to retrieve the next page. Keep all other
* arguments unchanged. </p>
*/
inline ListRecommendationFeedbackRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p> If <code>nextToken</code> is returned, there are more results available. The
* value of nextToken is a unique pagination token for each page. Make the call
* again using the returned token to retrieve the next page. Keep all other
* arguments unchanged. </p>
*/
inline ListRecommendationFeedbackRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p> If <code>nextToken</code> is returned, there are more results available. The
* value of nextToken is a unique pagination token for each page. Make the call
* again using the returned token to retrieve the next page. Keep all other
* arguments unchanged. </p>
*/
inline ListRecommendationFeedbackRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p> The maximum number of results that are returned per call. The default is
* 100. </p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p> The maximum number of results that are returned per call. The default is
* 100. </p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p> The maximum number of results that are returned per call. The default is
* 100. </p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p> The maximum number of results that are returned per call. The default is
* 100. </p>
*/
inline ListRecommendationFeedbackRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline const Aws::String& GetCodeReviewArn() const{ return m_codeReviewArn; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline bool CodeReviewArnHasBeenSet() const { return m_codeReviewArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(const Aws::String& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(Aws::String&& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(const char* value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline ListRecommendationFeedbackRequest& WithCodeReviewArn(const Aws::String& value) { SetCodeReviewArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline ListRecommendationFeedbackRequest& WithCodeReviewArn(Aws::String&& value) { SetCodeReviewArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline ListRecommendationFeedbackRequest& WithCodeReviewArn(const char* value) { SetCodeReviewArn(value); return *this;}
/**
* <p> An AWS user's account ID or Amazon Resource Name (ARN). Use this ID to query
* the recommendation feedback for a code review from that user. </p> <p> The
* <code>UserId</code> is an IAM principal that can be specified as an AWS account
* ID or an Amazon Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline const Aws::Vector<Aws::String>& GetUserIds() const{ return m_userIds; }
/**
* <p> An AWS user's account ID or Amazon Resource Name (ARN). Use this ID to query
* the recommendation feedback for a code review from that user. </p> <p> The
* <code>UserId</code> is an IAM principal that can be specified as an AWS account
* ID or an Amazon Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline bool UserIdsHasBeenSet() const { return m_userIdsHasBeenSet; }
/**
* <p> An AWS user's account ID or Amazon Resource Name (ARN). Use this ID to query
* the recommendation feedback for a code review from that user. </p> <p> The
* <code>UserId</code> is an IAM principal that can be specified as an AWS account
* ID or an Amazon Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline void SetUserIds(const Aws::Vector<Aws::String>& value) { m_userIdsHasBeenSet = true; m_userIds = value; }
/**
* <p> An AWS user's account ID or Amazon Resource Name (ARN). Use this ID to query
* the recommendation feedback for a code review from that user. </p> <p> The
* <code>UserId</code> is an IAM principal that can be specified as an AWS account
* ID or an Amazon Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline void SetUserIds(Aws::Vector<Aws::String>&& value) { m_userIdsHasBeenSet = true; m_userIds = std::move(value); }
/**
* <p> An AWS user's account ID or Amazon Resource Name (ARN). Use this ID to query
* the recommendation feedback for a code review from that user. </p> <p> The
* <code>UserId</code> is an IAM principal that can be specified as an AWS account
* ID or an Amazon Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline ListRecommendationFeedbackRequest& WithUserIds(const Aws::Vector<Aws::String>& value) { SetUserIds(value); return *this;}
/**
* <p> An AWS user's account ID or Amazon Resource Name (ARN). Use this ID to query
* the recommendation feedback for a code review from that user. </p> <p> The
* <code>UserId</code> is an IAM principal that can be specified as an AWS account
* ID or an Amazon Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline ListRecommendationFeedbackRequest& WithUserIds(Aws::Vector<Aws::String>&& value) { SetUserIds(std::move(value)); return *this;}
/**
* <p> An AWS user's account ID or Amazon Resource Name (ARN). Use this ID to query
* the recommendation feedback for a code review from that user. </p> <p> The
* <code>UserId</code> is an IAM principal that can be specified as an AWS account
* ID or an Amazon Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline ListRecommendationFeedbackRequest& AddUserIds(const Aws::String& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
/**
* <p> An AWS user's account ID or Amazon Resource Name (ARN). Use this ID to query
* the recommendation feedback for a code review from that user. </p> <p> The
* <code>UserId</code> is an IAM principal that can be specified as an AWS account
* ID or an Amazon Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline ListRecommendationFeedbackRequest& AddUserIds(Aws::String&& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(std::move(value)); return *this; }
/**
* <p> An AWS user's account ID or Amazon Resource Name (ARN). Use this ID to query
* the recommendation feedback for a code review from that user. </p> <p> The
* <code>UserId</code> is an IAM principal that can be specified as an AWS account
* ID or an Amazon Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline ListRecommendationFeedbackRequest& AddUserIds(const char* value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
/**
* <p> Used to query the recommendation feedback for a given recommendation. </p>
*/
inline const Aws::Vector<Aws::String>& GetRecommendationIds() const{ return m_recommendationIds; }
/**
* <p> Used to query the recommendation feedback for a given recommendation. </p>
*/
inline bool RecommendationIdsHasBeenSet() const { return m_recommendationIdsHasBeenSet; }
/**
* <p> Used to query the recommendation feedback for a given recommendation. </p>
*/
inline void SetRecommendationIds(const Aws::Vector<Aws::String>& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds = value; }
/**
* <p> Used to query the recommendation feedback for a given recommendation. </p>
*/
inline void SetRecommendationIds(Aws::Vector<Aws::String>&& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds = std::move(value); }
/**
* <p> Used to query the recommendation feedback for a given recommendation. </p>
*/
inline ListRecommendationFeedbackRequest& WithRecommendationIds(const Aws::Vector<Aws::String>& value) { SetRecommendationIds(value); return *this;}
/**
* <p> Used to query the recommendation feedback for a given recommendation. </p>
*/
inline ListRecommendationFeedbackRequest& WithRecommendationIds(Aws::Vector<Aws::String>&& value) { SetRecommendationIds(std::move(value)); return *this;}
/**
* <p> Used to query the recommendation feedback for a given recommendation. </p>
*/
inline ListRecommendationFeedbackRequest& AddRecommendationIds(const Aws::String& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds.push_back(value); return *this; }
/**
* <p> Used to query the recommendation feedback for a given recommendation. </p>
*/
inline ListRecommendationFeedbackRequest& AddRecommendationIds(Aws::String&& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds.push_back(std::move(value)); return *this; }
/**
* <p> Used to query the recommendation feedback for a given recommendation. </p>
*/
inline ListRecommendationFeedbackRequest& AddRecommendationIds(const char* value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds.push_back(value); return *this; }
private:
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_codeReviewArn;
bool m_codeReviewArnHasBeenSet;
Aws::Vector<Aws::String> m_userIds;
bool m_userIdsHasBeenSet;
Aws::Vector<Aws::String> m_recommendationIds;
bool m_recommendationIdsHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,138 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codeguru-reviewer/model/RecommendationFeedbackSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
class AWS_CODEGURUREVIEWER_API ListRecommendationFeedbackResult
{
public:
ListRecommendationFeedbackResult();
ListRecommendationFeedbackResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListRecommendationFeedbackResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> Recommendation feedback summaries corresponding to the code review ARN. </p>
*/
inline const Aws::Vector<RecommendationFeedbackSummary>& GetRecommendationFeedbackSummaries() const{ return m_recommendationFeedbackSummaries; }
/**
* <p> Recommendation feedback summaries corresponding to the code review ARN. </p>
*/
inline void SetRecommendationFeedbackSummaries(const Aws::Vector<RecommendationFeedbackSummary>& value) { m_recommendationFeedbackSummaries = value; }
/**
* <p> Recommendation feedback summaries corresponding to the code review ARN. </p>
*/
inline void SetRecommendationFeedbackSummaries(Aws::Vector<RecommendationFeedbackSummary>&& value) { m_recommendationFeedbackSummaries = std::move(value); }
/**
* <p> Recommendation feedback summaries corresponding to the code review ARN. </p>
*/
inline ListRecommendationFeedbackResult& WithRecommendationFeedbackSummaries(const Aws::Vector<RecommendationFeedbackSummary>& value) { SetRecommendationFeedbackSummaries(value); return *this;}
/**
* <p> Recommendation feedback summaries corresponding to the code review ARN. </p>
*/
inline ListRecommendationFeedbackResult& WithRecommendationFeedbackSummaries(Aws::Vector<RecommendationFeedbackSummary>&& value) { SetRecommendationFeedbackSummaries(std::move(value)); return *this;}
/**
* <p> Recommendation feedback summaries corresponding to the code review ARN. </p>
*/
inline ListRecommendationFeedbackResult& AddRecommendationFeedbackSummaries(const RecommendationFeedbackSummary& value) { m_recommendationFeedbackSummaries.push_back(value); return *this; }
/**
* <p> Recommendation feedback summaries corresponding to the code review ARN. </p>
*/
inline ListRecommendationFeedbackResult& AddRecommendationFeedbackSummaries(RecommendationFeedbackSummary&& value) { m_recommendationFeedbackSummaries.push_back(std::move(value)); return *this; }
/**
* <p> If nextToken is returned, there are more results available. The value of
* nextToken is a unique pagination token for each page. Make the call again using
* the returned token to retrieve the next page. Keep all other arguments
* unchanged. </p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p> If nextToken is returned, there are more results available. The value of
* nextToken is a unique pagination token for each page. Make the call again using
* the returned token to retrieve the next page. Keep all other arguments
* unchanged. </p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p> If nextToken is returned, there are more results available. The value of
* nextToken is a unique pagination token for each page. Make the call again using
* the returned token to retrieve the next page. Keep all other arguments
* unchanged. </p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p> If nextToken is returned, there are more results available. The value of
* nextToken is a unique pagination token for each page. Make the call again using
* the returned token to retrieve the next page. Keep all other arguments
* unchanged. </p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p> If nextToken is returned, there are more results available. The value of
* nextToken is a unique pagination token for each page. Make the call again using
* the returned token to retrieve the next page. Keep all other arguments
* unchanged. </p>
*/
inline ListRecommendationFeedbackResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p> If nextToken is returned, there are more results available. The value of
* nextToken is a unique pagination token for each page. Make the call again using
* the returned token to retrieve the next page. Keep all other arguments
* unchanged. </p>
*/
inline ListRecommendationFeedbackResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p> If nextToken is returned, there are more results available. The value of
* nextToken is a unique pagination token for each page. Make the call again using
* the returned token to retrieve the next page. Keep all other arguments
* unchanged. </p>
*/
inline ListRecommendationFeedbackResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<RecommendationFeedbackSummary> m_recommendationFeedbackSummaries;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,177 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/codeguru-reviewer/CodeGuruReviewerRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace CodeGuruReviewer
{
namespace Model
{
/**
*/
class AWS_CODEGURUREVIEWER_API ListRecommendationsRequest : public CodeGuruReviewerRequest
{
public:
ListRecommendationsRequest();
// 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 "ListRecommendations"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p> Pagination token. </p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p> Pagination token. </p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p> Pagination token. </p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p> Pagination token. </p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p> Pagination token. </p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p> Pagination token. </p>
*/
inline ListRecommendationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p> Pagination token. </p>
*/
inline ListRecommendationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p> Pagination token. </p>
*/
inline ListRecommendationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p> The maximum number of results that are returned per call. The default is
* 100. </p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p> The maximum number of results that are returned per call. The default is
* 100. </p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p> The maximum number of results that are returned per call. The default is
* 100. </p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p> The maximum number of results that are returned per call. The default is
* 100. </p>
*/
inline ListRecommendationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline const Aws::String& GetCodeReviewArn() const{ return m_codeReviewArn; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline bool CodeReviewArnHasBeenSet() const { return m_codeReviewArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(const Aws::String& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(Aws::String&& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(const char* value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline ListRecommendationsRequest& WithCodeReviewArn(const Aws::String& value) { SetCodeReviewArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline ListRecommendationsRequest& WithCodeReviewArn(Aws::String&& value) { SetCodeReviewArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline ListRecommendationsRequest& WithCodeReviewArn(const char* value) { SetCodeReviewArn(value); return *this;}
private:
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_codeReviewArn;
bool m_codeReviewArnHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codeguru-reviewer/model/RecommendationSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
class AWS_CODEGURUREVIEWER_API ListRecommendationsResult
{
public:
ListRecommendationsResult();
ListRecommendationsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListRecommendationsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> List of recommendations for the requested code review. </p>
*/
inline const Aws::Vector<RecommendationSummary>& GetRecommendationSummaries() const{ return m_recommendationSummaries; }
/**
* <p> List of recommendations for the requested code review. </p>
*/
inline void SetRecommendationSummaries(const Aws::Vector<RecommendationSummary>& value) { m_recommendationSummaries = value; }
/**
* <p> List of recommendations for the requested code review. </p>
*/
inline void SetRecommendationSummaries(Aws::Vector<RecommendationSummary>&& value) { m_recommendationSummaries = std::move(value); }
/**
* <p> List of recommendations for the requested code review. </p>
*/
inline ListRecommendationsResult& WithRecommendationSummaries(const Aws::Vector<RecommendationSummary>& value) { SetRecommendationSummaries(value); return *this;}
/**
* <p> List of recommendations for the requested code review. </p>
*/
inline ListRecommendationsResult& WithRecommendationSummaries(Aws::Vector<RecommendationSummary>&& value) { SetRecommendationSummaries(std::move(value)); return *this;}
/**
* <p> List of recommendations for the requested code review. </p>
*/
inline ListRecommendationsResult& AddRecommendationSummaries(const RecommendationSummary& value) { m_recommendationSummaries.push_back(value); return *this; }
/**
* <p> List of recommendations for the requested code review. </p>
*/
inline ListRecommendationsResult& AddRecommendationSummaries(RecommendationSummary&& value) { m_recommendationSummaries.push_back(std::move(value)); return *this; }
/**
* <p> Pagination token. </p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p> Pagination token. </p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p> Pagination token. </p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p> Pagination token. </p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p> Pagination token. </p>
*/
inline ListRecommendationsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p> Pagination token. </p>
*/
inline ListRecommendationsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p> Pagination token. </p>
*/
inline ListRecommendationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<RecommendationSummary> m_recommendationSummaries;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,513 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/codeguru-reviewer/CodeGuruReviewerRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codeguru-reviewer/model/ProviderType.h>
#include <aws/codeguru-reviewer/model/RepositoryAssociationState.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace CodeGuruReviewer
{
namespace Model
{
/**
*/
class AWS_CODEGURUREVIEWER_API ListRepositoryAssociationsRequest : public CodeGuruReviewerRequest
{
public:
ListRepositoryAssociationsRequest();
// 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 "ListRepositoryAssociations"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>List of provider types to use as a filter.</p>
*/
inline const Aws::Vector<ProviderType>& GetProviderTypes() const{ return m_providerTypes; }
/**
* <p>List of provider types to use as a filter.</p>
*/
inline bool ProviderTypesHasBeenSet() const { return m_providerTypesHasBeenSet; }
/**
* <p>List of provider types to use as a filter.</p>
*/
inline void SetProviderTypes(const Aws::Vector<ProviderType>& value) { m_providerTypesHasBeenSet = true; m_providerTypes = value; }
/**
* <p>List of provider types to use as a filter.</p>
*/
inline void SetProviderTypes(Aws::Vector<ProviderType>&& value) { m_providerTypesHasBeenSet = true; m_providerTypes = std::move(value); }
/**
* <p>List of provider types to use as a filter.</p>
*/
inline ListRepositoryAssociationsRequest& WithProviderTypes(const Aws::Vector<ProviderType>& value) { SetProviderTypes(value); return *this;}
/**
* <p>List of provider types to use as a filter.</p>
*/
inline ListRepositoryAssociationsRequest& WithProviderTypes(Aws::Vector<ProviderType>&& value) { SetProviderTypes(std::move(value)); return *this;}
/**
* <p>List of provider types to use as a filter.</p>
*/
inline ListRepositoryAssociationsRequest& AddProviderTypes(const ProviderType& value) { m_providerTypesHasBeenSet = true; m_providerTypes.push_back(value); return *this; }
/**
* <p>List of provider types to use as a filter.</p>
*/
inline ListRepositoryAssociationsRequest& AddProviderTypes(ProviderType&& value) { m_providerTypesHasBeenSet = true; m_providerTypes.push_back(std::move(value)); return *this; }
/**
* <p>List of repository association states to use as a filter.</p> <p>The valid
* repository association states are:</p> <ul> <li> <p> <b>Associated</b>: The
* repository association is complete. </p> </li> <li> <p> <b>Associating</b>:
* CodeGuru Reviewer is: </p> <ul> <li> <p> Setting up pull request notifications.
* This is required for pull requests to trigger a CodeGuru Reviewer review. </p>
* <p> If your repository <code>ProviderType</code> is <code>GitHub</code>
* or <code>Bitbucket</code>, CodeGuru Reviewer creates webhooks in your repository
* to trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of
* code in your repository cannot be triggered. </p> </li> <li> <p> Setting
* up source code access. This is required for CodeGuru Reviewer to securely clone
* code in your repository. </p> </li> </ul> </li> <li> <p> <b>Failed</b>: The
* repository failed to associate or disassociate. </p> </li> <li> <p>
* <b>Disassociating</b>: CodeGuru Reviewer is removing the repository's pull
* request notifications and source code access. </p> </li> </ul>
*/
inline const Aws::Vector<RepositoryAssociationState>& GetStates() const{ return m_states; }
/**
* <p>List of repository association states to use as a filter.</p> <p>The valid
* repository association states are:</p> <ul> <li> <p> <b>Associated</b>: The
* repository association is complete. </p> </li> <li> <p> <b>Associating</b>:
* CodeGuru Reviewer is: </p> <ul> <li> <p> Setting up pull request notifications.
* This is required for pull requests to trigger a CodeGuru Reviewer review. </p>
* <p> If your repository <code>ProviderType</code> is <code>GitHub</code>
* or <code>Bitbucket</code>, CodeGuru Reviewer creates webhooks in your repository
* to trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of
* code in your repository cannot be triggered. </p> </li> <li> <p> Setting
* up source code access. This is required for CodeGuru Reviewer to securely clone
* code in your repository. </p> </li> </ul> </li> <li> <p> <b>Failed</b>: The
* repository failed to associate or disassociate. </p> </li> <li> <p>
* <b>Disassociating</b>: CodeGuru Reviewer is removing the repository's pull
* request notifications and source code access. </p> </li> </ul>
*/
inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; }
/**
* <p>List of repository association states to use as a filter.</p> <p>The valid
* repository association states are:</p> <ul> <li> <p> <b>Associated</b>: The
* repository association is complete. </p> </li> <li> <p> <b>Associating</b>:
* CodeGuru Reviewer is: </p> <ul> <li> <p> Setting up pull request notifications.
* This is required for pull requests to trigger a CodeGuru Reviewer review. </p>
* <p> If your repository <code>ProviderType</code> is <code>GitHub</code>
* or <code>Bitbucket</code>, CodeGuru Reviewer creates webhooks in your repository
* to trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of
* code in your repository cannot be triggered. </p> </li> <li> <p> Setting
* up source code access. This is required for CodeGuru Reviewer to securely clone
* code in your repository. </p> </li> </ul> </li> <li> <p> <b>Failed</b>: The
* repository failed to associate or disassociate. </p> </li> <li> <p>
* <b>Disassociating</b>: CodeGuru Reviewer is removing the repository's pull
* request notifications and source code access. </p> </li> </ul>
*/
inline void SetStates(const Aws::Vector<RepositoryAssociationState>& value) { m_statesHasBeenSet = true; m_states = value; }
/**
* <p>List of repository association states to use as a filter.</p> <p>The valid
* repository association states are:</p> <ul> <li> <p> <b>Associated</b>: The
* repository association is complete. </p> </li> <li> <p> <b>Associating</b>:
* CodeGuru Reviewer is: </p> <ul> <li> <p> Setting up pull request notifications.
* This is required for pull requests to trigger a CodeGuru Reviewer review. </p>
* <p> If your repository <code>ProviderType</code> is <code>GitHub</code>
* or <code>Bitbucket</code>, CodeGuru Reviewer creates webhooks in your repository
* to trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of
* code in your repository cannot be triggered. </p> </li> <li> <p> Setting
* up source code access. This is required for CodeGuru Reviewer to securely clone
* code in your repository. </p> </li> </ul> </li> <li> <p> <b>Failed</b>: The
* repository failed to associate or disassociate. </p> </li> <li> <p>
* <b>Disassociating</b>: CodeGuru Reviewer is removing the repository's pull
* request notifications and source code access. </p> </li> </ul>
*/
inline void SetStates(Aws::Vector<RepositoryAssociationState>&& value) { m_statesHasBeenSet = true; m_states = std::move(value); }
/**
* <p>List of repository association states to use as a filter.</p> <p>The valid
* repository association states are:</p> <ul> <li> <p> <b>Associated</b>: The
* repository association is complete. </p> </li> <li> <p> <b>Associating</b>:
* CodeGuru Reviewer is: </p> <ul> <li> <p> Setting up pull request notifications.
* This is required for pull requests to trigger a CodeGuru Reviewer review. </p>
* <p> If your repository <code>ProviderType</code> is <code>GitHub</code>
* or <code>Bitbucket</code>, CodeGuru Reviewer creates webhooks in your repository
* to trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of
* code in your repository cannot be triggered. </p> </li> <li> <p> Setting
* up source code access. This is required for CodeGuru Reviewer to securely clone
* code in your repository. </p> </li> </ul> </li> <li> <p> <b>Failed</b>: The
* repository failed to associate or disassociate. </p> </li> <li> <p>
* <b>Disassociating</b>: CodeGuru Reviewer is removing the repository's pull
* request notifications and source code access. </p> </li> </ul>
*/
inline ListRepositoryAssociationsRequest& WithStates(const Aws::Vector<RepositoryAssociationState>& value) { SetStates(value); return *this;}
/**
* <p>List of repository association states to use as a filter.</p> <p>The valid
* repository association states are:</p> <ul> <li> <p> <b>Associated</b>: The
* repository association is complete. </p> </li> <li> <p> <b>Associating</b>:
* CodeGuru Reviewer is: </p> <ul> <li> <p> Setting up pull request notifications.
* This is required for pull requests to trigger a CodeGuru Reviewer review. </p>
* <p> If your repository <code>ProviderType</code> is <code>GitHub</code>
* or <code>Bitbucket</code>, CodeGuru Reviewer creates webhooks in your repository
* to trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of
* code in your repository cannot be triggered. </p> </li> <li> <p> Setting
* up source code access. This is required for CodeGuru Reviewer to securely clone
* code in your repository. </p> </li> </ul> </li> <li> <p> <b>Failed</b>: The
* repository failed to associate or disassociate. </p> </li> <li> <p>
* <b>Disassociating</b>: CodeGuru Reviewer is removing the repository's pull
* request notifications and source code access. </p> </li> </ul>
*/
inline ListRepositoryAssociationsRequest& WithStates(Aws::Vector<RepositoryAssociationState>&& value) { SetStates(std::move(value)); return *this;}
/**
* <p>List of repository association states to use as a filter.</p> <p>The valid
* repository association states are:</p> <ul> <li> <p> <b>Associated</b>: The
* repository association is complete. </p> </li> <li> <p> <b>Associating</b>:
* CodeGuru Reviewer is: </p> <ul> <li> <p> Setting up pull request notifications.
* This is required for pull requests to trigger a CodeGuru Reviewer review. </p>
* <p> If your repository <code>ProviderType</code> is <code>GitHub</code>
* or <code>Bitbucket</code>, CodeGuru Reviewer creates webhooks in your repository
* to trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of
* code in your repository cannot be triggered. </p> </li> <li> <p> Setting
* up source code access. This is required for CodeGuru Reviewer to securely clone
* code in your repository. </p> </li> </ul> </li> <li> <p> <b>Failed</b>: The
* repository failed to associate or disassociate. </p> </li> <li> <p>
* <b>Disassociating</b>: CodeGuru Reviewer is removing the repository's pull
* request notifications and source code access. </p> </li> </ul>
*/
inline ListRepositoryAssociationsRequest& AddStates(const RepositoryAssociationState& value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; }
/**
* <p>List of repository association states to use as a filter.</p> <p>The valid
* repository association states are:</p> <ul> <li> <p> <b>Associated</b>: The
* repository association is complete. </p> </li> <li> <p> <b>Associating</b>:
* CodeGuru Reviewer is: </p> <ul> <li> <p> Setting up pull request notifications.
* This is required for pull requests to trigger a CodeGuru Reviewer review. </p>
* <p> If your repository <code>ProviderType</code> is <code>GitHub</code>
* or <code>Bitbucket</code>, CodeGuru Reviewer creates webhooks in your repository
* to trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of
* code in your repository cannot be triggered. </p> </li> <li> <p> Setting
* up source code access. This is required for CodeGuru Reviewer to securely clone
* code in your repository. </p> </li> </ul> </li> <li> <p> <b>Failed</b>: The
* repository failed to associate or disassociate. </p> </li> <li> <p>
* <b>Disassociating</b>: CodeGuru Reviewer is removing the repository's pull
* request notifications and source code access. </p> </li> </ul>
*/
inline ListRepositoryAssociationsRequest& AddStates(RepositoryAssociationState&& value) { m_statesHasBeenSet = true; m_states.push_back(std::move(value)); return *this; }
/**
* <p>List of repository names to use as a filter.</p>
*/
inline const Aws::Vector<Aws::String>& GetNames() const{ return m_names; }
/**
* <p>List of repository names to use as a filter.</p>
*/
inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
/**
* <p>List of repository names to use as a filter.</p>
*/
inline void SetNames(const Aws::Vector<Aws::String>& value) { m_namesHasBeenSet = true; m_names = value; }
/**
* <p>List of repository names to use as a filter.</p>
*/
inline void SetNames(Aws::Vector<Aws::String>&& value) { m_namesHasBeenSet = true; m_names = std::move(value); }
/**
* <p>List of repository names to use as a filter.</p>
*/
inline ListRepositoryAssociationsRequest& WithNames(const Aws::Vector<Aws::String>& value) { SetNames(value); return *this;}
/**
* <p>List of repository names to use as a filter.</p>
*/
inline ListRepositoryAssociationsRequest& WithNames(Aws::Vector<Aws::String>&& value) { SetNames(std::move(value)); return *this;}
/**
* <p>List of repository names to use as a filter.</p>
*/
inline ListRepositoryAssociationsRequest& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
/**
* <p>List of repository names to use as a filter.</p>
*/
inline ListRepositoryAssociationsRequest& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; }
/**
* <p>List of repository names to use as a filter.</p>
*/
inline ListRepositoryAssociationsRequest& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
/**
* <p>List of owners to use as a filter. For AWS CodeCommit, it is the name of the
* CodeCommit account that was used to associate the repository. For other
* repository source providers, such as Bitbucket, this is name of the account that
* was used to associate the repository. </p>
*/
inline const Aws::Vector<Aws::String>& GetOwners() const{ return m_owners; }
/**
* <p>List of owners to use as a filter. For AWS CodeCommit, it is the name of the
* CodeCommit account that was used to associate the repository. For other
* repository source providers, such as Bitbucket, this is name of the account that
* was used to associate the repository. </p>
*/
inline bool OwnersHasBeenSet() const { return m_ownersHasBeenSet; }
/**
* <p>List of owners to use as a filter. For AWS CodeCommit, it is the name of the
* CodeCommit account that was used to associate the repository. For other
* repository source providers, such as Bitbucket, this is name of the account that
* was used to associate the repository. </p>
*/
inline void SetOwners(const Aws::Vector<Aws::String>& value) { m_ownersHasBeenSet = true; m_owners = value; }
/**
* <p>List of owners to use as a filter. For AWS CodeCommit, it is the name of the
* CodeCommit account that was used to associate the repository. For other
* repository source providers, such as Bitbucket, this is name of the account that
* was used to associate the repository. </p>
*/
inline void SetOwners(Aws::Vector<Aws::String>&& value) { m_ownersHasBeenSet = true; m_owners = std::move(value); }
/**
* <p>List of owners to use as a filter. For AWS CodeCommit, it is the name of the
* CodeCommit account that was used to associate the repository. For other
* repository source providers, such as Bitbucket, this is name of the account that
* was used to associate the repository. </p>
*/
inline ListRepositoryAssociationsRequest& WithOwners(const Aws::Vector<Aws::String>& value) { SetOwners(value); return *this;}
/**
* <p>List of owners to use as a filter. For AWS CodeCommit, it is the name of the
* CodeCommit account that was used to associate the repository. For other
* repository source providers, such as Bitbucket, this is name of the account that
* was used to associate the repository. </p>
*/
inline ListRepositoryAssociationsRequest& WithOwners(Aws::Vector<Aws::String>&& value) { SetOwners(std::move(value)); return *this;}
/**
* <p>List of owners to use as a filter. For AWS CodeCommit, it is the name of the
* CodeCommit account that was used to associate the repository. For other
* repository source providers, such as Bitbucket, this is name of the account that
* was used to associate the repository. </p>
*/
inline ListRepositoryAssociationsRequest& AddOwners(const Aws::String& value) { m_ownersHasBeenSet = true; m_owners.push_back(value); return *this; }
/**
* <p>List of owners to use as a filter. For AWS CodeCommit, it is the name of the
* CodeCommit account that was used to associate the repository. For other
* repository source providers, such as Bitbucket, this is name of the account that
* was used to associate the repository. </p>
*/
inline ListRepositoryAssociationsRequest& AddOwners(Aws::String&& value) { m_ownersHasBeenSet = true; m_owners.push_back(std::move(value)); return *this; }
/**
* <p>List of owners to use as a filter. For AWS CodeCommit, it is the name of the
* CodeCommit account that was used to associate the repository. For other
* repository source providers, such as Bitbucket, this is name of the account that
* was used to associate the repository. </p>
*/
inline ListRepositoryAssociationsRequest& AddOwners(const char* value) { m_ownersHasBeenSet = true; m_owners.push_back(value); return *this; }
/**
* <p>The maximum number of repository association results returned by
* <code>ListRepositoryAssociations</code> in paginated output. When this parameter
* is used, <code>ListRepositoryAssociations</code> only returns
* <code>maxResults</code> results in a single page with a <code>nextToken</code>
* response element. The remaining results of the initial request can be seen by
* sending another <code>ListRepositoryAssociations</code> request with the
* returned <code>nextToken</code> value. This value can be between 1 and 100. If
* this parameter is not used, <code>ListRepositoryAssociations</code> returns up
* to 100 results and a <code>nextToken</code> value if applicable. </p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of repository association results returned by
* <code>ListRepositoryAssociations</code> in paginated output. When this parameter
* is used, <code>ListRepositoryAssociations</code> only returns
* <code>maxResults</code> results in a single page with a <code>nextToken</code>
* response element. The remaining results of the initial request can be seen by
* sending another <code>ListRepositoryAssociations</code> request with the
* returned <code>nextToken</code> value. This value can be between 1 and 100. If
* this parameter is not used, <code>ListRepositoryAssociations</code> returns up
* to 100 results and a <code>nextToken</code> value if applicable. </p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of repository association results returned by
* <code>ListRepositoryAssociations</code> in paginated output. When this parameter
* is used, <code>ListRepositoryAssociations</code> only returns
* <code>maxResults</code> results in a single page with a <code>nextToken</code>
* response element. The remaining results of the initial request can be seen by
* sending another <code>ListRepositoryAssociations</code> request with the
* returned <code>nextToken</code> value. This value can be between 1 and 100. If
* this parameter is not used, <code>ListRepositoryAssociations</code> returns up
* to 100 results and a <code>nextToken</code> value if applicable. </p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of repository association results returned by
* <code>ListRepositoryAssociations</code> in paginated output. When this parameter
* is used, <code>ListRepositoryAssociations</code> only returns
* <code>maxResults</code> results in a single page with a <code>nextToken</code>
* response element. The remaining results of the initial request can be seen by
* sending another <code>ListRepositoryAssociations</code> request with the
* returned <code>nextToken</code> value. This value can be between 1 and 100. If
* this parameter is not used, <code>ListRepositoryAssociations</code> returns up
* to 100 results and a <code>nextToken</code> value if applicable. </p>
*/
inline ListRepositoryAssociationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>The <code>nextToken</code> value returned from a previous paginated
* <code>ListRepositoryAssociations</code> request where <code>maxResults</code>
* was used and the results exceeded the value of that parameter. Pagination
* continues from the end of the previous results that returned the
* <code>nextToken</code> value. </p> <p>Treat this token as an opaque
* identifier that is only used to retrieve the next items in a list and not for
* other programmatic purposes.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The <code>nextToken</code> value returned from a previous paginated
* <code>ListRepositoryAssociations</code> request where <code>maxResults</code>
* was used and the results exceeded the value of that parameter. Pagination
* continues from the end of the previous results that returned the
* <code>nextToken</code> value. </p> <p>Treat this token as an opaque
* identifier that is only used to retrieve the next items in a list and not for
* other programmatic purposes.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The <code>nextToken</code> value returned from a previous paginated
* <code>ListRepositoryAssociations</code> request where <code>maxResults</code>
* was used and the results exceeded the value of that parameter. Pagination
* continues from the end of the previous results that returned the
* <code>nextToken</code> value. </p> <p>Treat this token as an opaque
* identifier that is only used to retrieve the next items in a list and not for
* other programmatic purposes.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The <code>nextToken</code> value returned from a previous paginated
* <code>ListRepositoryAssociations</code> request where <code>maxResults</code>
* was used and the results exceeded the value of that parameter. Pagination
* continues from the end of the previous results that returned the
* <code>nextToken</code> value. </p> <p>Treat this token as an opaque
* identifier that is only used to retrieve the next items in a list and not for
* other programmatic purposes.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The <code>nextToken</code> value returned from a previous paginated
* <code>ListRepositoryAssociations</code> request where <code>maxResults</code>
* was used and the results exceeded the value of that parameter. Pagination
* continues from the end of the previous results that returned the
* <code>nextToken</code> value. </p> <p>Treat this token as an opaque
* identifier that is only used to retrieve the next items in a list and not for
* other programmatic purposes.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The <code>nextToken</code> value returned from a previous paginated
* <code>ListRepositoryAssociations</code> request where <code>maxResults</code>
* was used and the results exceeded the value of that parameter. Pagination
* continues from the end of the previous results that returned the
* <code>nextToken</code> value. </p> <p>Treat this token as an opaque
* identifier that is only used to retrieve the next items in a list and not for
* other programmatic purposes.</p>
*/
inline ListRepositoryAssociationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The <code>nextToken</code> value returned from a previous paginated
* <code>ListRepositoryAssociations</code> request where <code>maxResults</code>
* was used and the results exceeded the value of that parameter. Pagination
* continues from the end of the previous results that returned the
* <code>nextToken</code> value. </p> <p>Treat this token as an opaque
* identifier that is only used to retrieve the next items in a list and not for
* other programmatic purposes.</p>
*/
inline ListRepositoryAssociationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The <code>nextToken</code> value returned from a previous paginated
* <code>ListRepositoryAssociations</code> request where <code>maxResults</code>
* was used and the results exceeded the value of that parameter. Pagination
* continues from the end of the previous results that returned the
* <code>nextToken</code> value. </p> <p>Treat this token as an opaque
* identifier that is only used to retrieve the next items in a list and not for
* other programmatic purposes.</p>
*/
inline ListRepositoryAssociationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<ProviderType> m_providerTypes;
bool m_providerTypesHasBeenSet;
Aws::Vector<RepositoryAssociationState> m_states;
bool m_statesHasBeenSet;
Aws::Vector<Aws::String> m_names;
bool m_namesHasBeenSet;
Aws::Vector<Aws::String> m_owners;
bool m_ownersHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codeguru-reviewer/model/RepositoryAssociationSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
class AWS_CODEGURUREVIEWER_API ListRepositoryAssociationsResult
{
public:
ListRepositoryAssociationsResult();
ListRepositoryAssociationsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListRepositoryAssociationsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of repository associations that meet the criteria of the request.</p>
*/
inline const Aws::Vector<RepositoryAssociationSummary>& GetRepositoryAssociationSummaries() const{ return m_repositoryAssociationSummaries; }
/**
* <p>A list of repository associations that meet the criteria of the request.</p>
*/
inline void SetRepositoryAssociationSummaries(const Aws::Vector<RepositoryAssociationSummary>& value) { m_repositoryAssociationSummaries = value; }
/**
* <p>A list of repository associations that meet the criteria of the request.</p>
*/
inline void SetRepositoryAssociationSummaries(Aws::Vector<RepositoryAssociationSummary>&& value) { m_repositoryAssociationSummaries = std::move(value); }
/**
* <p>A list of repository associations that meet the criteria of the request.</p>
*/
inline ListRepositoryAssociationsResult& WithRepositoryAssociationSummaries(const Aws::Vector<RepositoryAssociationSummary>& value) { SetRepositoryAssociationSummaries(value); return *this;}
/**
* <p>A list of repository associations that meet the criteria of the request.</p>
*/
inline ListRepositoryAssociationsResult& WithRepositoryAssociationSummaries(Aws::Vector<RepositoryAssociationSummary>&& value) { SetRepositoryAssociationSummaries(std::move(value)); return *this;}
/**
* <p>A list of repository associations that meet the criteria of the request.</p>
*/
inline ListRepositoryAssociationsResult& AddRepositoryAssociationSummaries(const RepositoryAssociationSummary& value) { m_repositoryAssociationSummaries.push_back(value); return *this; }
/**
* <p>A list of repository associations that meet the criteria of the request.</p>
*/
inline ListRepositoryAssociationsResult& AddRepositoryAssociationSummaries(RepositoryAssociationSummary&& value) { m_repositoryAssociationSummaries.push_back(std::move(value)); return *this; }
/**
* <p>The <code>nextToken</code> value to include in a future
* <code>ListRecommendations</code> request. When the results of a
* <code>ListRecommendations</code> request exceed <code>maxResults</code>, this
* value can be used to retrieve the next page of results. This value is
* <code>null</code> when there are no more results to return. </p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The <code>nextToken</code> value to include in a future
* <code>ListRecommendations</code> request. When the results of a
* <code>ListRecommendations</code> request exceed <code>maxResults</code>, this
* value can be used to retrieve the next page of results. This value is
* <code>null</code> when there are no more results to return. </p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The <code>nextToken</code> value to include in a future
* <code>ListRecommendations</code> request. When the results of a
* <code>ListRecommendations</code> request exceed <code>maxResults</code>, this
* value can be used to retrieve the next page of results. This value is
* <code>null</code> when there are no more results to return. </p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The <code>nextToken</code> value to include in a future
* <code>ListRecommendations</code> request. When the results of a
* <code>ListRecommendations</code> request exceed <code>maxResults</code>, this
* value can be used to retrieve the next page of results. This value is
* <code>null</code> when there are no more results to return. </p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The <code>nextToken</code> value to include in a future
* <code>ListRecommendations</code> request. When the results of a
* <code>ListRecommendations</code> request exceed <code>maxResults</code>, this
* value can be used to retrieve the next page of results. This value is
* <code>null</code> when there are no more results to return. </p>
*/
inline ListRepositoryAssociationsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The <code>nextToken</code> value to include in a future
* <code>ListRecommendations</code> request. When the results of a
* <code>ListRecommendations</code> request exceed <code>maxResults</code>, this
* value can be used to retrieve the next page of results. This value is
* <code>null</code> when there are no more results to return. </p>
*/
inline ListRepositoryAssociationsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The <code>nextToken</code> value to include in a future
* <code>ListRecommendations</code> request. When the results of a
* <code>ListRecommendations</code> request exceed <code>maxResults</code>, this
* value can be used to retrieve the next page of results. This value is
* <code>null</code> when there are no more results to return. </p>
*/
inline ListRepositoryAssociationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<RepositoryAssociationSummary> m_repositoryAssociationSummaries;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,131 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
/**
* <p> Information about the statistics from the code review. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/Metrics">AWS
* API Reference</a></p>
*/
class AWS_CODEGURUREVIEWER_API Metrics
{
public:
Metrics();
Metrics(Aws::Utils::Json::JsonView jsonValue);
Metrics& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> Lines of code metered in the code review. For the initial code review pull
* request and all subsequent revisions, this includes all lines of code in the
* files added to the pull request. In subsequent revisions, for files that already
* existed in the pull request, this includes only the changed lines of code. In
* both cases, this does not include non-code lines such as comments and import
* statements. For example, if you submit a pull request containing 5 files, each
* with 500 lines of code, and in a subsequent revision you added a new file with
* 200 lines of code, and also modified a total of 25 lines across the initial 5
* files, <code>MeteredLinesOfCodeCount</code> includes the first 5 files (5 * 500
* = 2,500 lines), the new file (200 lines) and the 25 changed lines of code for a
* total of 2,725 lines of code. </p>
*/
inline long long GetMeteredLinesOfCodeCount() const{ return m_meteredLinesOfCodeCount; }
/**
* <p> Lines of code metered in the code review. For the initial code review pull
* request and all subsequent revisions, this includes all lines of code in the
* files added to the pull request. In subsequent revisions, for files that already
* existed in the pull request, this includes only the changed lines of code. In
* both cases, this does not include non-code lines such as comments and import
* statements. For example, if you submit a pull request containing 5 files, each
* with 500 lines of code, and in a subsequent revision you added a new file with
* 200 lines of code, and also modified a total of 25 lines across the initial 5
* files, <code>MeteredLinesOfCodeCount</code> includes the first 5 files (5 * 500
* = 2,500 lines), the new file (200 lines) and the 25 changed lines of code for a
* total of 2,725 lines of code. </p>
*/
inline bool MeteredLinesOfCodeCountHasBeenSet() const { return m_meteredLinesOfCodeCountHasBeenSet; }
/**
* <p> Lines of code metered in the code review. For the initial code review pull
* request and all subsequent revisions, this includes all lines of code in the
* files added to the pull request. In subsequent revisions, for files that already
* existed in the pull request, this includes only the changed lines of code. In
* both cases, this does not include non-code lines such as comments and import
* statements. For example, if you submit a pull request containing 5 files, each
* with 500 lines of code, and in a subsequent revision you added a new file with
* 200 lines of code, and also modified a total of 25 lines across the initial 5
* files, <code>MeteredLinesOfCodeCount</code> includes the first 5 files (5 * 500
* = 2,500 lines), the new file (200 lines) and the 25 changed lines of code for a
* total of 2,725 lines of code. </p>
*/
inline void SetMeteredLinesOfCodeCount(long long value) { m_meteredLinesOfCodeCountHasBeenSet = true; m_meteredLinesOfCodeCount = value; }
/**
* <p> Lines of code metered in the code review. For the initial code review pull
* request and all subsequent revisions, this includes all lines of code in the
* files added to the pull request. In subsequent revisions, for files that already
* existed in the pull request, this includes only the changed lines of code. In
* both cases, this does not include non-code lines such as comments and import
* statements. For example, if you submit a pull request containing 5 files, each
* with 500 lines of code, and in a subsequent revision you added a new file with
* 200 lines of code, and also modified a total of 25 lines across the initial 5
* files, <code>MeteredLinesOfCodeCount</code> includes the first 5 files (5 * 500
* = 2,500 lines), the new file (200 lines) and the 25 changed lines of code for a
* total of 2,725 lines of code. </p>
*/
inline Metrics& WithMeteredLinesOfCodeCount(long long value) { SetMeteredLinesOfCodeCount(value); return *this;}
/**
* <p> Total number of recommendations found in the code review. </p>
*/
inline long long GetFindingsCount() const{ return m_findingsCount; }
/**
* <p> Total number of recommendations found in the code review. </p>
*/
inline bool FindingsCountHasBeenSet() const { return m_findingsCountHasBeenSet; }
/**
* <p> Total number of recommendations found in the code review. </p>
*/
inline void SetFindingsCount(long long value) { m_findingsCountHasBeenSet = true; m_findingsCount = value; }
/**
* <p> Total number of recommendations found in the code review. </p>
*/
inline Metrics& WithFindingsCount(long long value) { SetFindingsCount(value); return *this;}
private:
long long m_meteredLinesOfCodeCount;
bool m_meteredLinesOfCodeCountHasBeenSet;
long long m_findingsCount;
bool m_findingsCountHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,130 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
/**
* <p> Information about metrics summaries. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/MetricsSummary">AWS
* API Reference</a></p>
*/
class AWS_CODEGURUREVIEWER_API MetricsSummary
{
public:
MetricsSummary();
MetricsSummary(Aws::Utils::Json::JsonView jsonValue);
MetricsSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> Lines of code metered in the code review. For the initial code review pull
* request and all subsequent revisions, this includes all lines of code in the
* files added to the pull request. In subsequent revisions, for files that already
* existed in the pull request, this includes only the changed lines of code. In
* both cases, this does not include non-code lines such as comments and import
* statements. For example, if you submit a pull request containing 5 files, each
* with 500 lines of code, and in a subsequent revision you added a new file with
* 200 lines of code, and also modified a total of 25 lines across the initial 5
* files, <code>MeteredLinesOfCodeCount</code> includes the first 5 files (5 * 500
* = 2,500 lines), the new file (200 lines) and the 25 changed lines of code for a
* total of 2,725 lines of code. </p>
*/
inline long long GetMeteredLinesOfCodeCount() const{ return m_meteredLinesOfCodeCount; }
/**
* <p> Lines of code metered in the code review. For the initial code review pull
* request and all subsequent revisions, this includes all lines of code in the
* files added to the pull request. In subsequent revisions, for files that already
* existed in the pull request, this includes only the changed lines of code. In
* both cases, this does not include non-code lines such as comments and import
* statements. For example, if you submit a pull request containing 5 files, each
* with 500 lines of code, and in a subsequent revision you added a new file with
* 200 lines of code, and also modified a total of 25 lines across the initial 5
* files, <code>MeteredLinesOfCodeCount</code> includes the first 5 files (5 * 500
* = 2,500 lines), the new file (200 lines) and the 25 changed lines of code for a
* total of 2,725 lines of code. </p>
*/
inline bool MeteredLinesOfCodeCountHasBeenSet() const { return m_meteredLinesOfCodeCountHasBeenSet; }
/**
* <p> Lines of code metered in the code review. For the initial code review pull
* request and all subsequent revisions, this includes all lines of code in the
* files added to the pull request. In subsequent revisions, for files that already
* existed in the pull request, this includes only the changed lines of code. In
* both cases, this does not include non-code lines such as comments and import
* statements. For example, if you submit a pull request containing 5 files, each
* with 500 lines of code, and in a subsequent revision you added a new file with
* 200 lines of code, and also modified a total of 25 lines across the initial 5
* files, <code>MeteredLinesOfCodeCount</code> includes the first 5 files (5 * 500
* = 2,500 lines), the new file (200 lines) and the 25 changed lines of code for a
* total of 2,725 lines of code. </p>
*/
inline void SetMeteredLinesOfCodeCount(long long value) { m_meteredLinesOfCodeCountHasBeenSet = true; m_meteredLinesOfCodeCount = value; }
/**
* <p> Lines of code metered in the code review. For the initial code review pull
* request and all subsequent revisions, this includes all lines of code in the
* files added to the pull request. In subsequent revisions, for files that already
* existed in the pull request, this includes only the changed lines of code. In
* both cases, this does not include non-code lines such as comments and import
* statements. For example, if you submit a pull request containing 5 files, each
* with 500 lines of code, and in a subsequent revision you added a new file with
* 200 lines of code, and also modified a total of 25 lines across the initial 5
* files, <code>MeteredLinesOfCodeCount</code> includes the first 5 files (5 * 500
* = 2,500 lines), the new file (200 lines) and the 25 changed lines of code for a
* total of 2,725 lines of code. </p>
*/
inline MetricsSummary& WithMeteredLinesOfCodeCount(long long value) { SetMeteredLinesOfCodeCount(value); return *this;}
/**
* <p> Total number of recommendations found in the code review. </p>
*/
inline long long GetFindingsCount() const{ return m_findingsCount; }
/**
* <p> Total number of recommendations found in the code review. </p>
*/
inline bool FindingsCountHasBeenSet() const { return m_findingsCountHasBeenSet; }
/**
* <p> Total number of recommendations found in the code review. </p>
*/
inline void SetFindingsCount(long long value) { m_findingsCountHasBeenSet = true; m_findingsCount = value; }
/**
* <p> Total number of recommendations found in the code review. </p>
*/
inline MetricsSummary& WithFindingsCount(long long value) { SetFindingsCount(value); return *this;}
private:
long long m_meteredLinesOfCodeCount;
bool m_meteredLinesOfCodeCountHasBeenSet;
long long m_findingsCount;
bool m_findingsCountHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,33 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeGuruReviewer
{
namespace Model
{
enum class ProviderType
{
NOT_SET,
CodeCommit,
GitHub,
Bitbucket,
GitHubEnterpriseServer
};
namespace ProviderTypeMapper
{
AWS_CODEGURUREVIEWER_API ProviderType GetProviderTypeForName(const Aws::String& name);
AWS_CODEGURUREVIEWER_API Aws::String GetNameForProviderType(ProviderType value);
} // namespace ProviderTypeMapper
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,205 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/codeguru-reviewer/CodeGuruReviewerRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codeguru-reviewer/model/Reaction.h>
#include <utility>
namespace Aws
{
namespace CodeGuruReviewer
{
namespace Model
{
/**
*/
class AWS_CODEGURUREVIEWER_API PutRecommendationFeedbackRequest : public CodeGuruReviewerRequest
{
public:
PutRecommendationFeedbackRequest();
// 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 "PutRecommendationFeedback"; }
Aws::String SerializePayload() const override;
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline const Aws::String& GetCodeReviewArn() const{ return m_codeReviewArn; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline bool CodeReviewArnHasBeenSet() const { return m_codeReviewArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(const Aws::String& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(Aws::String&& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(const char* value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline PutRecommendationFeedbackRequest& WithCodeReviewArn(const Aws::String& value) { SetCodeReviewArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline PutRecommendationFeedbackRequest& WithCodeReviewArn(Aws::String&& value) { SetCodeReviewArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline PutRecommendationFeedbackRequest& WithCodeReviewArn(const char* value) { SetCodeReviewArn(value); return *this;}
/**
* <p> The recommendation ID that can be used to track the provided recommendations
* and then to collect the feedback. </p>
*/
inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; }
/**
* <p> The recommendation ID that can be used to track the provided recommendations
* and then to collect the feedback. </p>
*/
inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
/**
* <p> The recommendation ID that can be used to track the provided recommendations
* and then to collect the feedback. </p>
*/
inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; }
/**
* <p> The recommendation ID that can be used to track the provided recommendations
* and then to collect the feedback. </p>
*/
inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); }
/**
* <p> The recommendation ID that can be used to track the provided recommendations
* and then to collect the feedback. </p>
*/
inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); }
/**
* <p> The recommendation ID that can be used to track the provided recommendations
* and then to collect the feedback. </p>
*/
inline PutRecommendationFeedbackRequest& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;}
/**
* <p> The recommendation ID that can be used to track the provided recommendations
* and then to collect the feedback. </p>
*/
inline PutRecommendationFeedbackRequest& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;}
/**
* <p> The recommendation ID that can be used to track the provided recommendations
* and then to collect the feedback. </p>
*/
inline PutRecommendationFeedbackRequest& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;}
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. If you
* send an empty list it clears all your feedback. </p>
*/
inline const Aws::Vector<Reaction>& GetReactions() const{ return m_reactions; }
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. If you
* send an empty list it clears all your feedback. </p>
*/
inline bool ReactionsHasBeenSet() const { return m_reactionsHasBeenSet; }
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. If you
* send an empty list it clears all your feedback. </p>
*/
inline void SetReactions(const Aws::Vector<Reaction>& value) { m_reactionsHasBeenSet = true; m_reactions = value; }
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. If you
* send an empty list it clears all your feedback. </p>
*/
inline void SetReactions(Aws::Vector<Reaction>&& value) { m_reactionsHasBeenSet = true; m_reactions = std::move(value); }
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. If you
* send an empty list it clears all your feedback. </p>
*/
inline PutRecommendationFeedbackRequest& WithReactions(const Aws::Vector<Reaction>& value) { SetReactions(value); return *this;}
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. If you
* send an empty list it clears all your feedback. </p>
*/
inline PutRecommendationFeedbackRequest& WithReactions(Aws::Vector<Reaction>&& value) { SetReactions(std::move(value)); return *this;}
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. If you
* send an empty list it clears all your feedback. </p>
*/
inline PutRecommendationFeedbackRequest& AddReactions(const Reaction& value) { m_reactionsHasBeenSet = true; m_reactions.push_back(value); return *this; }
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. If you
* send an empty list it clears all your feedback. </p>
*/
inline PutRecommendationFeedbackRequest& AddReactions(Reaction&& value) { m_reactionsHasBeenSet = true; m_reactions.push_back(std::move(value)); return *this; }
private:
Aws::String m_codeReviewArn;
bool m_codeReviewArnHasBeenSet;
Aws::String m_recommendationId;
bool m_recommendationIdHasBeenSet;
Aws::Vector<Reaction> m_reactions;
bool m_reactionsHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
class AWS_CODEGURUREVIEWER_API PutRecommendationFeedbackResult
{
public:
PutRecommendationFeedbackResult();
PutRecommendationFeedbackResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
PutRecommendationFeedbackResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeGuruReviewer
{
namespace Model
{
enum class Reaction
{
NOT_SET,
ThumbsUp,
ThumbsDown
};
namespace ReactionMapper
{
AWS_CODEGURUREVIEWER_API Reaction GetReactionForName(const Aws::String& name);
AWS_CODEGURUREVIEWER_API Aws::String GetNameForReaction(Reaction value);
} // namespace ReactionMapper
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,364 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/DateTime.h>
#include <aws/codeguru-reviewer/model/Reaction.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
/**
* <p> Information about the recommendation feedback. </p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RecommendationFeedback">AWS
* API Reference</a></p>
*/
class AWS_CODEGURUREVIEWER_API RecommendationFeedback
{
public:
RecommendationFeedback();
RecommendationFeedback(Aws::Utils::Json::JsonView jsonValue);
RecommendationFeedback& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline const Aws::String& GetCodeReviewArn() const{ return m_codeReviewArn; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline bool CodeReviewArnHasBeenSet() const { return m_codeReviewArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(const Aws::String& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(Aws::String&& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline void SetCodeReviewArn(const char* value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline RecommendationFeedback& WithCodeReviewArn(const Aws::String& value) { SetCodeReviewArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline RecommendationFeedback& WithCodeReviewArn(Aws::String&& value) { SetCodeReviewArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">
* <code>CodeReview</code> </a> object. </p>
*/
inline RecommendationFeedback& WithCodeReviewArn(const char* value) { SetCodeReviewArn(value); return *this;}
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; }
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; }
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); }
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); }
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline RecommendationFeedback& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;}
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline RecommendationFeedback& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;}
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline RecommendationFeedback& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;}
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. You
* can send an empty list to clear off all your feedback. </p>
*/
inline const Aws::Vector<Reaction>& GetReactions() const{ return m_reactions; }
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. You
* can send an empty list to clear off all your feedback. </p>
*/
inline bool ReactionsHasBeenSet() const { return m_reactionsHasBeenSet; }
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. You
* can send an empty list to clear off all your feedback. </p>
*/
inline void SetReactions(const Aws::Vector<Reaction>& value) { m_reactionsHasBeenSet = true; m_reactions = value; }
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. You
* can send an empty list to clear off all your feedback. </p>
*/
inline void SetReactions(Aws::Vector<Reaction>&& value) { m_reactionsHasBeenSet = true; m_reactions = std::move(value); }
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. You
* can send an empty list to clear off all your feedback. </p>
*/
inline RecommendationFeedback& WithReactions(const Aws::Vector<Reaction>& value) { SetReactions(value); return *this;}
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. You
* can send an empty list to clear off all your feedback. </p>
*/
inline RecommendationFeedback& WithReactions(Aws::Vector<Reaction>&& value) { SetReactions(std::move(value)); return *this;}
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. You
* can send an empty list to clear off all your feedback. </p>
*/
inline RecommendationFeedback& AddReactions(const Reaction& value) { m_reactionsHasBeenSet = true; m_reactions.push_back(value); return *this; }
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. You
* can send an empty list to clear off all your feedback. </p>
*/
inline RecommendationFeedback& AddReactions(Reaction&& value) { m_reactionsHasBeenSet = true; m_reactions.push_back(std::move(value)); return *this; }
/**
* <p> The ID of the user that made the API call. </p> <p> The <code>UserId</code>
* is an IAM principal that can be specified as an AWS account ID or an Amazon
* Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline const Aws::String& GetUserId() const{ return m_userId; }
/**
* <p> The ID of the user that made the API call. </p> <p> The <code>UserId</code>
* is an IAM principal that can be specified as an AWS account ID or an Amazon
* Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
/**
* <p> The ID of the user that made the API call. </p> <p> The <code>UserId</code>
* is an IAM principal that can be specified as an AWS account ID or an Amazon
* Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
/**
* <p> The ID of the user that made the API call. </p> <p> The <code>UserId</code>
* is an IAM principal that can be specified as an AWS account ID or an Amazon
* Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
/**
* <p> The ID of the user that made the API call. </p> <p> The <code>UserId</code>
* is an IAM principal that can be specified as an AWS account ID or an Amazon
* Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
/**
* <p> The ID of the user that made the API call. </p> <p> The <code>UserId</code>
* is an IAM principal that can be specified as an AWS account ID or an Amazon
* Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline RecommendationFeedback& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
/**
* <p> The ID of the user that made the API call. </p> <p> The <code>UserId</code>
* is an IAM principal that can be specified as an AWS account ID or an Amazon
* Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline RecommendationFeedback& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
/**
* <p> The ID of the user that made the API call. </p> <p> The <code>UserId</code>
* is an IAM principal that can be specified as an AWS account ID or an Amazon
* Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline RecommendationFeedback& WithUserId(const char* value) { SetUserId(value); return *this;}
/**
* <p> The time at which the feedback was created. </p>
*/
inline const Aws::Utils::DateTime& GetCreatedTimeStamp() const{ return m_createdTimeStamp; }
/**
* <p> The time at which the feedback was created. </p>
*/
inline bool CreatedTimeStampHasBeenSet() const { return m_createdTimeStampHasBeenSet; }
/**
* <p> The time at which the feedback was created. </p>
*/
inline void SetCreatedTimeStamp(const Aws::Utils::DateTime& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = value; }
/**
* <p> The time at which the feedback was created. </p>
*/
inline void SetCreatedTimeStamp(Aws::Utils::DateTime&& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = std::move(value); }
/**
* <p> The time at which the feedback was created. </p>
*/
inline RecommendationFeedback& WithCreatedTimeStamp(const Aws::Utils::DateTime& value) { SetCreatedTimeStamp(value); return *this;}
/**
* <p> The time at which the feedback was created. </p>
*/
inline RecommendationFeedback& WithCreatedTimeStamp(Aws::Utils::DateTime&& value) { SetCreatedTimeStamp(std::move(value)); return *this;}
/**
* <p> The time at which the feedback was last updated. </p>
*/
inline const Aws::Utils::DateTime& GetLastUpdatedTimeStamp() const{ return m_lastUpdatedTimeStamp; }
/**
* <p> The time at which the feedback was last updated. </p>
*/
inline bool LastUpdatedTimeStampHasBeenSet() const { return m_lastUpdatedTimeStampHasBeenSet; }
/**
* <p> The time at which the feedback was last updated. </p>
*/
inline void SetLastUpdatedTimeStamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = value; }
/**
* <p> The time at which the feedback was last updated. </p>
*/
inline void SetLastUpdatedTimeStamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = std::move(value); }
/**
* <p> The time at which the feedback was last updated. </p>
*/
inline RecommendationFeedback& WithLastUpdatedTimeStamp(const Aws::Utils::DateTime& value) { SetLastUpdatedTimeStamp(value); return *this;}
/**
* <p> The time at which the feedback was last updated. </p>
*/
inline RecommendationFeedback& WithLastUpdatedTimeStamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimeStamp(std::move(value)); return *this;}
private:
Aws::String m_codeReviewArn;
bool m_codeReviewArnHasBeenSet;
Aws::String m_recommendationId;
bool m_recommendationIdHasBeenSet;
Aws::Vector<Reaction> m_reactions;
bool m_reactionsHasBeenSet;
Aws::String m_userId;
bool m_userIdHasBeenSet;
Aws::Utils::DateTime m_createdTimeStamp;
bool m_createdTimeStampHasBeenSet;
Aws::Utils::DateTime m_lastUpdatedTimeStamp;
bool m_lastUpdatedTimeStampHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,227 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codeguru-reviewer/model/Reaction.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
/**
* <p> Information about recommendation feedback summaries. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RecommendationFeedbackSummary">AWS
* API Reference</a></p>
*/
class AWS_CODEGURUREVIEWER_API RecommendationFeedbackSummary
{
public:
RecommendationFeedbackSummary();
RecommendationFeedbackSummary(Aws::Utils::Json::JsonView jsonValue);
RecommendationFeedbackSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; }
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; }
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); }
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); }
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline RecommendationFeedbackSummary& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;}
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline RecommendationFeedbackSummary& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;}
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline RecommendationFeedbackSummary& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;}
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. </p>
*/
inline const Aws::Vector<Reaction>& GetReactions() const{ return m_reactions; }
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. </p>
*/
inline bool ReactionsHasBeenSet() const { return m_reactionsHasBeenSet; }
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. </p>
*/
inline void SetReactions(const Aws::Vector<Reaction>& value) { m_reactionsHasBeenSet = true; m_reactions = value; }
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. </p>
*/
inline void SetReactions(Aws::Vector<Reaction>&& value) { m_reactionsHasBeenSet = true; m_reactions = std::move(value); }
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. </p>
*/
inline RecommendationFeedbackSummary& WithReactions(const Aws::Vector<Reaction>& value) { SetReactions(value); return *this;}
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. </p>
*/
inline RecommendationFeedbackSummary& WithReactions(Aws::Vector<Reaction>&& value) { SetReactions(std::move(value)); return *this;}
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. </p>
*/
inline RecommendationFeedbackSummary& AddReactions(const Reaction& value) { m_reactionsHasBeenSet = true; m_reactions.push_back(value); return *this; }
/**
* <p> List for storing reactions. Reactions are utf-8 text code for emojis. </p>
*/
inline RecommendationFeedbackSummary& AddReactions(Reaction&& value) { m_reactionsHasBeenSet = true; m_reactions.push_back(std::move(value)); return *this; }
/**
* <p> The ID of the user that gave the feedback. </p> <p> The <code>UserId</code>
* is an IAM principal that can be specified as an AWS account ID or an Amazon
* Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline const Aws::String& GetUserId() const{ return m_userId; }
/**
* <p> The ID of the user that gave the feedback. </p> <p> The <code>UserId</code>
* is an IAM principal that can be specified as an AWS account ID or an Amazon
* Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
/**
* <p> The ID of the user that gave the feedback. </p> <p> The <code>UserId</code>
* is an IAM principal that can be specified as an AWS account ID or an Amazon
* Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
/**
* <p> The ID of the user that gave the feedback. </p> <p> The <code>UserId</code>
* is an IAM principal that can be specified as an AWS account ID or an Amazon
* Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
/**
* <p> The ID of the user that gave the feedback. </p> <p> The <code>UserId</code>
* is an IAM principal that can be specified as an AWS account ID or an Amazon
* Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
/**
* <p> The ID of the user that gave the feedback. </p> <p> The <code>UserId</code>
* is an IAM principal that can be specified as an AWS account ID or an Amazon
* Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline RecommendationFeedbackSummary& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
/**
* <p> The ID of the user that gave the feedback. </p> <p> The <code>UserId</code>
* is an IAM principal that can be specified as an AWS account ID or an Amazon
* Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline RecommendationFeedbackSummary& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
/**
* <p> The ID of the user that gave the feedback. </p> <p> The <code>UserId</code>
* is an IAM principal that can be specified as an AWS account ID or an Amazon
* Resource Name (ARN). For more information, see <a
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">
* Specifying a Principal</a> in the <i>AWS Identity and Access Management User
* Guide</i>. </p>
*/
inline RecommendationFeedbackSummary& WithUserId(const char* value) { SetUserId(value); return *this;}
private:
Aws::String m_recommendationId;
bool m_recommendationIdHasBeenSet;
Aws::Vector<Reaction> m_reactions;
bool m_reactionsHasBeenSet;
Aws::String m_userId;
bool m_userIdHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,252 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
/**
* <p> Information about recommendations. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RecommendationSummary">AWS
* API Reference</a></p>
*/
class AWS_CODEGURUREVIEWER_API RecommendationSummary
{
public:
RecommendationSummary();
RecommendationSummary(Aws::Utils::Json::JsonView jsonValue);
RecommendationSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Name of the file on which a recommendation is provided.</p>
*/
inline const Aws::String& GetFilePath() const{ return m_filePath; }
/**
* <p>Name of the file on which a recommendation is provided.</p>
*/
inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
/**
* <p>Name of the file on which a recommendation is provided.</p>
*/
inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; }
/**
* <p>Name of the file on which a recommendation is provided.</p>
*/
inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
/**
* <p>Name of the file on which a recommendation is provided.</p>
*/
inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); }
/**
* <p>Name of the file on which a recommendation is provided.</p>
*/
inline RecommendationSummary& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;}
/**
* <p>Name of the file on which a recommendation is provided.</p>
*/
inline RecommendationSummary& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;}
/**
* <p>Name of the file on which a recommendation is provided.</p>
*/
inline RecommendationSummary& WithFilePath(const char* value) { SetFilePath(value); return *this;}
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; }
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; }
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); }
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); }
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline RecommendationSummary& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;}
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline RecommendationSummary& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;}
/**
* <p> The recommendation ID that can be used to track the provided
* recommendations. Later on it can be used to collect the feedback. </p>
*/
inline RecommendationSummary& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;}
/**
* <p> Start line from where the recommendation is applicable in the source commit
* or source branch. </p>
*/
inline int GetStartLine() const{ return m_startLine; }
/**
* <p> Start line from where the recommendation is applicable in the source commit
* or source branch. </p>
*/
inline bool StartLineHasBeenSet() const { return m_startLineHasBeenSet; }
/**
* <p> Start line from where the recommendation is applicable in the source commit
* or source branch. </p>
*/
inline void SetStartLine(int value) { m_startLineHasBeenSet = true; m_startLine = value; }
/**
* <p> Start line from where the recommendation is applicable in the source commit
* or source branch. </p>
*/
inline RecommendationSummary& WithStartLine(int value) { SetStartLine(value); return *this;}
/**
* <p> Last line where the recommendation is applicable in the source commit or
* source branch. For a single line comment the start line and end line values are
* the same. </p>
*/
inline int GetEndLine() const{ return m_endLine; }
/**
* <p> Last line where the recommendation is applicable in the source commit or
* source branch. For a single line comment the start line and end line values are
* the same. </p>
*/
inline bool EndLineHasBeenSet() const { return m_endLineHasBeenSet; }
/**
* <p> Last line where the recommendation is applicable in the source commit or
* source branch. For a single line comment the start line and end line values are
* the same. </p>
*/
inline void SetEndLine(int value) { m_endLineHasBeenSet = true; m_endLine = value; }
/**
* <p> Last line where the recommendation is applicable in the source commit or
* source branch. For a single line comment the start line and end line values are
* the same. </p>
*/
inline RecommendationSummary& WithEndLine(int value) { SetEndLine(value); return *this;}
/**
* <p> A description of the recommendation generated by CodeGuru Reviewer for the
* lines of code between the start line and the end line. </p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p> A description of the recommendation generated by CodeGuru Reviewer for the
* lines of code between the start line and the end line. </p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p> A description of the recommendation generated by CodeGuru Reviewer for the
* lines of code between the start line and the end line. </p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p> A description of the recommendation generated by CodeGuru Reviewer for the
* lines of code between the start line and the end line. </p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p> A description of the recommendation generated by CodeGuru Reviewer for the
* lines of code between the start line and the end line. </p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p> A description of the recommendation generated by CodeGuru Reviewer for the
* lines of code between the start line and the end line. </p>
*/
inline RecommendationSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p> A description of the recommendation generated by CodeGuru Reviewer for the
* lines of code between the start line and the end line. </p>
*/
inline RecommendationSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p> A description of the recommendation generated by CodeGuru Reviewer for the
* lines of code between the start line and the end line. </p>
*/
inline RecommendationSummary& WithDescription(const char* value) { SetDescription(value); return *this;}
private:
Aws::String m_filePath;
bool m_filePathHasBeenSet;
Aws::String m_recommendationId;
bool m_recommendationIdHasBeenSet;
int m_startLine;
bool m_startLineHasBeenSet;
int m_endLine;
bool m_endLineHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,150 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/codeguru-reviewer/model/CodeCommitRepository.h>
#include <aws/codeguru-reviewer/model/ThirdPartySourceRepository.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
/**
* <p> Information about an associated AWS CodeCommit repository or an associated
* repository that is managed by AWS CodeStar Connections (for example, Bitbucket).
* This <code>Repository</code> object is not used if your source code is in an
* associated GitHub repository. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/Repository">AWS
* API Reference</a></p>
*/
class AWS_CODEGURUREVIEWER_API Repository
{
public:
Repository();
Repository(Aws::Utils::Json::JsonView jsonValue);
Repository& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Information about an AWS CodeCommit repository.</p>
*/
inline const CodeCommitRepository& GetCodeCommit() const{ return m_codeCommit; }
/**
* <p>Information about an AWS CodeCommit repository.</p>
*/
inline bool CodeCommitHasBeenSet() const { return m_codeCommitHasBeenSet; }
/**
* <p>Information about an AWS CodeCommit repository.</p>
*/
inline void SetCodeCommit(const CodeCommitRepository& value) { m_codeCommitHasBeenSet = true; m_codeCommit = value; }
/**
* <p>Information about an AWS CodeCommit repository.</p>
*/
inline void SetCodeCommit(CodeCommitRepository&& value) { m_codeCommitHasBeenSet = true; m_codeCommit = std::move(value); }
/**
* <p>Information about an AWS CodeCommit repository.</p>
*/
inline Repository& WithCodeCommit(const CodeCommitRepository& value) { SetCodeCommit(value); return *this;}
/**
* <p>Information about an AWS CodeCommit repository.</p>
*/
inline Repository& WithCodeCommit(CodeCommitRepository&& value) { SetCodeCommit(std::move(value)); return *this;}
/**
* <p> Information about a Bitbucket repository. </p>
*/
inline const ThirdPartySourceRepository& GetBitbucket() const{ return m_bitbucket; }
/**
* <p> Information about a Bitbucket repository. </p>
*/
inline bool BitbucketHasBeenSet() const { return m_bitbucketHasBeenSet; }
/**
* <p> Information about a Bitbucket repository. </p>
*/
inline void SetBitbucket(const ThirdPartySourceRepository& value) { m_bitbucketHasBeenSet = true; m_bitbucket = value; }
/**
* <p> Information about a Bitbucket repository. </p>
*/
inline void SetBitbucket(ThirdPartySourceRepository&& value) { m_bitbucketHasBeenSet = true; m_bitbucket = std::move(value); }
/**
* <p> Information about a Bitbucket repository. </p>
*/
inline Repository& WithBitbucket(const ThirdPartySourceRepository& value) { SetBitbucket(value); return *this;}
/**
* <p> Information about a Bitbucket repository. </p>
*/
inline Repository& WithBitbucket(ThirdPartySourceRepository&& value) { SetBitbucket(std::move(value)); return *this;}
/**
* <p> Information about a GitHub Enterprise Server repository. </p>
*/
inline const ThirdPartySourceRepository& GetGitHubEnterpriseServer() const{ return m_gitHubEnterpriseServer; }
/**
* <p> Information about a GitHub Enterprise Server repository. </p>
*/
inline bool GitHubEnterpriseServerHasBeenSet() const { return m_gitHubEnterpriseServerHasBeenSet; }
/**
* <p> Information about a GitHub Enterprise Server repository. </p>
*/
inline void SetGitHubEnterpriseServer(const ThirdPartySourceRepository& value) { m_gitHubEnterpriseServerHasBeenSet = true; m_gitHubEnterpriseServer = value; }
/**
* <p> Information about a GitHub Enterprise Server repository. </p>
*/
inline void SetGitHubEnterpriseServer(ThirdPartySourceRepository&& value) { m_gitHubEnterpriseServerHasBeenSet = true; m_gitHubEnterpriseServer = std::move(value); }
/**
* <p> Information about a GitHub Enterprise Server repository. </p>
*/
inline Repository& WithGitHubEnterpriseServer(const ThirdPartySourceRepository& value) { SetGitHubEnterpriseServer(value); return *this;}
/**
* <p> Information about a GitHub Enterprise Server repository. </p>
*/
inline Repository& WithGitHubEnterpriseServer(ThirdPartySourceRepository&& value) { SetGitHubEnterpriseServer(std::move(value)); return *this;}
private:
CodeCommitRepository m_codeCommit;
bool m_codeCommitHasBeenSet;
ThirdPartySourceRepository m_bitbucket;
bool m_bitbucketHasBeenSet;
ThirdPartySourceRepository m_gitHubEnterpriseServer;
bool m_gitHubEnterpriseServerHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,604 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codeguru-reviewer/model/ProviderType.h>
#include <aws/codeguru-reviewer/model/RepositoryAssociationState.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
/**
* <p>Information about a repository association. The <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_DescribeRepositoryAssociation.html">
* <code>DescribeRepositoryAssociation</code> </a> operation returns a
* <code>RepositoryAssociation</code> object.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RepositoryAssociation">AWS
* API Reference</a></p>
*/
class AWS_CODEGURUREVIEWER_API RepositoryAssociation
{
public:
RepositoryAssociation();
RepositoryAssociation(Aws::Utils::Json::JsonView jsonValue);
RepositoryAssociation& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the repository association.</p>
*/
inline const Aws::String& GetAssociationId() const{ return m_associationId; }
/**
* <p>The ID of the repository association.</p>
*/
inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
/**
* <p>The ID of the repository association.</p>
*/
inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
/**
* <p>The ID of the repository association.</p>
*/
inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
/**
* <p>The ID of the repository association.</p>
*/
inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
/**
* <p>The ID of the repository association.</p>
*/
inline RepositoryAssociation& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
/**
* <p>The ID of the repository association.</p>
*/
inline RepositoryAssociation& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
/**
* <p>The ID of the repository association.</p>
*/
inline RepositoryAssociation& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) identifying the repository association.</p>
*/
inline const Aws::String& GetAssociationArn() const{ return m_associationArn; }
/**
* <p>The Amazon Resource Name (ARN) identifying the repository association.</p>
*/
inline bool AssociationArnHasBeenSet() const { return m_associationArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) identifying the repository association.</p>
*/
inline void SetAssociationArn(const Aws::String& value) { m_associationArnHasBeenSet = true; m_associationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) identifying the repository association.</p>
*/
inline void SetAssociationArn(Aws::String&& value) { m_associationArnHasBeenSet = true; m_associationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) identifying the repository association.</p>
*/
inline void SetAssociationArn(const char* value) { m_associationArnHasBeenSet = true; m_associationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) identifying the repository association.</p>
*/
inline RepositoryAssociation& WithAssociationArn(const Aws::String& value) { SetAssociationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) identifying the repository association.</p>
*/
inline RepositoryAssociation& WithAssociationArn(Aws::String&& value) { SetAssociationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) identifying the repository association.</p>
*/
inline RepositoryAssociation& WithAssociationArn(const char* value) { SetAssociationArn(value); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; }
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; }
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); }
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); }
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline RepositoryAssociation& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline RepositoryAssociation& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline RepositoryAssociation& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;}
/**
* <p>The name of the repository.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the repository.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the repository.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the repository.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the repository.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the repository.</p>
*/
inline RepositoryAssociation& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the repository.</p>
*/
inline RepositoryAssociation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the repository.</p>
*/
inline RepositoryAssociation& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline const Aws::String& GetOwner() const{ return m_owner; }
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline RepositoryAssociation& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline RepositoryAssociation& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline RepositoryAssociation& WithOwner(const char* value) { SetOwner(value); return *this;}
/**
* <p>The provider type of the repository association.</p>
*/
inline const ProviderType& GetProviderType() const{ return m_providerType; }
/**
* <p>The provider type of the repository association.</p>
*/
inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
/**
* <p>The provider type of the repository association.</p>
*/
inline void SetProviderType(const ProviderType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
/**
* <p>The provider type of the repository association.</p>
*/
inline void SetProviderType(ProviderType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); }
/**
* <p>The provider type of the repository association.</p>
*/
inline RepositoryAssociation& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;}
/**
* <p>The provider type of the repository association.</p>
*/
inline RepositoryAssociation& WithProviderType(ProviderType&& value) { SetProviderType(std::move(value)); return *this;}
/**
* <p>The state of the repository association.</p> <p>The valid repository
* association states are:</p> <ul> <li> <p> <b>Associated</b>: The repository
* association is complete. </p> </li> <li> <p> <b>Associating</b>: CodeGuru
* Reviewer is: </p> <ul> <li> <p> Setting up pull request notifications. This is
* required for pull requests to trigger a CodeGuru Reviewer review. </p>
* <p> If your repository <code>ProviderType</code> is <code>GitHub</code> or
* <code>Bitbucket</code>, CodeGuru Reviewer creates webhooks in your repository to
* trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of code
* in your repository cannot be triggered. </p> </li> <li> <p> Setting up
* source code access. This is required for CodeGuru Reviewer to securely clone
* code in your repository. </p> </li> </ul> </li> <li> <p> <b>Failed</b>: The
* repository failed to associate or disassociate. </p> </li> <li> <p>
* <b>Disassociating</b>: CodeGuru Reviewer is removing the repository's pull
* request notifications and source code access. </p> </li> </ul>
*/
inline const RepositoryAssociationState& GetState() const{ return m_state; }
/**
* <p>The state of the repository association.</p> <p>The valid repository
* association states are:</p> <ul> <li> <p> <b>Associated</b>: The repository
* association is complete. </p> </li> <li> <p> <b>Associating</b>: CodeGuru
* Reviewer is: </p> <ul> <li> <p> Setting up pull request notifications. This is
* required for pull requests to trigger a CodeGuru Reviewer review. </p>
* <p> If your repository <code>ProviderType</code> is <code>GitHub</code> or
* <code>Bitbucket</code>, CodeGuru Reviewer creates webhooks in your repository to
* trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of code
* in your repository cannot be triggered. </p> </li> <li> <p> Setting up
* source code access. This is required for CodeGuru Reviewer to securely clone
* code in your repository. </p> </li> </ul> </li> <li> <p> <b>Failed</b>: The
* repository failed to associate or disassociate. </p> </li> <li> <p>
* <b>Disassociating</b>: CodeGuru Reviewer is removing the repository's pull
* request notifications and source code access. </p> </li> </ul>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The state of the repository association.</p> <p>The valid repository
* association states are:</p> <ul> <li> <p> <b>Associated</b>: The repository
* association is complete. </p> </li> <li> <p> <b>Associating</b>: CodeGuru
* Reviewer is: </p> <ul> <li> <p> Setting up pull request notifications. This is
* required for pull requests to trigger a CodeGuru Reviewer review. </p>
* <p> If your repository <code>ProviderType</code> is <code>GitHub</code> or
* <code>Bitbucket</code>, CodeGuru Reviewer creates webhooks in your repository to
* trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of code
* in your repository cannot be triggered. </p> </li> <li> <p> Setting up
* source code access. This is required for CodeGuru Reviewer to securely clone
* code in your repository. </p> </li> </ul> </li> <li> <p> <b>Failed</b>: The
* repository failed to associate or disassociate. </p> </li> <li> <p>
* <b>Disassociating</b>: CodeGuru Reviewer is removing the repository's pull
* request notifications and source code access. </p> </li> </ul>
*/
inline void SetState(const RepositoryAssociationState& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The state of the repository association.</p> <p>The valid repository
* association states are:</p> <ul> <li> <p> <b>Associated</b>: The repository
* association is complete. </p> </li> <li> <p> <b>Associating</b>: CodeGuru
* Reviewer is: </p> <ul> <li> <p> Setting up pull request notifications. This is
* required for pull requests to trigger a CodeGuru Reviewer review. </p>
* <p> If your repository <code>ProviderType</code> is <code>GitHub</code> or
* <code>Bitbucket</code>, CodeGuru Reviewer creates webhooks in your repository to
* trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of code
* in your repository cannot be triggered. </p> </li> <li> <p> Setting up
* source code access. This is required for CodeGuru Reviewer to securely clone
* code in your repository. </p> </li> </ul> </li> <li> <p> <b>Failed</b>: The
* repository failed to associate or disassociate. </p> </li> <li> <p>
* <b>Disassociating</b>: CodeGuru Reviewer is removing the repository's pull
* request notifications and source code access. </p> </li> </ul>
*/
inline void SetState(RepositoryAssociationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The state of the repository association.</p> <p>The valid repository
* association states are:</p> <ul> <li> <p> <b>Associated</b>: The repository
* association is complete. </p> </li> <li> <p> <b>Associating</b>: CodeGuru
* Reviewer is: </p> <ul> <li> <p> Setting up pull request notifications. This is
* required for pull requests to trigger a CodeGuru Reviewer review. </p>
* <p> If your repository <code>ProviderType</code> is <code>GitHub</code> or
* <code>Bitbucket</code>, CodeGuru Reviewer creates webhooks in your repository to
* trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of code
* in your repository cannot be triggered. </p> </li> <li> <p> Setting up
* source code access. This is required for CodeGuru Reviewer to securely clone
* code in your repository. </p> </li> </ul> </li> <li> <p> <b>Failed</b>: The
* repository failed to associate or disassociate. </p> </li> <li> <p>
* <b>Disassociating</b>: CodeGuru Reviewer is removing the repository's pull
* request notifications and source code access. </p> </li> </ul>
*/
inline RepositoryAssociation& WithState(const RepositoryAssociationState& value) { SetState(value); return *this;}
/**
* <p>The state of the repository association.</p> <p>The valid repository
* association states are:</p> <ul> <li> <p> <b>Associated</b>: The repository
* association is complete. </p> </li> <li> <p> <b>Associating</b>: CodeGuru
* Reviewer is: </p> <ul> <li> <p> Setting up pull request notifications. This is
* required for pull requests to trigger a CodeGuru Reviewer review. </p>
* <p> If your repository <code>ProviderType</code> is <code>GitHub</code> or
* <code>Bitbucket</code>, CodeGuru Reviewer creates webhooks in your repository to
* trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of code
* in your repository cannot be triggered. </p> </li> <li> <p> Setting up
* source code access. This is required for CodeGuru Reviewer to securely clone
* code in your repository. </p> </li> </ul> </li> <li> <p> <b>Failed</b>: The
* repository failed to associate or disassociate. </p> </li> <li> <p>
* <b>Disassociating</b>: CodeGuru Reviewer is removing the repository's pull
* request notifications and source code access. </p> </li> </ul>
*/
inline RepositoryAssociation& WithState(RepositoryAssociationState&& value) { SetState(std::move(value)); return *this;}
/**
* <p>A description of why the repository association is in the current state.</p>
*/
inline const Aws::String& GetStateReason() const{ return m_stateReason; }
/**
* <p>A description of why the repository association is in the current state.</p>
*/
inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
/**
* <p>A description of why the repository association is in the current state.</p>
*/
inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
/**
* <p>A description of why the repository association is in the current state.</p>
*/
inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); }
/**
* <p>A description of why the repository association is in the current state.</p>
*/
inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); }
/**
* <p>A description of why the repository association is in the current state.</p>
*/
inline RepositoryAssociation& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
/**
* <p>A description of why the repository association is in the current state.</p>
*/
inline RepositoryAssociation& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
/**
* <p>A description of why the repository association is in the current state.</p>
*/
inline RepositoryAssociation& WithStateReason(const char* value) { SetStateReason(value); return *this;}
/**
* <p>The time, in milliseconds since the epoch, when the repository association
* was last updated.</p>
*/
inline const Aws::Utils::DateTime& GetLastUpdatedTimeStamp() const{ return m_lastUpdatedTimeStamp; }
/**
* <p>The time, in milliseconds since the epoch, when the repository association
* was last updated.</p>
*/
inline bool LastUpdatedTimeStampHasBeenSet() const { return m_lastUpdatedTimeStampHasBeenSet; }
/**
* <p>The time, in milliseconds since the epoch, when the repository association
* was last updated.</p>
*/
inline void SetLastUpdatedTimeStamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = value; }
/**
* <p>The time, in milliseconds since the epoch, when the repository association
* was last updated.</p>
*/
inline void SetLastUpdatedTimeStamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = std::move(value); }
/**
* <p>The time, in milliseconds since the epoch, when the repository association
* was last updated.</p>
*/
inline RepositoryAssociation& WithLastUpdatedTimeStamp(const Aws::Utils::DateTime& value) { SetLastUpdatedTimeStamp(value); return *this;}
/**
* <p>The time, in milliseconds since the epoch, when the repository association
* was last updated.</p>
*/
inline RepositoryAssociation& WithLastUpdatedTimeStamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimeStamp(std::move(value)); return *this;}
/**
* <p>The time, in milliseconds since the epoch, when the repository association
* was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedTimeStamp() const{ return m_createdTimeStamp; }
/**
* <p>The time, in milliseconds since the epoch, when the repository association
* was created.</p>
*/
inline bool CreatedTimeStampHasBeenSet() const { return m_createdTimeStampHasBeenSet; }
/**
* <p>The time, in milliseconds since the epoch, when the repository association
* was created.</p>
*/
inline void SetCreatedTimeStamp(const Aws::Utils::DateTime& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = value; }
/**
* <p>The time, in milliseconds since the epoch, when the repository association
* was created.</p>
*/
inline void SetCreatedTimeStamp(Aws::Utils::DateTime&& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = std::move(value); }
/**
* <p>The time, in milliseconds since the epoch, when the repository association
* was created.</p>
*/
inline RepositoryAssociation& WithCreatedTimeStamp(const Aws::Utils::DateTime& value) { SetCreatedTimeStamp(value); return *this;}
/**
* <p>The time, in milliseconds since the epoch, when the repository association
* was created.</p>
*/
inline RepositoryAssociation& WithCreatedTimeStamp(Aws::Utils::DateTime&& value) { SetCreatedTimeStamp(std::move(value)); return *this;}
private:
Aws::String m_associationId;
bool m_associationIdHasBeenSet;
Aws::String m_associationArn;
bool m_associationArnHasBeenSet;
Aws::String m_connectionArn;
bool m_connectionArnHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_owner;
bool m_ownerHasBeenSet;
ProviderType m_providerType;
bool m_providerTypeHasBeenSet;
RepositoryAssociationState m_state;
bool m_stateHasBeenSet;
Aws::String m_stateReason;
bool m_stateReasonHasBeenSet;
Aws::Utils::DateTime m_lastUpdatedTimeStamp;
bool m_lastUpdatedTimeStampHasBeenSet;
Aws::Utils::DateTime m_createdTimeStamp;
bool m_createdTimeStampHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,33 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeGuruReviewer
{
namespace Model
{
enum class RepositoryAssociationState
{
NOT_SET,
Associated,
Associating,
Failed,
Disassociating
};
namespace RepositoryAssociationStateMapper
{
AWS_CODEGURUREVIEWER_API RepositoryAssociationState GetRepositoryAssociationStateForName(const Aws::String& name);
AWS_CODEGURUREVIEWER_API Aws::String GetNameForRepositoryAssociationState(RepositoryAssociationState value);
} // namespace RepositoryAssociationStateMapper
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,536 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/codeguru-reviewer/model/ProviderType.h>
#include <aws/codeguru-reviewer/model/RepositoryAssociationState.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
/**
* <p>Summary information about a repository association. The <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html">
* <code>ListRepositoryAssociations</code> </a> operation returns a list of
* <code>RepositoryAssociationSummary</code> objects.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RepositoryAssociationSummary">AWS
* API Reference</a></p>
*/
class AWS_CODEGURUREVIEWER_API RepositoryAssociationSummary
{
public:
RepositoryAssociationSummary();
RepositoryAssociationSummary(Aws::Utils::Json::JsonView jsonValue);
RepositoryAssociationSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. </p>
*/
inline const Aws::String& GetAssociationArn() const{ return m_associationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. </p>
*/
inline bool AssociationArnHasBeenSet() const { return m_associationArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. </p>
*/
inline void SetAssociationArn(const Aws::String& value) { m_associationArnHasBeenSet = true; m_associationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. </p>
*/
inline void SetAssociationArn(Aws::String&& value) { m_associationArnHasBeenSet = true; m_associationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. </p>
*/
inline void SetAssociationArn(const char* value) { m_associationArnHasBeenSet = true; m_associationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. </p>
*/
inline RepositoryAssociationSummary& WithAssociationArn(const Aws::String& value) { SetAssociationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. </p>
*/
inline RepositoryAssociationSummary& WithAssociationArn(Aws::String&& value) { SetAssociationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">
* <code>RepositoryAssociation</code> </a> object. </p>
*/
inline RepositoryAssociationSummary& WithAssociationArn(const char* value) { SetAssociationArn(value); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; }
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; }
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); }
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); }
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline RepositoryAssociationSummary& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline RepositoryAssociationSummary& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline RepositoryAssociationSummary& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;}
/**
* <p>The time, in milliseconds since the epoch, since the repository association
* was last updated. </p>
*/
inline const Aws::Utils::DateTime& GetLastUpdatedTimeStamp() const{ return m_lastUpdatedTimeStamp; }
/**
* <p>The time, in milliseconds since the epoch, since the repository association
* was last updated. </p>
*/
inline bool LastUpdatedTimeStampHasBeenSet() const { return m_lastUpdatedTimeStampHasBeenSet; }
/**
* <p>The time, in milliseconds since the epoch, since the repository association
* was last updated. </p>
*/
inline void SetLastUpdatedTimeStamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = value; }
/**
* <p>The time, in milliseconds since the epoch, since the repository association
* was last updated. </p>
*/
inline void SetLastUpdatedTimeStamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = std::move(value); }
/**
* <p>The time, in milliseconds since the epoch, since the repository association
* was last updated. </p>
*/
inline RepositoryAssociationSummary& WithLastUpdatedTimeStamp(const Aws::Utils::DateTime& value) { SetLastUpdatedTimeStamp(value); return *this;}
/**
* <p>The time, in milliseconds since the epoch, since the repository association
* was last updated. </p>
*/
inline RepositoryAssociationSummary& WithLastUpdatedTimeStamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimeStamp(std::move(value)); return *this;}
/**
* <p> The repository association ID. </p>
*/
inline const Aws::String& GetAssociationId() const{ return m_associationId; }
/**
* <p> The repository association ID. </p>
*/
inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
/**
* <p> The repository association ID. </p>
*/
inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
/**
* <p> The repository association ID. </p>
*/
inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
/**
* <p> The repository association ID. </p>
*/
inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
/**
* <p> The repository association ID. </p>
*/
inline RepositoryAssociationSummary& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
/**
* <p> The repository association ID. </p>
*/
inline RepositoryAssociationSummary& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
/**
* <p> The repository association ID. </p>
*/
inline RepositoryAssociationSummary& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
/**
* <p>The name of the repository association.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the repository association.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the repository association.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the repository association.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the repository association.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the repository association.</p>
*/
inline RepositoryAssociationSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the repository association.</p>
*/
inline RepositoryAssociationSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the repository association.</p>
*/
inline RepositoryAssociationSummary& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline const Aws::String& GetOwner() const{ return m_owner; }
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline RepositoryAssociationSummary& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline RepositoryAssociationSummary& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
/**
* <p>The owner of the repository. For an AWS CodeCommit repository, this is the
* AWS account ID of the account that owns the repository. For a GitHub or
* Bitbucket repository, this is the username for the account that owns the
* repository.</p>
*/
inline RepositoryAssociationSummary& WithOwner(const char* value) { SetOwner(value); return *this;}
/**
* <p>The provider type of the repository association.</p>
*/
inline const ProviderType& GetProviderType() const{ return m_providerType; }
/**
* <p>The provider type of the repository association.</p>
*/
inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
/**
* <p>The provider type of the repository association.</p>
*/
inline void SetProviderType(const ProviderType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
/**
* <p>The provider type of the repository association.</p>
*/
inline void SetProviderType(ProviderType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); }
/**
* <p>The provider type of the repository association.</p>
*/
inline RepositoryAssociationSummary& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;}
/**
* <p>The provider type of the repository association.</p>
*/
inline RepositoryAssociationSummary& WithProviderType(ProviderType&& value) { SetProviderType(std::move(value)); return *this;}
/**
* <p>The state of the repository association.</p> <p>The valid repository
* association states are:</p> <ul> <li> <p> <b>Associated</b>: The repository
* association is complete. </p> </li> <li> <p> <b>Associating</b>: CodeGuru
* Reviewer is: </p> <ul> <li> <p> Setting up pull request notifications. This is
* required for pull requests to trigger a CodeGuru Reviewer review. </p>
* <p> If your repository <code>ProviderType</code> is <code>GitHub</code> or
* <code>Bitbucket</code>, CodeGuru Reviewer creates webhooks in your repository to
* trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of code
* in your repository cannot be triggered. </p> </li> <li> <p> Setting up
* source code access. This is required for CodeGuru Reviewer to securely clone
* code in your repository. </p> </li> </ul> </li> <li> <p> <b>Failed</b>: The
* repository failed to associate or disassociate. </p> </li> <li> <p>
* <b>Disassociating</b>: CodeGuru Reviewer is removing the repository's pull
* request notifications and source code access. </p> </li> </ul>
*/
inline const RepositoryAssociationState& GetState() const{ return m_state; }
/**
* <p>The state of the repository association.</p> <p>The valid repository
* association states are:</p> <ul> <li> <p> <b>Associated</b>: The repository
* association is complete. </p> </li> <li> <p> <b>Associating</b>: CodeGuru
* Reviewer is: </p> <ul> <li> <p> Setting up pull request notifications. This is
* required for pull requests to trigger a CodeGuru Reviewer review. </p>
* <p> If your repository <code>ProviderType</code> is <code>GitHub</code> or
* <code>Bitbucket</code>, CodeGuru Reviewer creates webhooks in your repository to
* trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of code
* in your repository cannot be triggered. </p> </li> <li> <p> Setting up
* source code access. This is required for CodeGuru Reviewer to securely clone
* code in your repository. </p> </li> </ul> </li> <li> <p> <b>Failed</b>: The
* repository failed to associate or disassociate. </p> </li> <li> <p>
* <b>Disassociating</b>: CodeGuru Reviewer is removing the repository's pull
* request notifications and source code access. </p> </li> </ul>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The state of the repository association.</p> <p>The valid repository
* association states are:</p> <ul> <li> <p> <b>Associated</b>: The repository
* association is complete. </p> </li> <li> <p> <b>Associating</b>: CodeGuru
* Reviewer is: </p> <ul> <li> <p> Setting up pull request notifications. This is
* required for pull requests to trigger a CodeGuru Reviewer review. </p>
* <p> If your repository <code>ProviderType</code> is <code>GitHub</code> or
* <code>Bitbucket</code>, CodeGuru Reviewer creates webhooks in your repository to
* trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of code
* in your repository cannot be triggered. </p> </li> <li> <p> Setting up
* source code access. This is required for CodeGuru Reviewer to securely clone
* code in your repository. </p> </li> </ul> </li> <li> <p> <b>Failed</b>: The
* repository failed to associate or disassociate. </p> </li> <li> <p>
* <b>Disassociating</b>: CodeGuru Reviewer is removing the repository's pull
* request notifications and source code access. </p> </li> </ul>
*/
inline void SetState(const RepositoryAssociationState& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The state of the repository association.</p> <p>The valid repository
* association states are:</p> <ul> <li> <p> <b>Associated</b>: The repository
* association is complete. </p> </li> <li> <p> <b>Associating</b>: CodeGuru
* Reviewer is: </p> <ul> <li> <p> Setting up pull request notifications. This is
* required for pull requests to trigger a CodeGuru Reviewer review. </p>
* <p> If your repository <code>ProviderType</code> is <code>GitHub</code> or
* <code>Bitbucket</code>, CodeGuru Reviewer creates webhooks in your repository to
* trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of code
* in your repository cannot be triggered. </p> </li> <li> <p> Setting up
* source code access. This is required for CodeGuru Reviewer to securely clone
* code in your repository. </p> </li> </ul> </li> <li> <p> <b>Failed</b>: The
* repository failed to associate or disassociate. </p> </li> <li> <p>
* <b>Disassociating</b>: CodeGuru Reviewer is removing the repository's pull
* request notifications and source code access. </p> </li> </ul>
*/
inline void SetState(RepositoryAssociationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The state of the repository association.</p> <p>The valid repository
* association states are:</p> <ul> <li> <p> <b>Associated</b>: The repository
* association is complete. </p> </li> <li> <p> <b>Associating</b>: CodeGuru
* Reviewer is: </p> <ul> <li> <p> Setting up pull request notifications. This is
* required for pull requests to trigger a CodeGuru Reviewer review. </p>
* <p> If your repository <code>ProviderType</code> is <code>GitHub</code> or
* <code>Bitbucket</code>, CodeGuru Reviewer creates webhooks in your repository to
* trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of code
* in your repository cannot be triggered. </p> </li> <li> <p> Setting up
* source code access. This is required for CodeGuru Reviewer to securely clone
* code in your repository. </p> </li> </ul> </li> <li> <p> <b>Failed</b>: The
* repository failed to associate or disassociate. </p> </li> <li> <p>
* <b>Disassociating</b>: CodeGuru Reviewer is removing the repository's pull
* request notifications and source code access. </p> </li> </ul>
*/
inline RepositoryAssociationSummary& WithState(const RepositoryAssociationState& value) { SetState(value); return *this;}
/**
* <p>The state of the repository association.</p> <p>The valid repository
* association states are:</p> <ul> <li> <p> <b>Associated</b>: The repository
* association is complete. </p> </li> <li> <p> <b>Associating</b>: CodeGuru
* Reviewer is: </p> <ul> <li> <p> Setting up pull request notifications. This is
* required for pull requests to trigger a CodeGuru Reviewer review. </p>
* <p> If your repository <code>ProviderType</code> is <code>GitHub</code> or
* <code>Bitbucket</code>, CodeGuru Reviewer creates webhooks in your repository to
* trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of code
* in your repository cannot be triggered. </p> </li> <li> <p> Setting up
* source code access. This is required for CodeGuru Reviewer to securely clone
* code in your repository. </p> </li> </ul> </li> <li> <p> <b>Failed</b>: The
* repository failed to associate or disassociate. </p> </li> <li> <p>
* <b>Disassociating</b>: CodeGuru Reviewer is removing the repository's pull
* request notifications and source code access. </p> </li> </ul>
*/
inline RepositoryAssociationSummary& WithState(RepositoryAssociationState&& value) { SetState(std::move(value)); return *this;}
private:
Aws::String m_associationArn;
bool m_associationArnHasBeenSet;
Aws::String m_connectionArn;
bool m_connectionArnHasBeenSet;
Aws::Utils::DateTime m_lastUpdatedTimeStamp;
bool m_lastUpdatedTimeStampHasBeenSet;
Aws::String m_associationId;
bool m_associationIdHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_owner;
bool m_ownerHasBeenSet;
ProviderType m_providerType;
bool m_providerTypeHasBeenSet;
RepositoryAssociationState m_state;
bool m_stateHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,78 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/codeguru-reviewer/model/CommitDiffSourceCodeType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
/**
* <p> Information about the source code type. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/SourceCodeType">AWS
* API Reference</a></p>
*/
class AWS_CODEGURUREVIEWER_API SourceCodeType
{
public:
SourceCodeType();
SourceCodeType(Aws::Utils::Json::JsonView jsonValue);
SourceCodeType& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The commit diff for the pull request. </p>
*/
inline const CommitDiffSourceCodeType& GetCommitDiff() const{ return m_commitDiff; }
/**
* <p> The commit diff for the pull request. </p>
*/
inline bool CommitDiffHasBeenSet() const { return m_commitDiffHasBeenSet; }
/**
* <p> The commit diff for the pull request. </p>
*/
inline void SetCommitDiff(const CommitDiffSourceCodeType& value) { m_commitDiffHasBeenSet = true; m_commitDiff = value; }
/**
* <p> The commit diff for the pull request. </p>
*/
inline void SetCommitDiff(CommitDiffSourceCodeType&& value) { m_commitDiffHasBeenSet = true; m_commitDiff = std::move(value); }
/**
* <p> The commit diff for the pull request. </p>
*/
inline SourceCodeType& WithCommitDiff(const CommitDiffSourceCodeType& value) { SetCommitDiff(value); return *this;}
/**
* <p> The commit diff for the pull request. </p>
*/
inline SourceCodeType& WithCommitDiff(CommitDiffSourceCodeType&& value) { SetCommitDiff(std::move(value)); return *this;}
private:
CommitDiffSourceCodeType m_commitDiff;
bool m_commitDiffHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,225 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeGuruReviewer
{
namespace Model
{
/**
* <p> Information about a third-party source repository connected to CodeGuru
* Reviewer. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ThirdPartySourceRepository">AWS
* API Reference</a></p>
*/
class AWS_CODEGURUREVIEWER_API ThirdPartySourceRepository
{
public:
ThirdPartySourceRepository();
ThirdPartySourceRepository(Aws::Utils::Json::JsonView jsonValue);
ThirdPartySourceRepository& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The name of the third party source repository. </p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p> The name of the third party source repository. </p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p> The name of the third party source repository. </p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p> The name of the third party source repository. </p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p> The name of the third party source repository. </p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p> The name of the third party source repository. </p>
*/
inline ThirdPartySourceRepository& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p> The name of the third party source repository. </p>
*/
inline ThirdPartySourceRepository& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p> The name of the third party source repository. </p>
*/
inline ThirdPartySourceRepository& WithName(const char* value) { SetName(value); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; }
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; }
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); }
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); }
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline ThirdPartySourceRepository& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline ThirdPartySourceRepository& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
* Its format is
* <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>.
* For more information, see <a
* href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a>
* in the <i>AWS CodeStar Connections API Reference</i>. </p>
*/
inline ThirdPartySourceRepository& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;}
/**
* <p> The owner of the repository. For a GitHub, GitHub Enterprise, or Bitbucket
* repository, this is the username for the account that owns the repository. </p>
*/
inline const Aws::String& GetOwner() const{ return m_owner; }
/**
* <p> The owner of the repository. For a GitHub, GitHub Enterprise, or Bitbucket
* repository, this is the username for the account that owns the repository. </p>
*/
inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
/**
* <p> The owner of the repository. For a GitHub, GitHub Enterprise, or Bitbucket
* repository, this is the username for the account that owns the repository. </p>
*/
inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
/**
* <p> The owner of the repository. For a GitHub, GitHub Enterprise, or Bitbucket
* repository, this is the username for the account that owns the repository. </p>
*/
inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
/**
* <p> The owner of the repository. For a GitHub, GitHub Enterprise, or Bitbucket
* repository, this is the username for the account that owns the repository. </p>
*/
inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
/**
* <p> The owner of the repository. For a GitHub, GitHub Enterprise, or Bitbucket
* repository, this is the username for the account that owns the repository. </p>
*/
inline ThirdPartySourceRepository& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
/**
* <p> The owner of the repository. For a GitHub, GitHub Enterprise, or Bitbucket
* repository, this is the username for the account that owns the repository. </p>
*/
inline ThirdPartySourceRepository& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
/**
* <p> The owner of the repository. For a GitHub, GitHub Enterprise, or Bitbucket
* repository, this is the username for the account that owns the repository. </p>
*/
inline ThirdPartySourceRepository& WithOwner(const char* value) { SetOwner(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_connectionArn;
bool m_connectionArnHasBeenSet;
Aws::String m_owner;
bool m_ownerHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws

View File

@@ -0,0 +1,30 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CodeGuruReviewer
{
namespace Model
{
enum class Type
{
NOT_SET,
PullRequest
};
namespace TypeMapper
{
AWS_CODEGURUREVIEWER_API Type GetTypeForName(const Aws::String& name);
AWS_CODEGURUREVIEWER_API Aws::String GetNameForType(Type value);
} // namespace TypeMapper
} // namespace Model
} // namespace CodeGuruReviewer
} // namespace Aws