AWS SDK for C++

AWS SDK for C++ Version 1.11.834

Loading...
Searching...
No Matches
Logging.h
1
6#pragma once
7#include <aws/lambda-microvms/LambdaMicrovms_EXPORTS.h>
8#include <aws/lambda-microvms/model/CloudWatchLogging.h>
9#include <aws/lambda-microvms/model/LoggingDisabled.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LambdaMicrovms {
21namespace Model {
22
30class Logging {
31 public:
32 AWS_LAMBDAMICROVMS_API Logging() = default;
33 AWS_LAMBDAMICROVMS_API Logging(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LAMBDAMICROVMS_API Logging& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LAMBDAMICROVMS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const LoggingDisabled& GetDisabled() const { return m_disabled; }
42 inline bool DisabledHasBeenSet() const { return m_disabledHasBeenSet; }
43 template <typename DisabledT = LoggingDisabled>
44 void SetDisabled(DisabledT&& value) {
45 m_disabledHasBeenSet = true;
46 m_disabled = std::forward<DisabledT>(value);
47 }
48 template <typename DisabledT = LoggingDisabled>
49 Logging& WithDisabled(DisabledT&& value) {
50 SetDisabled(std::forward<DisabledT>(value));
51 return *this;
52 }
54
56
59 inline const CloudWatchLogging& GetCloudWatch() const { return m_cloudWatch; }
60 inline bool CloudWatchHasBeenSet() const { return m_cloudWatchHasBeenSet; }
61 template <typename CloudWatchT = CloudWatchLogging>
62 void SetCloudWatch(CloudWatchT&& value) {
63 m_cloudWatchHasBeenSet = true;
64 m_cloudWatch = std::forward<CloudWatchT>(value);
65 }
66 template <typename CloudWatchT = CloudWatchLogging>
67 Logging& WithCloudWatch(CloudWatchT&& value) {
68 SetCloudWatch(std::forward<CloudWatchT>(value));
69 return *this;
70 }
72 private:
73 LoggingDisabled m_disabled;
74
75 CloudWatchLogging m_cloudWatch;
76 bool m_disabledHasBeenSet = false;
77 bool m_cloudWatchHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace LambdaMicrovms
82} // namespace Aws
Logging & WithCloudWatch(CloudWatchT &&value)
Definition Logging.h:67
const LoggingDisabled & GetDisabled() const
Definition Logging.h:41
AWS_LAMBDAMICROVMS_API Logging()=default
AWS_LAMBDAMICROVMS_API Logging(Aws::Utils::Json::JsonView jsonValue)
void SetCloudWatch(CloudWatchT &&value)
Definition Logging.h:62
const CloudWatchLogging & GetCloudWatch() const
Definition Logging.h:59
AWS_LAMBDAMICROVMS_API Aws::Utils::Json::JsonValue Jsonize() const
Logging & WithDisabled(DisabledT &&value)
Definition Logging.h:49
AWS_LAMBDAMICROVMS_API Logging & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDisabled(DisabledT &&value)
Definition Logging.h:44
Aws::Utils::Json::JsonValue JsonValue