/** * 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 CloudWatch Logs for a build project.

See * Also:

AWS * API Reference

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

The current status of the logs in CloudWatch Logs for a build project. Valid * values are:

  • ENABLED: CloudWatch Logs are enabled * for this build project.

  • DISABLED: CloudWatch * Logs are not enabled for this build project.

*/ inline const LogsConfigStatusType& GetStatus() const{ return m_status; } /** *

The current status of the logs in CloudWatch Logs for a build project. Valid * values are:

  • ENABLED: CloudWatch Logs are enabled * for this build project.

  • DISABLED: CloudWatch * Logs are not enabled for this build project.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current status of the logs in CloudWatch Logs for a build project. Valid * values are:

  • ENABLED: CloudWatch Logs are enabled * for this build project.

  • DISABLED: CloudWatch * Logs are not enabled for this build project.

*/ inline void SetStatus(const LogsConfigStatusType& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current status of the logs in CloudWatch Logs for a build project. Valid * values are:

  • ENABLED: CloudWatch Logs are enabled * for this build project.

  • DISABLED: CloudWatch * Logs are not enabled for this build project.

*/ inline void SetStatus(LogsConfigStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The current status of the logs in CloudWatch Logs for a build project. Valid * values are:

  • ENABLED: CloudWatch Logs are enabled * for this build project.

  • DISABLED: CloudWatch * Logs are not enabled for this build project.

*/ inline CloudWatchLogsConfig& WithStatus(const LogsConfigStatusType& value) { SetStatus(value); return *this;} /** *

The current status of the logs in CloudWatch Logs for a build project. Valid * values are:

  • ENABLED: CloudWatch Logs are enabled * for this build project.

  • DISABLED: CloudWatch * Logs are not enabled for this build project.

*/ inline CloudWatchLogsConfig& WithStatus(LogsConfigStatusType&& value) { SetStatus(std::move(value)); return *this;} /** *

The group name of the logs in CloudWatch Logs. For more information, see Working * with Log Groups and Log Streams.

*/ inline const Aws::String& GetGroupName() const{ return m_groupName; } /** *

The group name of the logs in CloudWatch Logs. For more information, see Working * with Log Groups and Log Streams.

*/ inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; } /** *

The group name of the logs in CloudWatch Logs. For more information, see Working * with Log Groups and Log Streams.

*/ inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; } /** *

The group name of the logs in CloudWatch Logs. For more information, see Working * with Log Groups and Log Streams.

*/ inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); } /** *

The group name of the logs in CloudWatch Logs. For more information, see Working * with Log Groups and Log Streams.

*/ inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); } /** *

The group name of the logs in CloudWatch Logs. For more information, see Working * with Log Groups and Log Streams.

*/ inline CloudWatchLogsConfig& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;} /** *

The group name of the logs in CloudWatch Logs. For more information, see Working * with Log Groups and Log Streams.

*/ inline CloudWatchLogsConfig& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;} /** *

The group name of the logs in CloudWatch Logs. For more information, see Working * with Log Groups and Log Streams.

*/ inline CloudWatchLogsConfig& WithGroupName(const char* value) { SetGroupName(value); return *this;} /** *

The prefix of the stream name of the CloudWatch Logs. For more information, * see Working * with Log Groups and Log Streams.

*/ inline const Aws::String& GetStreamName() const{ return m_streamName; } /** *

The prefix of the stream name of the CloudWatch Logs. For more information, * see Working * with Log Groups and Log Streams.

*/ inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; } /** *

The prefix of the stream name of the CloudWatch Logs. For more information, * see Working * with Log Groups and Log Streams.

*/ inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; } /** *

The prefix of the stream name of the CloudWatch Logs. For more information, * see Working * with Log Groups and Log Streams.

*/ inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); } /** *

The prefix of the stream name of the CloudWatch Logs. For more information, * see Working * with Log Groups and Log Streams.

*/ inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); } /** *

The prefix of the stream name of the CloudWatch Logs. For more information, * see Working * with Log Groups and Log Streams.

*/ inline CloudWatchLogsConfig& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;} /** *

The prefix of the stream name of the CloudWatch Logs. For more information, * see Working * with Log Groups and Log Streams.

*/ inline CloudWatchLogsConfig& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;} /** *

The prefix of the stream name of the CloudWatch Logs. For more information, * see Working * with Log Groups and Log Streams.

*/ inline CloudWatchLogsConfig& WithStreamName(const char* value) { SetStreamName(value); return *this;} private: LogsConfigStatusType m_status; bool m_statusHasBeenSet = false; Aws::String m_groupName; bool m_groupNameHasBeenSet = false; Aws::String m_streamName; bool m_streamNameHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws