AWS SDK for C++  1.9.123
AWS SDK for C++
CloudwatchLogsAction.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
45 
49  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
50 
54  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
55 
59  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
60 
64  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
65 
69  inline CloudwatchLogsAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
70 
74  inline CloudwatchLogsAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
75 
79  inline CloudwatchLogsAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
80 
81 
85  inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
86 
90  inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
91 
95  inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
96 
100  inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
101 
105  inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
106 
110  inline CloudwatchLogsAction& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
111 
115  inline CloudwatchLogsAction& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
116 
120  inline CloudwatchLogsAction& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
121 
122  private:
123 
124  Aws::String m_roleArn;
125  bool m_roleArnHasBeenSet;
126 
127  Aws::String m_logGroupName;
128  bool m_logGroupNameHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace IoT
133 } // namespace Aws
Aws::IoT::Model::CloudwatchLogsAction::CloudwatchLogsAction
CloudwatchLogsAction(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::CloudwatchLogsAction::GetLogGroupName
const Aws::String & GetLogGroupName() const
Definition: CloudwatchLogsAction.h:85
Aws::IoT::Model::CloudwatchLogsAction::WithLogGroupName
CloudwatchLogsAction & WithLogGroupName(const char *value)
Definition: CloudwatchLogsAction.h:120
Aws::IoT::Model::CloudwatchLogsAction::WithLogGroupName
CloudwatchLogsAction & WithLogGroupName(const Aws::String &value)
Definition: CloudwatchLogsAction.h:110
Aws::IoT::Model::CloudwatchLogsAction::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: CloudwatchLogsAction.h:54
Aws::IoT::Model::CloudwatchLogsAction::SetRoleArn
void SetRoleArn(const char *value)
Definition: CloudwatchLogsAction.h:64
Aws::IoT::Model::CloudwatchLogsAction::WithRoleArn
CloudwatchLogsAction & WithRoleArn(const Aws::String &value)
Definition: CloudwatchLogsAction.h:69
Aws::IoT::Model::CloudwatchLogsAction
Definition: CloudwatchLogsAction.h:33
Aws::IoT::Model::CloudwatchLogsAction::LogGroupNameHasBeenSet
bool LogGroupNameHasBeenSet() const
Definition: CloudwatchLogsAction.h:90
Aws::IoT::Model::CloudwatchLogsAction::SetLogGroupName
void SetLogGroupName(const Aws::String &value)
Definition: CloudwatchLogsAction.h:95
Aws::IoT::Model::CloudwatchLogsAction::SetLogGroupName
void SetLogGroupName(const char *value)
Definition: CloudwatchLogsAction.h:105
Aws::IoT::Model::CloudwatchLogsAction::CloudwatchLogsAction
CloudwatchLogsAction()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::CloudwatchLogsAction::WithRoleArn
CloudwatchLogsAction & WithRoleArn(Aws::String &&value)
Definition: CloudwatchLogsAction.h:74
Aws::IoT::Model::CloudwatchLogsAction::operator=
CloudwatchLogsAction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::CloudwatchLogsAction::WithLogGroupName
CloudwatchLogsAction & WithLogGroupName(Aws::String &&value)
Definition: CloudwatchLogsAction.h:115
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::CloudwatchLogsAction::WithRoleArn
CloudwatchLogsAction & WithRoleArn(const char *value)
Definition: CloudwatchLogsAction.h:79
Aws::IoT::Model::CloudwatchLogsAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::CloudwatchLogsAction::SetLogGroupName
void SetLogGroupName(Aws::String &&value)
Definition: CloudwatchLogsAction.h:100
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::CloudwatchLogsAction::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: CloudwatchLogsAction.h:49
Aws::IoT::Model::CloudwatchLogsAction::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: CloudwatchLogsAction.h:59
Aws::IoT::Model::CloudwatchLogsAction::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: CloudwatchLogsAction.h:44
IoT_EXPORTS.h