/** * 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 CodeBuild { namespace Model { /** *

A series of reports. Each report contains information about the results from * running a series of test cases. You specify the test cases for a report group in * the buildspec for a build project using one or more paths to the test case * files.

See Also:

AWS * API Reference

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

The ARN of the ReportGroup.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN of the ReportGroup.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN of the ReportGroup.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The ARN of the ReportGroup.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The ARN of the ReportGroup.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The ARN of the ReportGroup.

*/ inline ReportGroup& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN of the ReportGroup.

*/ inline ReportGroup& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN of the ReportGroup.

*/ inline ReportGroup& WithArn(const char* value) { SetArn(value); return *this;} /** *

The name of the ReportGroup.

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

The name of the ReportGroup.

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

The name of the ReportGroup.

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

The name of the ReportGroup.

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

The name of the ReportGroup.

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

The name of the ReportGroup.

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

The name of the ReportGroup.

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

The name of the ReportGroup.

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

The type of the ReportGroup. This can be one of the following * values:

CODE_COVERAGE

The report group contains code * coverage reports.

TEST

The report group contains test * reports.

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

The type of the ReportGroup. This can be one of the following * values:

CODE_COVERAGE

The report group contains code * coverage reports.

TEST

The report group contains test * reports.

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

The type of the ReportGroup. This can be one of the following * values:

CODE_COVERAGE

The report group contains code * coverage reports.

TEST

The report group contains test * reports.

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

The type of the ReportGroup. This can be one of the following * values:

CODE_COVERAGE

The report group contains code * coverage reports.

TEST

The report group contains test * reports.

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

The type of the ReportGroup. This can be one of the following * values:

CODE_COVERAGE

The report group contains code * coverage reports.

TEST

The report group contains test * reports.

*/ inline ReportGroup& WithType(const ReportType& value) { SetType(value); return *this;} /** *

The type of the ReportGroup. This can be one of the following * values:

CODE_COVERAGE

The report group contains code * coverage reports.

TEST

The report group contains test * reports.

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

Information about the destination where the raw data of this * ReportGroup is exported.

*/ inline const ReportExportConfig& GetExportConfig() const{ return m_exportConfig; } /** *

Information about the destination where the raw data of this * ReportGroup is exported.

*/ inline bool ExportConfigHasBeenSet() const { return m_exportConfigHasBeenSet; } /** *

Information about the destination where the raw data of this * ReportGroup is exported.

*/ inline void SetExportConfig(const ReportExportConfig& value) { m_exportConfigHasBeenSet = true; m_exportConfig = value; } /** *

Information about the destination where the raw data of this * ReportGroup is exported.

*/ inline void SetExportConfig(ReportExportConfig&& value) { m_exportConfigHasBeenSet = true; m_exportConfig = std::move(value); } /** *

Information about the destination where the raw data of this * ReportGroup is exported.

*/ inline ReportGroup& WithExportConfig(const ReportExportConfig& value) { SetExportConfig(value); return *this;} /** *

Information about the destination where the raw data of this * ReportGroup is exported.

*/ inline ReportGroup& WithExportConfig(ReportExportConfig&& value) { SetExportConfig(std::move(value)); return *this;} /** *

The date and time this ReportGroup was created.

*/ inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; } /** *

The date and time this ReportGroup was created.

*/ inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; } /** *

The date and time this ReportGroup was created.

*/ inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; } /** *

The date and time this ReportGroup was created.

*/ inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); } /** *

The date and time this ReportGroup was created.

*/ inline ReportGroup& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;} /** *

The date and time this ReportGroup was created.

*/ inline ReportGroup& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;} /** *

The date and time this ReportGroup was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; } /** *

The date and time this ReportGroup was last modified.

*/ inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; } /** *

The date and time this ReportGroup was last modified.

*/ inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; } /** *

The date and time this ReportGroup was last modified.

*/ inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); } /** *

The date and time this ReportGroup was last modified.

*/ inline ReportGroup& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;} /** *

The date and time this ReportGroup was last modified.

*/ inline ReportGroup& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;} /** *

A list of tag key and value pairs associated with this report group.

*

These tags are available for use by Amazon Web Services services that support * CodeBuild report group tags.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of tag key and value pairs associated with this report group.

*

These tags are available for use by Amazon Web Services services that support * CodeBuild report group tags.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of tag key and value pairs associated with this report group.

*

These tags are available for use by Amazon Web Services services that support * CodeBuild report group tags.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of tag key and value pairs associated with this report group.

*

These tags are available for use by Amazon Web Services services that support * CodeBuild report group tags.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of tag key and value pairs associated with this report group.

*

These tags are available for use by Amazon Web Services services that support * CodeBuild report group tags.

*/ inline ReportGroup& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of tag key and value pairs associated with this report group.

*

These tags are available for use by Amazon Web Services services that support * CodeBuild report group tags.

*/ inline ReportGroup& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of tag key and value pairs associated with this report group.

*

These tags are available for use by Amazon Web Services services that support * CodeBuild report group tags.

*/ inline ReportGroup& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of tag key and value pairs associated with this report group.

*

These tags are available for use by Amazon Web Services services that support * CodeBuild report group tags.

*/ inline ReportGroup& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The status of the report group. This property is read-only.

This can * be one of the following values:

ACTIVE

The report * group is active.

DELETING

The report group is in the * process of being deleted.

*/ inline const ReportGroupStatusType& GetStatus() const{ return m_status; } /** *

The status of the report group. This property is read-only.

This can * be one of the following values:

ACTIVE

The report * group is active.

DELETING

The report group is in the * process of being deleted.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the report group. This property is read-only.

This can * be one of the following values:

ACTIVE

The report * group is active.

DELETING

The report group is in the * process of being deleted.

*/ inline void SetStatus(const ReportGroupStatusType& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the report group. This property is read-only.

This can * be one of the following values:

ACTIVE

The report * group is active.

DELETING

The report group is in the * process of being deleted.

*/ inline void SetStatus(ReportGroupStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the report group. This property is read-only.

This can * be one of the following values:

ACTIVE

The report * group is active.

DELETING

The report group is in the * process of being deleted.

*/ inline ReportGroup& WithStatus(const ReportGroupStatusType& value) { SetStatus(value); return *this;} /** *

The status of the report group. This property is read-only.

This can * be one of the following values:

ACTIVE

The report * group is active.

DELETING

The report group is in the * process of being deleted.

*/ inline ReportGroup& WithStatus(ReportGroupStatusType&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; ReportType m_type; bool m_typeHasBeenSet = false; ReportExportConfig m_exportConfig; bool m_exportConfigHasBeenSet = false; Aws::Utils::DateTime m_created; bool m_createdHasBeenSet = false; Aws::Utils::DateTime m_lastModified; bool m_lastModifiedHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; ReportGroupStatusType m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws