/** * 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 namespace Aws { namespace CodeBuild { namespace Model { /** */ class CreateReportGroupRequest : public CodeBuildRequest { public: AWS_CODEBUILD_API CreateReportGroupRequest(); // 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 "CreateReportGroup"; } AWS_CODEBUILD_API Aws::String SerializePayload() const override; AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the report group.

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

The name of the report group.

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

The name of the report group.

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

The name of the report group.

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

The name of the report group.

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

The name of the report group.

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

The name of the report group.

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

The name of the report group.

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

The type of report group.

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

The type of report group.

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

The type of report group.

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

The type of report group.

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

The type of report group.

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

The type of report group.

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

A ReportExportConfig object that contains information about * where the report group test results are exported.

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

A ReportExportConfig object that contains information about * where the report group test results are exported.

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

A ReportExportConfig object that contains information about * where the report group test results are exported.

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

A ReportExportConfig object that contains information about * where the report group test results are exported.

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

A ReportExportConfig object that contains information about * where the report group test results are exported.

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

A ReportExportConfig object that contains information about * where the report group test results are exported.

*/ inline CreateReportGroupRequest& WithExportConfig(ReportExportConfig&& value) { SetExportConfig(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 CreateReportGroupRequest& 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 CreateReportGroupRequest& 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 CreateReportGroupRequest& 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 CreateReportGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; ReportType m_type; bool m_typeHasBeenSet = false; ReportExportConfig m_exportConfig; bool m_exportConfigHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws