AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EventLogConfig.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/EventLogLevel.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppSync
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPSYNC_API EventLogConfig();
37 AWS_APPSYNC_API EventLogConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const EventLogLevel& GetLogLevel() const{ return m_logLevel; }
47 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
48 inline void SetLogLevel(const EventLogLevel& value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
49 inline void SetLogLevel(EventLogLevel&& value) { m_logLevelHasBeenSet = true; m_logLevel = std::move(value); }
50 inline EventLogConfig& WithLogLevel(const EventLogLevel& value) { SetLogLevel(value); return *this;}
51 inline EventLogConfig& WithLogLevel(EventLogLevel&& value) { SetLogLevel(std::move(value)); return *this;}
53
55
59 inline const Aws::String& GetCloudWatchLogsRoleArn() const{ return m_cloudWatchLogsRoleArn; }
60 inline bool CloudWatchLogsRoleArnHasBeenSet() const { return m_cloudWatchLogsRoleArnHasBeenSet; }
61 inline void SetCloudWatchLogsRoleArn(const Aws::String& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = value; }
62 inline void SetCloudWatchLogsRoleArn(Aws::String&& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = std::move(value); }
63 inline void SetCloudWatchLogsRoleArn(const char* value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn.assign(value); }
65 inline EventLogConfig& WithCloudWatchLogsRoleArn(Aws::String&& value) { SetCloudWatchLogsRoleArn(std::move(value)); return *this;}
66 inline EventLogConfig& WithCloudWatchLogsRoleArn(const char* value) { SetCloudWatchLogsRoleArn(value); return *this;}
68 private:
69
70 EventLogLevel m_logLevel;
71 bool m_logLevelHasBeenSet = false;
72
73 Aws::String m_cloudWatchLogsRoleArn;
74 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace AppSync
79} // namespace Aws
void SetLogLevel(const EventLogLevel &value)
void SetCloudWatchLogsRoleArn(Aws::String &&value)
EventLogConfig & WithCloudWatchLogsRoleArn(Aws::String &&value)
void SetCloudWatchLogsRoleArn(const Aws::String &value)
EventLogConfig & WithLogLevel(EventLogLevel &&value)
EventLogConfig & WithLogLevel(const EventLogLevel &value)
const EventLogLevel & GetLogLevel() const
void SetCloudWatchLogsRoleArn(const char *value)
EventLogConfig & WithCloudWatchLogsRoleArn(const char *value)
AWS_APPSYNC_API EventLogConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLogLevel(EventLogLevel &&value)
AWS_APPSYNC_API EventLogConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCloudWatchLogsRoleArn() const
EventLogConfig & WithCloudWatchLogsRoleArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue