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

Information about the S3 bucket where the raw data of a report are exported. *

See Also:

AWS * API Reference

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

The name of the S3 bucket where the raw data of a report are exported.

*/ inline const Aws::String& GetBucket() const{ return m_bucket; } /** *

The name of the S3 bucket where the raw data of a report are exported.

*/ inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; } /** *

The name of the S3 bucket where the raw data of a report are exported.

*/ inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; } /** *

The name of the S3 bucket where the raw data of a report are exported.

*/ inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); } /** *

The name of the S3 bucket where the raw data of a report are exported.

*/ inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); } /** *

The name of the S3 bucket where the raw data of a report are exported.

*/ inline S3ReportExportConfig& WithBucket(const Aws::String& value) { SetBucket(value); return *this;} /** *

The name of the S3 bucket where the raw data of a report are exported.

*/ inline S3ReportExportConfig& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;} /** *

The name of the S3 bucket where the raw data of a report are exported.

*/ inline S3ReportExportConfig& WithBucket(const char* value) { SetBucket(value); return *this;} /** *

The Amazon Web Services account identifier of the owner of the Amazon S3 * bucket. This allows report data to be exported to an Amazon S3 bucket that is * owned by an account other than the account running the build.

*/ inline const Aws::String& GetBucketOwner() const{ return m_bucketOwner; } /** *

The Amazon Web Services account identifier of the owner of the Amazon S3 * bucket. This allows report data to be exported to an Amazon S3 bucket that is * owned by an account other than the account running the build.

*/ inline bool BucketOwnerHasBeenSet() const { return m_bucketOwnerHasBeenSet; } /** *

The Amazon Web Services account identifier of the owner of the Amazon S3 * bucket. This allows report data to be exported to an Amazon S3 bucket that is * owned by an account other than the account running the build.

*/ inline void SetBucketOwner(const Aws::String& value) { m_bucketOwnerHasBeenSet = true; m_bucketOwner = value; } /** *

The Amazon Web Services account identifier of the owner of the Amazon S3 * bucket. This allows report data to be exported to an Amazon S3 bucket that is * owned by an account other than the account running the build.

*/ inline void SetBucketOwner(Aws::String&& value) { m_bucketOwnerHasBeenSet = true; m_bucketOwner = std::move(value); } /** *

The Amazon Web Services account identifier of the owner of the Amazon S3 * bucket. This allows report data to be exported to an Amazon S3 bucket that is * owned by an account other than the account running the build.

*/ inline void SetBucketOwner(const char* value) { m_bucketOwnerHasBeenSet = true; m_bucketOwner.assign(value); } /** *

The Amazon Web Services account identifier of the owner of the Amazon S3 * bucket. This allows report data to be exported to an Amazon S3 bucket that is * owned by an account other than the account running the build.

*/ inline S3ReportExportConfig& WithBucketOwner(const Aws::String& value) { SetBucketOwner(value); return *this;} /** *

The Amazon Web Services account identifier of the owner of the Amazon S3 * bucket. This allows report data to be exported to an Amazon S3 bucket that is * owned by an account other than the account running the build.

*/ inline S3ReportExportConfig& WithBucketOwner(Aws::String&& value) { SetBucketOwner(std::move(value)); return *this;} /** *

The Amazon Web Services account identifier of the owner of the Amazon S3 * bucket. This allows report data to be exported to an Amazon S3 bucket that is * owned by an account other than the account running the build.

*/ inline S3ReportExportConfig& WithBucketOwner(const char* value) { SetBucketOwner(value); return *this;} /** *

The path to the exported report's raw data results.

*/ inline const Aws::String& GetPath() const{ return m_path; } /** *

The path to the exported report's raw data results.

*/ inline bool PathHasBeenSet() const { return m_pathHasBeenSet; } /** *

The path to the exported report's raw data results.

*/ inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; } /** *

The path to the exported report's raw data results.

*/ inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); } /** *

The path to the exported report's raw data results.

*/ inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); } /** *

The path to the exported report's raw data results.

*/ inline S3ReportExportConfig& WithPath(const Aws::String& value) { SetPath(value); return *this;} /** *

The path to the exported report's raw data results.

*/ inline S3ReportExportConfig& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;} /** *

The path to the exported report's raw data results.

*/ inline S3ReportExportConfig& WithPath(const char* value) { SetPath(value); return *this;} /** *

The type of build output artifact to create. Valid values include:

    *
  • NONE: CodeBuild creates the raw data in the output bucket. * This is the default if packaging is not specified.

  • * ZIP: CodeBuild creates a ZIP file with the raw data in the output * bucket.

*/ inline const ReportPackagingType& GetPackaging() const{ return m_packaging; } /** *

The type of build output artifact to create. Valid values include:

    *
  • NONE: CodeBuild creates the raw data in the output bucket. * This is the default if packaging is not specified.

  • * ZIP: CodeBuild creates a ZIP file with the raw data in the output * bucket.

*/ inline bool PackagingHasBeenSet() const { return m_packagingHasBeenSet; } /** *

The type of build output artifact to create. Valid values include:

    *
  • NONE: CodeBuild creates the raw data in the output bucket. * This is the default if packaging is not specified.

  • * ZIP: CodeBuild creates a ZIP file with the raw data in the output * bucket.

*/ inline void SetPackaging(const ReportPackagingType& value) { m_packagingHasBeenSet = true; m_packaging = value; } /** *

The type of build output artifact to create. Valid values include:

    *
  • NONE: CodeBuild creates the raw data in the output bucket. * This is the default if packaging is not specified.

  • * ZIP: CodeBuild creates a ZIP file with the raw data in the output * bucket.

*/ inline void SetPackaging(ReportPackagingType&& value) { m_packagingHasBeenSet = true; m_packaging = std::move(value); } /** *

The type of build output artifact to create. Valid values include:

    *
  • NONE: CodeBuild creates the raw data in the output bucket. * This is the default if packaging is not specified.

  • * ZIP: CodeBuild creates a ZIP file with the raw data in the output * bucket.

*/ inline S3ReportExportConfig& WithPackaging(const ReportPackagingType& value) { SetPackaging(value); return *this;} /** *

The type of build output artifact to create. Valid values include:

    *
  • NONE: CodeBuild creates the raw data in the output bucket. * This is the default if packaging is not specified.

  • * ZIP: CodeBuild creates a ZIP file with the raw data in the output * bucket.

*/ inline S3ReportExportConfig& WithPackaging(ReportPackagingType&& value) { SetPackaging(std::move(value)); return *this;} /** *

The encryption key for the report's encrypted raw data.

*/ inline const Aws::String& GetEncryptionKey() const{ return m_encryptionKey; } /** *

The encryption key for the report's encrypted raw data.

*/ inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; } /** *

The encryption key for the report's encrypted raw data.

*/ inline void SetEncryptionKey(const Aws::String& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; } /** *

The encryption key for the report's encrypted raw data.

*/ inline void SetEncryptionKey(Aws::String&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::move(value); } /** *

The encryption key for the report's encrypted raw data.

*/ inline void SetEncryptionKey(const char* value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey.assign(value); } /** *

The encryption key for the report's encrypted raw data.

*/ inline S3ReportExportConfig& WithEncryptionKey(const Aws::String& value) { SetEncryptionKey(value); return *this;} /** *

The encryption key for the report's encrypted raw data.

*/ inline S3ReportExportConfig& WithEncryptionKey(Aws::String&& value) { SetEncryptionKey(std::move(value)); return *this;} /** *

The encryption key for the report's encrypted raw data.

*/ inline S3ReportExportConfig& WithEncryptionKey(const char* value) { SetEncryptionKey(value); return *this;} /** *

A boolean value that specifies if the results of a report are encrypted. *

*/ inline bool GetEncryptionDisabled() const{ return m_encryptionDisabled; } /** *

A boolean value that specifies if the results of a report are encrypted. *

*/ inline bool EncryptionDisabledHasBeenSet() const { return m_encryptionDisabledHasBeenSet; } /** *

A boolean value that specifies if the results of a report are encrypted. *

*/ inline void SetEncryptionDisabled(bool value) { m_encryptionDisabledHasBeenSet = true; m_encryptionDisabled = value; } /** *

A boolean value that specifies if the results of a report are encrypted. *

*/ inline S3ReportExportConfig& WithEncryptionDisabled(bool value) { SetEncryptionDisabled(value); return *this;} private: Aws::String m_bucket; bool m_bucketHasBeenSet = false; Aws::String m_bucketOwner; bool m_bucketOwnerHasBeenSet = false; Aws::String m_path; bool m_pathHasBeenSet = false; ReportPackagingType m_packaging; bool m_packagingHasBeenSet = false; Aws::String m_encryptionKey; bool m_encryptionKeyHasBeenSet = false; bool m_encryptionDisabled; bool m_encryptionDisabledHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws