AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppSync {
21namespace Model {
22
30 public:
31 AWS_APPSYNC_API EventLogConfig() = default;
32 AWS_APPSYNC_API EventLogConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline EventLogLevel GetLogLevel() const { return m_logLevel; }
41 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
42 inline void SetLogLevel(EventLogLevel value) {
43 m_logLevelHasBeenSet = true;
44 m_logLevel = value;
45 }
47 SetLogLevel(value);
48 return *this;
49 }
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) {
61 m_cloudWatchLogsRoleArnHasBeenSet = true;
62 m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value);
63 }
64 template <typename CloudWatchLogsRoleArnT = Aws::String>
65 EventLogConfig& WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) {
66 SetCloudWatchLogsRoleArn(std::forward<CloudWatchLogsRoleArnT>(value));
67 return *this;
68 }
70 private:
72
73 Aws::String m_cloudWatchLogsRoleArn;
74 bool m_logLevelHasBeenSet = false;
75 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace AppSync
80} // 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