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

The log delivery option to send data to Amazon CloudWatch Logs.

See * Also:

AWS * API Reference

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

The type of log to send data to Amazon CloudWatch Logs.

*/ inline const LogType& GetLogType() const{ return m_logType; } /** *

The type of log to send data to Amazon CloudWatch Logs.

*/ inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; } /** *

The type of log to send data to Amazon CloudWatch Logs.

*/ inline void SetLogType(const LogType& value) { m_logTypeHasBeenSet = true; m_logType = value; } /** *

The type of log to send data to Amazon CloudWatch Logs.

*/ inline void SetLogType(LogType&& value) { m_logTypeHasBeenSet = true; m_logType = std::move(value); } /** *

The type of log to send data to Amazon CloudWatch Logs.

*/ inline CloudWatchLogDeliveryOptions& WithLogType(const LogType& value) { SetLogType(value); return *this;} /** *

The type of log to send data to Amazon CloudWatch Logs.

*/ inline CloudWatchLogDeliveryOptions& WithLogType(LogType&& value) { SetLogType(std::move(value)); return *this;} /** *

The Amazon CloudWatch Logs group the operation sends data to.

*/ inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; } /** *

The Amazon CloudWatch Logs group the operation sends data to.

*/ inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; } /** *

The Amazon CloudWatch Logs group the operation sends data to.

*/ inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; } /** *

The Amazon CloudWatch Logs group the operation sends data to.

*/ inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); } /** *

The Amazon CloudWatch Logs group the operation sends data to.

*/ inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); } /** *

The Amazon CloudWatch Logs group the operation sends data to.

*/ inline CloudWatchLogDeliveryOptions& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;} /** *

The Amazon CloudWatch Logs group the operation sends data to.

*/ inline CloudWatchLogDeliveryOptions& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;} /** *

The Amazon CloudWatch Logs group the operation sends data to.

*/ inline CloudWatchLogDeliveryOptions& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;} private: LogType m_logType; bool m_logTypeHasBeenSet = false; Aws::String m_logGroupName; bool m_logGroupNameHasBeenSet = false; }; } // namespace Model } // namespace IoTFleetWise } // namespace Aws