134 lines
4.1 KiB
C++
134 lines
4.1 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/iot/IoT_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace IoT
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Describes an action that sends data to CloudWatch Logs.</p><p><h3>See
|
|
* Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/CloudwatchLogsAction">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_IOT_API CloudwatchLogsAction
|
|
{
|
|
public:
|
|
CloudwatchLogsAction();
|
|
CloudwatchLogsAction(Aws::Utils::Json::JsonView jsonValue);
|
|
CloudwatchLogsAction& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The IAM role that allows access to the CloudWatch log.</p>
|
|
*/
|
|
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
|
|
|
|
/**
|
|
* <p>The IAM role that allows access to the CloudWatch log.</p>
|
|
*/
|
|
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The IAM role that allows access to the CloudWatch log.</p>
|
|
*/
|
|
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
|
|
|
|
/**
|
|
* <p>The IAM role that allows access to the CloudWatch log.</p>
|
|
*/
|
|
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The IAM role that allows access to the CloudWatch log.</p>
|
|
*/
|
|
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
|
|
|
|
/**
|
|
* <p>The IAM role that allows access to the CloudWatch log.</p>
|
|
*/
|
|
inline CloudwatchLogsAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The IAM role that allows access to the CloudWatch log.</p>
|
|
*/
|
|
inline CloudwatchLogsAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The IAM role that allows access to the CloudWatch log.</p>
|
|
*/
|
|
inline CloudwatchLogsAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The CloudWatch log group to which the action sends data.</p>
|
|
*/
|
|
inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
|
|
|
|
/**
|
|
* <p>The CloudWatch log group to which the action sends data.</p>
|
|
*/
|
|
inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The CloudWatch log group to which the action sends data.</p>
|
|
*/
|
|
inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
|
|
|
|
/**
|
|
* <p>The CloudWatch log group to which the action sends data.</p>
|
|
*/
|
|
inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The CloudWatch log group to which the action sends data.</p>
|
|
*/
|
|
inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
|
|
|
|
/**
|
|
* <p>The CloudWatch log group to which the action sends data.</p>
|
|
*/
|
|
inline CloudwatchLogsAction& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The CloudWatch log group to which the action sends data.</p>
|
|
*/
|
|
inline CloudwatchLogsAction& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The CloudWatch log group to which the action sends data.</p>
|
|
*/
|
|
inline CloudwatchLogsAction& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_roleArn;
|
|
bool m_roleArnHasBeenSet;
|
|
|
|
Aws::String m_logGroupName;
|
|
bool m_logGroupNameHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace IoT
|
|
} // namespace Aws
|