/** * 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 logs for a build project. These can be logs in CloudWatch * Logs, built in a specified S3 bucket, or both.

See Also:

AWS * API Reference

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

Information about CloudWatch Logs for a build project. CloudWatch Logs are * enabled by default.

*/ inline const CloudWatchLogsConfig& GetCloudWatchLogs() const{ return m_cloudWatchLogs; } /** *

Information about CloudWatch Logs for a build project. CloudWatch Logs are * enabled by default.

*/ inline bool CloudWatchLogsHasBeenSet() const { return m_cloudWatchLogsHasBeenSet; } /** *

Information about CloudWatch Logs for a build project. CloudWatch Logs are * enabled by default.

*/ inline void SetCloudWatchLogs(const CloudWatchLogsConfig& value) { m_cloudWatchLogsHasBeenSet = true; m_cloudWatchLogs = value; } /** *

Information about CloudWatch Logs for a build project. CloudWatch Logs are * enabled by default.

*/ inline void SetCloudWatchLogs(CloudWatchLogsConfig&& value) { m_cloudWatchLogsHasBeenSet = true; m_cloudWatchLogs = std::move(value); } /** *

Information about CloudWatch Logs for a build project. CloudWatch Logs are * enabled by default.

*/ inline LogsConfig& WithCloudWatchLogs(const CloudWatchLogsConfig& value) { SetCloudWatchLogs(value); return *this;} /** *

Information about CloudWatch Logs for a build project. CloudWatch Logs are * enabled by default.

*/ inline LogsConfig& WithCloudWatchLogs(CloudWatchLogsConfig&& value) { SetCloudWatchLogs(std::move(value)); return *this;} /** *

Information about logs built to an S3 bucket for a build project. S3 logs * are not enabled by default.

*/ inline const S3LogsConfig& GetS3Logs() const{ return m_s3Logs; } /** *

Information about logs built to an S3 bucket for a build project. S3 logs * are not enabled by default.

*/ inline bool S3LogsHasBeenSet() const { return m_s3LogsHasBeenSet; } /** *

Information about logs built to an S3 bucket for a build project. S3 logs * are not enabled by default.

*/ inline void SetS3Logs(const S3LogsConfig& value) { m_s3LogsHasBeenSet = true; m_s3Logs = value; } /** *

Information about logs built to an S3 bucket for a build project. S3 logs * are not enabled by default.

*/ inline void SetS3Logs(S3LogsConfig&& value) { m_s3LogsHasBeenSet = true; m_s3Logs = std::move(value); } /** *

Information about logs built to an S3 bucket for a build project. S3 logs * are not enabled by default.

*/ inline LogsConfig& WithS3Logs(const S3LogsConfig& value) { SetS3Logs(value); return *this;} /** *

Information about logs built to an S3 bucket for a build project. S3 logs * are not enabled by default.

*/ inline LogsConfig& WithS3Logs(S3LogsConfig&& value) { SetS3Logs(std::move(value)); return *this;} private: CloudWatchLogsConfig m_cloudWatchLogs; bool m_cloudWatchLogsHasBeenSet = false; S3LogsConfig m_s3Logs; bool m_s3LogsHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws