AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 EventLogLevel GetLogLevel() const { return m_logLevel; }
47 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
48 inline void SetLogLevel(EventLogLevel value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
49 inline EventLogConfig& WithLogLevel(EventLogLevel value) { SetLogLevel(value); return *this;}
51
53
57 inline const Aws::String& GetCloudWatchLogsRoleArn() const { return m_cloudWatchLogsRoleArn; }
58 inline bool CloudWatchLogsRoleArnHasBeenSet() const { return m_cloudWatchLogsRoleArnHasBeenSet; }
59 template<typename CloudWatchLogsRoleArnT = Aws::String>
60 void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value); }
61 template<typename CloudWatchLogsRoleArnT = Aws::String>
62 EventLogConfig& WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) { SetCloudWatchLogsRoleArn(std::forward<CloudWatchLogsRoleArnT>(value)); return *this;}
64 private:
65
67 bool m_logLevelHasBeenSet = false;
68
69 Aws::String m_cloudWatchLogsRoleArn;
70 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace AppSync
75} // namespace Aws
void SetLogLevel(EventLogLevel value)
EventLogConfig & WithLogLevel(EventLogLevel value)
AWS_APPSYNC_API EventLogConfig(Aws::Utils::Json::JsonView jsonValue)
EventLogConfig & WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPSYNC_API EventLogConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCloudWatchLogsRoleArn() const
AWS_APPSYNC_API EventLogConfig()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue