/** * 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 namespace Aws { namespace Backup { namespace Model { /** */ class UpdateReportPlanRequest : public BackupRequest { public: AWS_BACKUP_API UpdateReportPlanRequest(); // 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 "UpdateReportPlan"; } AWS_BACKUP_API Aws::String SerializePayload() const override; /** *

The unique name of the report plan. This name is between 1 and 256 * characters, starting with a letter, and consisting of letters (a-z, A-Z), * numbers (0-9), and underscores (_).

*/ inline const Aws::String& GetReportPlanName() const{ return m_reportPlanName; } /** *

The unique name of the report plan. This name is between 1 and 256 * characters, starting with a letter, and consisting of letters (a-z, A-Z), * numbers (0-9), and underscores (_).

*/ inline bool ReportPlanNameHasBeenSet() const { return m_reportPlanNameHasBeenSet; } /** *

The unique name of the report plan. This name is between 1 and 256 * characters, starting with a letter, and consisting of letters (a-z, A-Z), * numbers (0-9), and underscores (_).

*/ inline void SetReportPlanName(const Aws::String& value) { m_reportPlanNameHasBeenSet = true; m_reportPlanName = value; } /** *

The unique name of the report plan. This name is between 1 and 256 * characters, starting with a letter, and consisting of letters (a-z, A-Z), * numbers (0-9), and underscores (_).

*/ inline void SetReportPlanName(Aws::String&& value) { m_reportPlanNameHasBeenSet = true; m_reportPlanName = std::move(value); } /** *

The unique name of the report plan. This name is between 1 and 256 * characters, starting with a letter, and consisting of letters (a-z, A-Z), * numbers (0-9), and underscores (_).

*/ inline void SetReportPlanName(const char* value) { m_reportPlanNameHasBeenSet = true; m_reportPlanName.assign(value); } /** *

The unique name of the report plan. This name is between 1 and 256 * characters, starting with a letter, and consisting of letters (a-z, A-Z), * numbers (0-9), and underscores (_).

*/ inline UpdateReportPlanRequest& WithReportPlanName(const Aws::String& value) { SetReportPlanName(value); return *this;} /** *

The unique name of the report plan. This name is between 1 and 256 * characters, starting with a letter, and consisting of letters (a-z, A-Z), * numbers (0-9), and underscores (_).

*/ inline UpdateReportPlanRequest& WithReportPlanName(Aws::String&& value) { SetReportPlanName(std::move(value)); return *this;} /** *

The unique name of the report plan. This name is between 1 and 256 * characters, starting with a letter, and consisting of letters (a-z, A-Z), * numbers (0-9), and underscores (_).

*/ inline UpdateReportPlanRequest& WithReportPlanName(const char* value) { SetReportPlanName(value); return *this;} /** *

An optional description of the report plan with a maximum 1,024 * characters.

*/ inline const Aws::String& GetReportPlanDescription() const{ return m_reportPlanDescription; } /** *

An optional description of the report plan with a maximum 1,024 * characters.

*/ inline bool ReportPlanDescriptionHasBeenSet() const { return m_reportPlanDescriptionHasBeenSet; } /** *

An optional description of the report plan with a maximum 1,024 * characters.

*/ inline void SetReportPlanDescription(const Aws::String& value) { m_reportPlanDescriptionHasBeenSet = true; m_reportPlanDescription = value; } /** *

An optional description of the report plan with a maximum 1,024 * characters.

*/ inline void SetReportPlanDescription(Aws::String&& value) { m_reportPlanDescriptionHasBeenSet = true; m_reportPlanDescription = std::move(value); } /** *

An optional description of the report plan with a maximum 1,024 * characters.

*/ inline void SetReportPlanDescription(const char* value) { m_reportPlanDescriptionHasBeenSet = true; m_reportPlanDescription.assign(value); } /** *

An optional description of the report plan with a maximum 1,024 * characters.

*/ inline UpdateReportPlanRequest& WithReportPlanDescription(const Aws::String& value) { SetReportPlanDescription(value); return *this;} /** *

An optional description of the report plan with a maximum 1,024 * characters.

*/ inline UpdateReportPlanRequest& WithReportPlanDescription(Aws::String&& value) { SetReportPlanDescription(std::move(value)); return *this;} /** *

An optional description of the report plan with a maximum 1,024 * characters.

*/ inline UpdateReportPlanRequest& WithReportPlanDescription(const char* value) { SetReportPlanDescription(value); return *this;} /** *

A structure that contains information about where to deliver your reports, * specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your * reports.

*/ inline const ReportDeliveryChannel& GetReportDeliveryChannel() const{ return m_reportDeliveryChannel; } /** *

A structure that contains information about where to deliver your reports, * specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your * reports.

*/ inline bool ReportDeliveryChannelHasBeenSet() const { return m_reportDeliveryChannelHasBeenSet; } /** *

A structure that contains information about where to deliver your reports, * specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your * reports.

*/ inline void SetReportDeliveryChannel(const ReportDeliveryChannel& value) { m_reportDeliveryChannelHasBeenSet = true; m_reportDeliveryChannel = value; } /** *

A structure that contains information about where to deliver your reports, * specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your * reports.

*/ inline void SetReportDeliveryChannel(ReportDeliveryChannel&& value) { m_reportDeliveryChannelHasBeenSet = true; m_reportDeliveryChannel = std::move(value); } /** *

A structure that contains information about where to deliver your reports, * specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your * reports.

*/ inline UpdateReportPlanRequest& WithReportDeliveryChannel(const ReportDeliveryChannel& value) { SetReportDeliveryChannel(value); return *this;} /** *

A structure that contains information about where to deliver your reports, * specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your * reports.

*/ inline UpdateReportPlanRequest& WithReportDeliveryChannel(ReportDeliveryChannel&& value) { SetReportDeliveryChannel(std::move(value)); return *this;} /** *

Identifies the report template for the report. Reports are built using a * report template. The report templates are:

* RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT * | COPY_JOB_REPORT | RESTORE_JOB_REPORT

If the report template is * RESOURCE_COMPLIANCE_REPORT or * CONTROL_COMPLIANCE_REPORT, this API resource also describes the * report coverage by Amazon Web Services Regions and frameworks.

*/ inline const ReportSetting& GetReportSetting() const{ return m_reportSetting; } /** *

Identifies the report template for the report. Reports are built using a * report template. The report templates are:

* RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT * | COPY_JOB_REPORT | RESTORE_JOB_REPORT

If the report template is * RESOURCE_COMPLIANCE_REPORT or * CONTROL_COMPLIANCE_REPORT, this API resource also describes the * report coverage by Amazon Web Services Regions and frameworks.

*/ inline bool ReportSettingHasBeenSet() const { return m_reportSettingHasBeenSet; } /** *

Identifies the report template for the report. Reports are built using a * report template. The report templates are:

* RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT * | COPY_JOB_REPORT | RESTORE_JOB_REPORT

If the report template is * RESOURCE_COMPLIANCE_REPORT or * CONTROL_COMPLIANCE_REPORT, this API resource also describes the * report coverage by Amazon Web Services Regions and frameworks.

*/ inline void SetReportSetting(const ReportSetting& value) { m_reportSettingHasBeenSet = true; m_reportSetting = value; } /** *

Identifies the report template for the report. Reports are built using a * report template. The report templates are:

* RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT * | COPY_JOB_REPORT | RESTORE_JOB_REPORT

If the report template is * RESOURCE_COMPLIANCE_REPORT or * CONTROL_COMPLIANCE_REPORT, this API resource also describes the * report coverage by Amazon Web Services Regions and frameworks.

*/ inline void SetReportSetting(ReportSetting&& value) { m_reportSettingHasBeenSet = true; m_reportSetting = std::move(value); } /** *

Identifies the report template for the report. Reports are built using a * report template. The report templates are:

* RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT * | COPY_JOB_REPORT | RESTORE_JOB_REPORT

If the report template is * RESOURCE_COMPLIANCE_REPORT or * CONTROL_COMPLIANCE_REPORT, this API resource also describes the * report coverage by Amazon Web Services Regions and frameworks.

*/ inline UpdateReportPlanRequest& WithReportSetting(const ReportSetting& value) { SetReportSetting(value); return *this;} /** *

Identifies the report template for the report. Reports are built using a * report template. The report templates are:

* RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT * | COPY_JOB_REPORT | RESTORE_JOB_REPORT

If the report template is * RESOURCE_COMPLIANCE_REPORT or * CONTROL_COMPLIANCE_REPORT, this API resource also describes the * report coverage by Amazon Web Services Regions and frameworks.

*/ inline UpdateReportPlanRequest& WithReportSetting(ReportSetting&& value) { SetReportSetting(std::move(value)); return *this;} /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to UpdateReportPlanInput. Retrying a successful * request with the same idempotency token results in a success message with no * action taken.

*/ inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; } /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to UpdateReportPlanInput. Retrying a successful * request with the same idempotency token results in a success message with no * action taken.

*/ inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; } /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to UpdateReportPlanInput. Retrying a successful * request with the same idempotency token results in a success message with no * action taken.

*/ inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; } /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to UpdateReportPlanInput. Retrying a successful * request with the same idempotency token results in a success message with no * action taken.

*/ inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); } /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to UpdateReportPlanInput. Retrying a successful * request with the same idempotency token results in a success message with no * action taken.

*/ inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); } /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to UpdateReportPlanInput. Retrying a successful * request with the same idempotency token results in a success message with no * action taken.

*/ inline UpdateReportPlanRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;} /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to UpdateReportPlanInput. Retrying a successful * request with the same idempotency token results in a success message with no * action taken.

*/ inline UpdateReportPlanRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;} /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to UpdateReportPlanInput. Retrying a successful * request with the same idempotency token results in a success message with no * action taken.

*/ inline UpdateReportPlanRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;} private: Aws::String m_reportPlanName; bool m_reportPlanNameHasBeenSet = false; Aws::String m_reportPlanDescription; bool m_reportPlanDescriptionHasBeenSet = false; ReportDeliveryChannel m_reportDeliveryChannel; bool m_reportDeliveryChannelHasBeenSet = false; ReportSetting m_reportSetting; bool m_reportSettingHasBeenSet = false; Aws::String m_idempotencyToken; bool m_idempotencyTokenHasBeenSet = false; }; } // namespace Model } // namespace Backup } // namespace Aws