AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LogConfig.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/FieldLogLevel.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
33 {
34 public:
35 AWS_APPSYNC_API LogConfig() = default;
36 AWS_APPSYNC_API LogConfig(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPSYNC_API LogConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
54 inline FieldLogLevel GetFieldLogLevel() const { return m_fieldLogLevel; }
55 inline bool FieldLogLevelHasBeenSet() const { return m_fieldLogLevelHasBeenSet; }
56 inline void SetFieldLogLevel(FieldLogLevel value) { m_fieldLogLevelHasBeenSet = true; m_fieldLogLevel = value; }
57 inline LogConfig& WithFieldLogLevel(FieldLogLevel value) { SetFieldLogLevel(value); return *this;}
59
61
65 inline const Aws::String& GetCloudWatchLogsRoleArn() const { return m_cloudWatchLogsRoleArn; }
66 inline bool CloudWatchLogsRoleArnHasBeenSet() const { return m_cloudWatchLogsRoleArnHasBeenSet; }
67 template<typename CloudWatchLogsRoleArnT = Aws::String>
68 void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value); }
69 template<typename CloudWatchLogsRoleArnT = Aws::String>
70 LogConfig& WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) { SetCloudWatchLogsRoleArn(std::forward<CloudWatchLogsRoleArnT>(value)); return *this;}
72
74
78 inline bool GetExcludeVerboseContent() const { return m_excludeVerboseContent; }
79 inline bool ExcludeVerboseContentHasBeenSet() const { return m_excludeVerboseContentHasBeenSet; }
80 inline void SetExcludeVerboseContent(bool value) { m_excludeVerboseContentHasBeenSet = true; m_excludeVerboseContent = value; }
81 inline LogConfig& WithExcludeVerboseContent(bool value) { SetExcludeVerboseContent(value); return *this;}
83 private:
84
86 bool m_fieldLogLevelHasBeenSet = false;
87
88 Aws::String m_cloudWatchLogsRoleArn;
89 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
90
91 bool m_excludeVerboseContent{false};
92 bool m_excludeVerboseContentHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace AppSync
97} // namespace Aws
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetExcludeVerboseContent(bool value)
Definition LogConfig.h:80
FieldLogLevel GetFieldLogLevel() const
Definition LogConfig.h:54
bool FieldLogLevelHasBeenSet() const
Definition LogConfig.h:55
bool GetExcludeVerboseContent() const
Definition LogConfig.h:78
LogConfig & WithExcludeVerboseContent(bool value)
Definition LogConfig.h:81
LogConfig & WithFieldLogLevel(FieldLogLevel value)
Definition LogConfig.h:57
void SetFieldLogLevel(FieldLogLevel value)
Definition LogConfig.h:56
const Aws::String & GetCloudWatchLogsRoleArn() const
Definition LogConfig.h:65
void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
Definition LogConfig.h:68
LogConfig & WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
Definition LogConfig.h:70
bool CloudWatchLogsRoleArnHasBeenSet() const
Definition LogConfig.h:66
bool ExcludeVerboseContentHasBeenSet() const
Definition LogConfig.h:79
AWS_APPSYNC_API LogConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSYNC_API LogConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSYNC_API LogConfig()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue