/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Backup { namespace Model { /** *

Contains information from your report plan about where to deliver your * reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats * of your reports.

See Also:

AWS * API Reference

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

The unique name of the S3 bucket that receives your reports.

*/ inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; } /** *

The unique name of the S3 bucket that receives your reports.

*/ inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; } /** *

The unique name of the S3 bucket that receives your reports.

*/ inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; } /** *

The unique name of the S3 bucket that receives your reports.

*/ inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::move(value); } /** *

The unique name of the S3 bucket that receives your reports.

*/ inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); } /** *

The unique name of the S3 bucket that receives your reports.

*/ inline ReportDeliveryChannel& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;} /** *

The unique name of the S3 bucket that receives your reports.

*/ inline ReportDeliveryChannel& WithS3BucketName(Aws::String&& value) { SetS3BucketName(std::move(value)); return *this;} /** *

The unique name of the S3 bucket that receives your reports.

*/ inline ReportDeliveryChannel& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;} /** *

The prefix for where Backup Audit Manager delivers your reports to Amazon S3. * The prefix is this part of the following path: * s3://your-bucket-name/prefix/Backup/us-west-2/year/month/day/report-name. * If not specified, there is no prefix.

*/ inline const Aws::String& GetS3KeyPrefix() const{ return m_s3KeyPrefix; } /** *

The prefix for where Backup Audit Manager delivers your reports to Amazon S3. * The prefix is this part of the following path: * s3://your-bucket-name/prefix/Backup/us-west-2/year/month/day/report-name. * If not specified, there is no prefix.

*/ inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; } /** *

The prefix for where Backup Audit Manager delivers your reports to Amazon S3. * The prefix is this part of the following path: * s3://your-bucket-name/prefix/Backup/us-west-2/year/month/day/report-name. * If not specified, there is no prefix.

*/ inline void SetS3KeyPrefix(const Aws::String& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = value; } /** *

The prefix for where Backup Audit Manager delivers your reports to Amazon S3. * The prefix is this part of the following path: * s3://your-bucket-name/prefix/Backup/us-west-2/year/month/day/report-name. * If not specified, there is no prefix.

*/ inline void SetS3KeyPrefix(Aws::String&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = std::move(value); } /** *

The prefix for where Backup Audit Manager delivers your reports to Amazon S3. * The prefix is this part of the following path: * s3://your-bucket-name/prefix/Backup/us-west-2/year/month/day/report-name. * If not specified, there is no prefix.

*/ inline void SetS3KeyPrefix(const char* value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix.assign(value); } /** *

The prefix for where Backup Audit Manager delivers your reports to Amazon S3. * The prefix is this part of the following path: * s3://your-bucket-name/prefix/Backup/us-west-2/year/month/day/report-name. * If not specified, there is no prefix.

*/ inline ReportDeliveryChannel& WithS3KeyPrefix(const Aws::String& value) { SetS3KeyPrefix(value); return *this;} /** *

The prefix for where Backup Audit Manager delivers your reports to Amazon S3. * The prefix is this part of the following path: * s3://your-bucket-name/prefix/Backup/us-west-2/year/month/day/report-name. * If not specified, there is no prefix.

*/ inline ReportDeliveryChannel& WithS3KeyPrefix(Aws::String&& value) { SetS3KeyPrefix(std::move(value)); return *this;} /** *

The prefix for where Backup Audit Manager delivers your reports to Amazon S3. * The prefix is this part of the following path: * s3://your-bucket-name/prefix/Backup/us-west-2/year/month/day/report-name. * If not specified, there is no prefix.

*/ inline ReportDeliveryChannel& WithS3KeyPrefix(const char* value) { SetS3KeyPrefix(value); return *this;} /** *

A list of the format of your reports: CSV, JSON, or * both. If not specified, the default format is CSV.

*/ inline const Aws::Vector& GetFormats() const{ return m_formats; } /** *

A list of the format of your reports: CSV, JSON, or * both. If not specified, the default format is CSV.

*/ inline bool FormatsHasBeenSet() const { return m_formatsHasBeenSet; } /** *

A list of the format of your reports: CSV, JSON, or * both. If not specified, the default format is CSV.

*/ inline void SetFormats(const Aws::Vector& value) { m_formatsHasBeenSet = true; m_formats = value; } /** *

A list of the format of your reports: CSV, JSON, or * both. If not specified, the default format is CSV.

*/ inline void SetFormats(Aws::Vector&& value) { m_formatsHasBeenSet = true; m_formats = std::move(value); } /** *

A list of the format of your reports: CSV, JSON, or * both. If not specified, the default format is CSV.

*/ inline ReportDeliveryChannel& WithFormats(const Aws::Vector& value) { SetFormats(value); return *this;} /** *

A list of the format of your reports: CSV, JSON, or * both. If not specified, the default format is CSV.

*/ inline ReportDeliveryChannel& WithFormats(Aws::Vector&& value) { SetFormats(std::move(value)); return *this;} /** *

A list of the format of your reports: CSV, JSON, or * both. If not specified, the default format is CSV.

*/ inline ReportDeliveryChannel& AddFormats(const Aws::String& value) { m_formatsHasBeenSet = true; m_formats.push_back(value); return *this; } /** *

A list of the format of your reports: CSV, JSON, or * both. If not specified, the default format is CSV.

*/ inline ReportDeliveryChannel& AddFormats(Aws::String&& value) { m_formatsHasBeenSet = true; m_formats.push_back(std::move(value)); return *this; } /** *

A list of the format of your reports: CSV, JSON, or * both. If not specified, the default format is CSV.

*/ inline ReportDeliveryChannel& AddFormats(const char* value) { m_formatsHasBeenSet = true; m_formats.push_back(value); return *this; } private: Aws::String m_s3BucketName; bool m_s3BucketNameHasBeenSet = false; Aws::String m_s3KeyPrefix; bool m_s3KeyPrefixHasBeenSet = false; Aws::Vector m_formats; bool m_formatsHasBeenSet = false; }; } // namespace Model } // namespace Backup } // namespace Aws