AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CloudwatchLogsAction.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoT
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_IOT_API CloudwatchLogsAction();
39
40
42
45 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
46 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
47 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
48 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
49 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
50 inline CloudwatchLogsAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
51 inline CloudwatchLogsAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
52 inline CloudwatchLogsAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
54
56
59 inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
60 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
61 inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
62 inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
63 inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
64 inline CloudwatchLogsAction& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
65 inline CloudwatchLogsAction& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
66 inline CloudwatchLogsAction& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
68
70
75 inline bool GetBatchMode() const{ return m_batchMode; }
76 inline bool BatchModeHasBeenSet() const { return m_batchModeHasBeenSet; }
77 inline void SetBatchMode(bool value) { m_batchModeHasBeenSet = true; m_batchMode = value; }
78 inline CloudwatchLogsAction& WithBatchMode(bool value) { SetBatchMode(value); return *this;}
80 private:
81
82 Aws::String m_roleArn;
83 bool m_roleArnHasBeenSet = false;
84
85 Aws::String m_logGroupName;
86 bool m_logGroupNameHasBeenSet = false;
87
88 bool m_batchMode;
89 bool m_batchModeHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace IoT
94} // namespace Aws
CloudwatchLogsAction & WithRoleArn(const char *value)
AWS_IOT_API CloudwatchLogsAction(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetLogGroupName() const
CloudwatchLogsAction & WithRoleArn(Aws::String &&value)
CloudwatchLogsAction & WithRoleArn(const Aws::String &value)
AWS_IOT_API CloudwatchLogsAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRoleArn(const Aws::String &value)
void SetLogGroupName(const Aws::String &value)
CloudwatchLogsAction & WithLogGroupName(const Aws::String &value)
CloudwatchLogsAction & WithLogGroupName(Aws::String &&value)
CloudwatchLogsAction & WithLogGroupName(const char *value)
CloudwatchLogsAction & WithBatchMode(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue