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

Information about the summary of the code review.

See Also:

* AWS * API Reference

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

The name of the code review.

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

The name of the code review.

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

The name of the code review.

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

The name of the code review.

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

The name of the code review.

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

The name of the code review.

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

The name of the code review.

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

The name of the code review.

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

The Amazon Resource Name (ARN) of the CodeReview * object.

*/ inline const Aws::String& GetCodeReviewArn() const{ return m_codeReviewArn; } /** *

The Amazon Resource Name (ARN) of the CodeReview * object.

*/ inline bool CodeReviewArnHasBeenSet() const { return m_codeReviewArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the CodeReview * object.

*/ inline void SetCodeReviewArn(const Aws::String& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = value; } /** *

The Amazon Resource Name (ARN) of the CodeReview * object.

*/ inline void SetCodeReviewArn(Aws::String&& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the CodeReview * object.

*/ inline void SetCodeReviewArn(const char* value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the CodeReview * object.

*/ inline CodeReviewSummary& WithCodeReviewArn(const Aws::String& value) { SetCodeReviewArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the CodeReview * object.

*/ inline CodeReviewSummary& WithCodeReviewArn(Aws::String&& value) { SetCodeReviewArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the CodeReview * object.

*/ inline CodeReviewSummary& WithCodeReviewArn(const char* value) { SetCodeReviewArn(value); return *this;} /** *

The name of the repository.

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

The name of the repository.

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

The name of the repository.

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

The name of the repository.

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

The name of the repository.

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

The name of the repository.

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

The name of the repository.

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

The name of the repository.

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

The owner of the repository. For an Amazon Web Services CodeCommit * repository, this is the Amazon Web Services account ID of the account that owns * the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, * this is the username for the account that owns the repository. For an S3 * repository, it can be the username or Amazon Web Services account ID.

*/ inline const Aws::String& GetOwner() const{ return m_owner; } /** *

The owner of the repository. For an Amazon Web Services CodeCommit * repository, this is the Amazon Web Services account ID of the account that owns * the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, * this is the username for the account that owns the repository. For an S3 * repository, it can be the username or Amazon Web Services account ID.

*/ inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; } /** *

The owner of the repository. For an Amazon Web Services CodeCommit * repository, this is the Amazon Web Services account ID of the account that owns * the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, * this is the username for the account that owns the repository. For an S3 * repository, it can be the username or Amazon Web Services account ID.

*/ inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; } /** *

The owner of the repository. For an Amazon Web Services CodeCommit * repository, this is the Amazon Web Services account ID of the account that owns * the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, * this is the username for the account that owns the repository. For an S3 * repository, it can be the username or Amazon Web Services account ID.

*/ inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); } /** *

The owner of the repository. For an Amazon Web Services CodeCommit * repository, this is the Amazon Web Services account ID of the account that owns * the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, * this is the username for the account that owns the repository. For an S3 * repository, it can be the username or Amazon Web Services account ID.

*/ inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); } /** *

The owner of the repository. For an Amazon Web Services CodeCommit * repository, this is the Amazon Web Services account ID of the account that owns * the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, * this is the username for the account that owns the repository. For an S3 * repository, it can be the username or Amazon Web Services account ID.

*/ inline CodeReviewSummary& WithOwner(const Aws::String& value) { SetOwner(value); return *this;} /** *

The owner of the repository. For an Amazon Web Services CodeCommit * repository, this is the Amazon Web Services account ID of the account that owns * the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, * this is the username for the account that owns the repository. For an S3 * repository, it can be the username or Amazon Web Services account ID.

*/ inline CodeReviewSummary& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;} /** *

The owner of the repository. For an Amazon Web Services CodeCommit * repository, this is the Amazon Web Services account ID of the account that owns * the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, * this is the username for the account that owns the repository. For an S3 * repository, it can be the username or Amazon Web Services account ID.

*/ inline CodeReviewSummary& WithOwner(const char* value) { SetOwner(value); return *this;} /** *

The provider type of the repository association.

*/ inline const ProviderType& GetProviderType() const{ return m_providerType; } /** *

The provider type of the repository association.

*/ inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; } /** *

The provider type of the repository association.

*/ inline void SetProviderType(const ProviderType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; } /** *

The provider type of the repository association.

*/ inline void SetProviderType(ProviderType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); } /** *

The provider type of the repository association.

*/ inline CodeReviewSummary& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;} /** *

The provider type of the repository association.

*/ inline CodeReviewSummary& WithProviderType(ProviderType&& value) { SetProviderType(std::move(value)); return *this;} /** *

The state of the code review.

The valid code review states are:

*
  • Completed: The code review is complete.

  • *
  • Pending: The code review started and has not completed or * failed.

  • Failed: The code review failed.

    *
  • Deleting: The code review is being deleted.

    *
*/ inline const JobState& GetState() const{ return m_state; } /** *

The state of the code review.

The valid code review states are:

*
  • Completed: The code review is complete.

  • *
  • Pending: The code review started and has not completed or * failed.

  • Failed: The code review failed.

    *
  • Deleting: The code review is being deleted.

    *
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the code review.

The valid code review states are:

*
  • Completed: The code review is complete.

  • *
  • Pending: The code review started and has not completed or * failed.

  • Failed: The code review failed.

    *
  • Deleting: The code review is being deleted.

    *
*/ inline void SetState(const JobState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the code review.

The valid code review states are:

*
  • Completed: The code review is complete.

  • *
  • Pending: The code review started and has not completed or * failed.

  • Failed: The code review failed.

    *
  • Deleting: The code review is being deleted.

    *
*/ inline void SetState(JobState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the code review.

The valid code review states are:

*
  • Completed: The code review is complete.

  • *
  • Pending: The code review started and has not completed or * failed.

  • Failed: The code review failed.

    *
  • Deleting: The code review is being deleted.

    *
*/ inline CodeReviewSummary& WithState(const JobState& value) { SetState(value); return *this;} /** *

The state of the code review.

The valid code review states are:

*
  • Completed: The code review is complete.

  • *
  • Pending: The code review started and has not completed or * failed.

  • Failed: The code review failed.

    *
  • Deleting: The code review is being deleted.

    *
*/ inline CodeReviewSummary& WithState(JobState&& value) { SetState(std::move(value)); return *this;} /** *

The time, in milliseconds since the epoch, when the code review was * created.

*/ inline const Aws::Utils::DateTime& GetCreatedTimeStamp() const{ return m_createdTimeStamp; } /** *

The time, in milliseconds since the epoch, when the code review was * created.

*/ inline bool CreatedTimeStampHasBeenSet() const { return m_createdTimeStampHasBeenSet; } /** *

The time, in milliseconds since the epoch, when the code review was * created.

*/ inline void SetCreatedTimeStamp(const Aws::Utils::DateTime& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = value; } /** *

The time, in milliseconds since the epoch, when the code review was * created.

*/ inline void SetCreatedTimeStamp(Aws::Utils::DateTime&& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = std::move(value); } /** *

The time, in milliseconds since the epoch, when the code review was * created.

*/ inline CodeReviewSummary& WithCreatedTimeStamp(const Aws::Utils::DateTime& value) { SetCreatedTimeStamp(value); return *this;} /** *

The time, in milliseconds since the epoch, when the code review was * created.

*/ inline CodeReviewSummary& WithCreatedTimeStamp(Aws::Utils::DateTime&& value) { SetCreatedTimeStamp(std::move(value)); return *this;} /** *

The time, in milliseconds since the epoch, when the code review was last * updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedTimeStamp() const{ return m_lastUpdatedTimeStamp; } /** *

The time, in milliseconds since the epoch, when the code review was last * updated.

*/ inline bool LastUpdatedTimeStampHasBeenSet() const { return m_lastUpdatedTimeStampHasBeenSet; } /** *

The time, in milliseconds since the epoch, when the code review was last * updated.

*/ inline void SetLastUpdatedTimeStamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = value; } /** *

The time, in milliseconds since the epoch, when the code review was last * updated.

*/ inline void SetLastUpdatedTimeStamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = std::move(value); } /** *

The time, in milliseconds since the epoch, when the code review was last * updated.

*/ inline CodeReviewSummary& WithLastUpdatedTimeStamp(const Aws::Utils::DateTime& value) { SetLastUpdatedTimeStamp(value); return *this;} /** *

The time, in milliseconds since the epoch, when the code review was last * updated.

*/ inline CodeReviewSummary& WithLastUpdatedTimeStamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimeStamp(std::move(value)); return *this;} /** *

The type of the code review.

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

The type of the code review.

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

The type of the code review.

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

The type of the code review.

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

The type of the code review.

*/ inline CodeReviewSummary& WithType(const Type& value) { SetType(value); return *this;} /** *

The type of the code review.

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

The pull request ID for the code review.

*/ inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; } /** *

The pull request ID for the code review.

*/ inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; } /** *

The pull request ID for the code review.

*/ inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; } /** *

The pull request ID for the code review.

*/ inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); } /** *

The pull request ID for the code review.

*/ inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); } /** *

The pull request ID for the code review.

*/ inline CodeReviewSummary& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;} /** *

The pull request ID for the code review.

*/ inline CodeReviewSummary& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;} /** *

The pull request ID for the code review.

*/ inline CodeReviewSummary& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;} /** *

The statistics from the code review.

*/ inline const MetricsSummary& GetMetricsSummary() const{ return m_metricsSummary; } /** *

The statistics from the code review.

*/ inline bool MetricsSummaryHasBeenSet() const { return m_metricsSummaryHasBeenSet; } /** *

The statistics from the code review.

*/ inline void SetMetricsSummary(const MetricsSummary& value) { m_metricsSummaryHasBeenSet = true; m_metricsSummary = value; } /** *

The statistics from the code review.

*/ inline void SetMetricsSummary(MetricsSummary&& value) { m_metricsSummaryHasBeenSet = true; m_metricsSummary = std::move(value); } /** *

The statistics from the code review.

*/ inline CodeReviewSummary& WithMetricsSummary(const MetricsSummary& value) { SetMetricsSummary(value); return *this;} /** *

The statistics from the code review.

*/ inline CodeReviewSummary& WithMetricsSummary(MetricsSummary&& value) { SetMetricsSummary(std::move(value)); return *this;} inline const SourceCodeType& GetSourceCodeType() const{ return m_sourceCodeType; } inline bool SourceCodeTypeHasBeenSet() const { return m_sourceCodeTypeHasBeenSet; } inline void SetSourceCodeType(const SourceCodeType& value) { m_sourceCodeTypeHasBeenSet = true; m_sourceCodeType = value; } inline void SetSourceCodeType(SourceCodeType&& value) { m_sourceCodeTypeHasBeenSet = true; m_sourceCodeType = std::move(value); } inline CodeReviewSummary& WithSourceCodeType(const SourceCodeType& value) { SetSourceCodeType(value); return *this;} inline CodeReviewSummary& WithSourceCodeType(SourceCodeType&& value) { SetSourceCodeType(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_codeReviewArn; bool m_codeReviewArnHasBeenSet = false; Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::String m_owner; bool m_ownerHasBeenSet = false; ProviderType m_providerType; bool m_providerTypeHasBeenSet = false; JobState m_state; bool m_stateHasBeenSet = false; Aws::Utils::DateTime m_createdTimeStamp; bool m_createdTimeStampHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTimeStamp; bool m_lastUpdatedTimeStampHasBeenSet = false; Type m_type; bool m_typeHasBeenSet = false; Aws::String m_pullRequestId; bool m_pullRequestIdHasBeenSet = false; MetricsSummary m_metricsSummary; bool m_metricsSummaryHasBeenSet = false; SourceCodeType m_sourceCodeType; bool m_sourceCodeTypeHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruReviewer } // namespace Aws