/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoT { namespace Model { /** *

Describes an action that sends data to CloudWatch Logs.

See * Also:

AWS * API Reference

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

The IAM role that allows access to the CloudWatch log.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The IAM role that allows access to the CloudWatch log.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The IAM role that allows access to the CloudWatch log.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The IAM role that allows access to the CloudWatch log.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The IAM role that allows access to the CloudWatch log.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The IAM role that allows access to the CloudWatch log.

*/ inline CloudwatchLogsAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The IAM role that allows access to the CloudWatch log.

*/ inline CloudwatchLogsAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The IAM role that allows access to the CloudWatch log.

*/ inline CloudwatchLogsAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The CloudWatch log group to which the action sends data.

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

The CloudWatch log group to which the action sends data.

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

The CloudWatch log group to which the action sends data.

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

The CloudWatch log group to which the action sends data.

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

The CloudWatch log group to which the action sends data.

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

The CloudWatch log group to which the action sends data.

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

The CloudWatch log group to which the action sends data.

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

The CloudWatch log group to which the action sends data.

*/ inline CloudwatchLogsAction& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;} /** *

Indicates whether batches of log records will be extracted and uploaded into * CloudWatch. Values include true or false * (default).

*/ inline bool GetBatchMode() const{ return m_batchMode; } /** *

Indicates whether batches of log records will be extracted and uploaded into * CloudWatch. Values include true or false * (default).

*/ inline bool BatchModeHasBeenSet() const { return m_batchModeHasBeenSet; } /** *

Indicates whether batches of log records will be extracted and uploaded into * CloudWatch. Values include true or false * (default).

*/ inline void SetBatchMode(bool value) { m_batchModeHasBeenSet = true; m_batchMode = value; } /** *

Indicates whether batches of log records will be extracted and uploaded into * CloudWatch. Values include true or false * (default).

*/ inline CloudwatchLogsAction& WithBatchMode(bool value) { SetBatchMode(value); return *this;} private: Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::String m_logGroupName; bool m_logGroupNameHasBeenSet = false; bool m_batchMode; bool m_batchModeHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws