/** * 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 Amazon * CloudWatch Logs, built in a specified S3 bucket, or both.

See * Also:

AWS * API Reference

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

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

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

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

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

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

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

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

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

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

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

Information about Amazon CloudWatch Logs for a build project. Amazon * 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; S3LogsConfig m_s3Logs; bool m_s3LogsHasBeenSet; }; } // namespace Model } // namespace CodeBuild } // namespace Aws