AWS SDK for C++

AWS SDK for C++ Version 1.11.834

Loading...
Searching...
No Matches
CloudWatchLogging.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lambda-microvms/LambdaMicrovms_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LambdaMicrovms {
20namespace Model {
21
29 public:
30 AWS_LAMBDAMICROVMS_API CloudWatchLogging() = default;
31 AWS_LAMBDAMICROVMS_API CloudWatchLogging(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LAMBDAMICROVMS_API CloudWatchLogging& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LAMBDAMICROVMS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetLogGroup() const { return m_logGroup; }
40 inline bool LogGroupHasBeenSet() const { return m_logGroupHasBeenSet; }
41 template <typename LogGroupT = Aws::String>
42 void SetLogGroup(LogGroupT&& value) {
43 m_logGroupHasBeenSet = true;
44 m_logGroup = std::forward<LogGroupT>(value);
45 }
46 template <typename LogGroupT = Aws::String>
47 CloudWatchLogging& WithLogGroup(LogGroupT&& value) {
48 SetLogGroup(std::forward<LogGroupT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetLogStream() const { return m_logStream; }
58 inline bool LogStreamHasBeenSet() const { return m_logStreamHasBeenSet; }
59 template <typename LogStreamT = Aws::String>
60 void SetLogStream(LogStreamT&& value) {
61 m_logStreamHasBeenSet = true;
62 m_logStream = std::forward<LogStreamT>(value);
63 }
64 template <typename LogStreamT = Aws::String>
65 CloudWatchLogging& WithLogStream(LogStreamT&& value) {
66 SetLogStream(std::forward<LogStreamT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_logGroup;
72
73 Aws::String m_logStream;
74 bool m_logGroupHasBeenSet = false;
75 bool m_logStreamHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace LambdaMicrovms
80} // namespace Aws
AWS_LAMBDAMICROVMS_API CloudWatchLogging()=default
AWS_LAMBDAMICROVMS_API CloudWatchLogging(Aws::Utils::Json::JsonView jsonValue)
CloudWatchLogging & WithLogGroup(LogGroupT &&value)
AWS_LAMBDAMICROVMS_API Aws::Utils::Json::JsonValue Jsonize() const
CloudWatchLogging & WithLogStream(LogStreamT &&value)
AWS_LAMBDAMICROVMS_API CloudWatchLogging & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue