AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
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
28class LogConfig {
29 public:
30 AWS_APPSYNC_API LogConfig() = default;
31 AWS_APPSYNC_API LogConfig(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPSYNC_API LogConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
48 inline FieldLogLevel GetFieldLogLevel() const { return m_fieldLogLevel; }
49 inline bool FieldLogLevelHasBeenSet() const { return m_fieldLogLevelHasBeenSet; }
50 inline void SetFieldLogLevel(FieldLogLevel value) {
51 m_fieldLogLevelHasBeenSet = true;
52 m_fieldLogLevel = value;
53 }
55 SetFieldLogLevel(value);
56 return *this;
57 }
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) {
69 m_cloudWatchLogsRoleArnHasBeenSet = true;
70 m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value);
71 }
72 template <typename CloudWatchLogsRoleArnT = Aws::String>
73 LogConfig& WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) {
74 SetCloudWatchLogsRoleArn(std::forward<CloudWatchLogsRoleArnT>(value));
75 return *this;
76 }
78
80
84 inline bool GetExcludeVerboseContent() const { return m_excludeVerboseContent; }
85 inline bool ExcludeVerboseContentHasBeenSet() const { return m_excludeVerboseContentHasBeenSet; }
86 inline void SetExcludeVerboseContent(bool value) {
87 m_excludeVerboseContentHasBeenSet = true;
88 m_excludeVerboseContent = value;
89 }
92 return *this;
93 }
95 private:
97
98 Aws::String m_cloudWatchLogsRoleArn;
99
100 bool m_excludeVerboseContent{false};
101 bool m_fieldLogLevelHasBeenSet = false;
102 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
103 bool m_excludeVerboseContentHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace AppSync
108} // namespace Aws
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetExcludeVerboseContent(bool value)
Definition LogConfig.h:86
FieldLogLevel GetFieldLogLevel() const
Definition LogConfig.h:48
bool FieldLogLevelHasBeenSet() const
Definition LogConfig.h:49
bool GetExcludeVerboseContent() const
Definition LogConfig.h:84
LogConfig & WithExcludeVerboseContent(bool value)
Definition LogConfig.h:90
LogConfig & WithFieldLogLevel(FieldLogLevel value)
Definition LogConfig.h:54
void SetFieldLogLevel(FieldLogLevel value)
Definition LogConfig.h:50
const Aws::String & GetCloudWatchLogsRoleArn() const
Definition LogConfig.h:65
void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
Definition LogConfig.h:68
LogConfig & WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
Definition LogConfig.h:73
bool CloudWatchLogsRoleArnHasBeenSet() const
Definition LogConfig.h:66
bool ExcludeVerboseContentHasBeenSet() const
Definition LogConfig.h:85
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