AWS SDK for C++  1.9.102
AWS SDK for C++
LogConfig.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace AppSync
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
53  inline const FieldLogLevel& GetFieldLogLevel() const{ return m_fieldLogLevel; }
54 
67  inline bool FieldLogLevelHasBeenSet() const { return m_fieldLogLevelHasBeenSet; }
68 
81  inline void SetFieldLogLevel(const FieldLogLevel& value) { m_fieldLogLevelHasBeenSet = true; m_fieldLogLevel = value; }
82 
95  inline void SetFieldLogLevel(FieldLogLevel&& value) { m_fieldLogLevelHasBeenSet = true; m_fieldLogLevel = std::move(value); }
96 
109  inline LogConfig& WithFieldLogLevel(const FieldLogLevel& value) { SetFieldLogLevel(value); return *this;}
110 
123  inline LogConfig& WithFieldLogLevel(FieldLogLevel&& value) { SetFieldLogLevel(std::move(value)); return *this;}
124 
125 
130  inline const Aws::String& GetCloudWatchLogsRoleArn() const{ return m_cloudWatchLogsRoleArn; }
131 
136  inline bool CloudWatchLogsRoleArnHasBeenSet() const { return m_cloudWatchLogsRoleArnHasBeenSet; }
137 
142  inline void SetCloudWatchLogsRoleArn(const Aws::String& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = value; }
143 
148  inline void SetCloudWatchLogsRoleArn(Aws::String&& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = std::move(value); }
149 
154  inline void SetCloudWatchLogsRoleArn(const char* value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn.assign(value); }
155 
160  inline LogConfig& WithCloudWatchLogsRoleArn(const Aws::String& value) { SetCloudWatchLogsRoleArn(value); return *this;}
161 
166  inline LogConfig& WithCloudWatchLogsRoleArn(Aws::String&& value) { SetCloudWatchLogsRoleArn(std::move(value)); return *this;}
167 
172  inline LogConfig& WithCloudWatchLogsRoleArn(const char* value) { SetCloudWatchLogsRoleArn(value); return *this;}
173 
174 
179  inline bool GetExcludeVerboseContent() const{ return m_excludeVerboseContent; }
180 
185  inline bool ExcludeVerboseContentHasBeenSet() const { return m_excludeVerboseContentHasBeenSet; }
186 
191  inline void SetExcludeVerboseContent(bool value) { m_excludeVerboseContentHasBeenSet = true; m_excludeVerboseContent = value; }
192 
197  inline LogConfig& WithExcludeVerboseContent(bool value) { SetExcludeVerboseContent(value); return *this;}
198 
199  private:
200 
201  FieldLogLevel m_fieldLogLevel;
202  bool m_fieldLogLevelHasBeenSet;
203 
204  Aws::String m_cloudWatchLogsRoleArn;
205  bool m_cloudWatchLogsRoleArnHasBeenSet;
206 
207  bool m_excludeVerboseContent;
208  bool m_excludeVerboseContentHasBeenSet;
209  };
210 
211 } // namespace Model
212 } // namespace AppSync
213 } // namespace Aws
Aws::AppSync::Model::LogConfig::LogConfig
LogConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::AppSync::Model::LogConfig::operator=
LogConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppSync::Model::LogConfig::SetCloudWatchLogsRoleArn
void SetCloudWatchLogsRoleArn(const char *value)
Definition: LogConfig.h:154
Aws::AppSync::Model::LogConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppSync::Model::LogConfig::SetFieldLogLevel
void SetFieldLogLevel(FieldLogLevel &&value)
Definition: LogConfig.h:95
Aws::AppSync::Model::FieldLogLevel
FieldLogLevel
Definition: FieldLogLevel.h:17
Aws::AppSync::Model::LogConfig::WithFieldLogLevel
LogConfig & WithFieldLogLevel(const FieldLogLevel &value)
Definition: LogConfig.h:109
Aws::AppSync::Model::LogConfig::ExcludeVerboseContentHasBeenSet
bool ExcludeVerboseContentHasBeenSet() const
Definition: LogConfig.h:185
AppSync_EXPORTS.h
Aws::AppSync::Model::LogConfig::CloudWatchLogsRoleArnHasBeenSet
bool CloudWatchLogsRoleArnHasBeenSet() const
Definition: LogConfig.h:136
Aws::AppSync::Model::LogConfig::GetCloudWatchLogsRoleArn
const Aws::String & GetCloudWatchLogsRoleArn() const
Definition: LogConfig.h:130
FieldLogLevel.h
Aws::AppSync::Model::LogConfig::WithCloudWatchLogsRoleArn
LogConfig & WithCloudWatchLogsRoleArn(const Aws::String &value)
Definition: LogConfig.h:160
Aws::AppSync::Model::LogConfig::SetCloudWatchLogsRoleArn
void SetCloudWatchLogsRoleArn(const Aws::String &value)
Definition: LogConfig.h:142
Aws::AppSync::Model::LogConfig::GetFieldLogLevel
const FieldLogLevel & GetFieldLogLevel() const
Definition: LogConfig.h:53
Aws::AppSync::Model::LogConfig::SetCloudWatchLogsRoleArn
void SetCloudWatchLogsRoleArn(Aws::String &&value)
Definition: LogConfig.h:148
Aws::AppSync::Model::LogConfig
Definition: LogConfig.h:33
Aws::AppSync::Model::LogConfig::LogConfig
LogConfig()
Aws::AppSync::Model::LogConfig::GetExcludeVerboseContent
bool GetExcludeVerboseContent() const
Definition: LogConfig.h:179
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppSync::Model::LogConfig::WithExcludeVerboseContent
LogConfig & WithExcludeVerboseContent(bool value)
Definition: LogConfig.h:197
Aws::AppSync::Model::LogConfig::FieldLogLevelHasBeenSet
bool FieldLogLevelHasBeenSet() const
Definition: LogConfig.h:67
Aws::AppSync::Model::LogConfig::SetFieldLogLevel
void SetFieldLogLevel(const FieldLogLevel &value)
Definition: LogConfig.h:81
Aws
Definition: AccessManagementClient.h:15
Aws::AppSync::Model::LogConfig::WithCloudWatchLogsRoleArn
LogConfig & WithCloudWatchLogsRoleArn(Aws::String &&value)
Definition: LogConfig.h:166
Aws::AppSync::Model::LogConfig::WithFieldLogLevel
LogConfig & WithFieldLogLevel(FieldLogLevel &&value)
Definition: LogConfig.h:123
AWS_APPSYNC_API
#define AWS_APPSYNC_API
Definition: AppSync_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppSync::Model::LogConfig::WithCloudWatchLogsRoleArn
LogConfig & WithCloudWatchLogsRoleArn(const char *value)
Definition: LogConfig.h:172
Aws::AppSync::Model::LogConfig::SetExcludeVerboseContent
void SetExcludeVerboseContent(bool value)
Definition: LogConfig.h:191