AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
CloudWatchLog.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityagent/SecurityAgent_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityAgent {
20namespace Model {
21
29 public:
30 AWS_SECURITYAGENT_API CloudWatchLog() = default;
31 AWS_SECURITYAGENT_API CloudWatchLog(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYAGENT_API CloudWatchLog& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYAGENT_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 CloudWatchLog& 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 CloudWatchLog& 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 SecurityAgent
80} // namespace Aws
CloudWatchLog & WithLogGroup(LogGroupT &&value)
const Aws::String & GetLogStream() const
CloudWatchLog & WithLogStream(LogStreamT &&value)
AWS_SECURITYAGENT_API CloudWatchLog()=default
AWS_SECURITYAGENT_API CloudWatchLog & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLogGroup() const
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLogStream(LogStreamT &&value)
AWS_SECURITYAGENT_API CloudWatchLog(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue