/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace CodeBuild { namespace Model { /** */ class DeleteReportGroupRequest : public CodeBuildRequest { public: AWS_CODEBUILD_API DeleteReportGroupRequest(); // 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 "DeleteReportGroup"; } AWS_CODEBUILD_API Aws::String SerializePayload() const override; AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ARN of the report group to delete.

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

The ARN of the report group to delete.

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

The ARN of the report group to delete.

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

The ARN of the report group to delete.

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

The ARN of the report group to delete.

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

The ARN of the report group to delete.

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

The ARN of the report group to delete.

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

The ARN of the report group to delete.

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

If true, deletes any reports that belong to a report group * before deleting the report group.

If false, you must delete * any reports in the report group. Use ListReportsForReportGroup * to get the reports in a report group. Use DeleteReport * to delete the reports. If you call DeleteReportGroup for a report * group that contains one or more reports, an exception is thrown.

*/ inline bool GetDeleteReports() const{ return m_deleteReports; } /** *

If true, deletes any reports that belong to a report group * before deleting the report group.

If false, you must delete * any reports in the report group. Use ListReportsForReportGroup * to get the reports in a report group. Use DeleteReport * to delete the reports. If you call DeleteReportGroup for a report * group that contains one or more reports, an exception is thrown.

*/ inline bool DeleteReportsHasBeenSet() const { return m_deleteReportsHasBeenSet; } /** *

If true, deletes any reports that belong to a report group * before deleting the report group.

If false, you must delete * any reports in the report group. Use ListReportsForReportGroup * to get the reports in a report group. Use DeleteReport * to delete the reports. If you call DeleteReportGroup for a report * group that contains one or more reports, an exception is thrown.

*/ inline void SetDeleteReports(bool value) { m_deleteReportsHasBeenSet = true; m_deleteReports = value; } /** *

If true, deletes any reports that belong to a report group * before deleting the report group.

If false, you must delete * any reports in the report group. Use ListReportsForReportGroup * to get the reports in a report group. Use DeleteReport * to delete the reports. If you call DeleteReportGroup for a report * group that contains one or more reports, an exception is thrown.

*/ inline DeleteReportGroupRequest& WithDeleteReports(bool value) { SetDeleteReports(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; bool m_deleteReports; bool m_deleteReportsHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws