AWS SDK for C++

AWS SDK for C++ Version 1.11.785

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
28 public:
29 AWS_SECURITYAGENT_API CloudWatchLog() = default;
30 AWS_SECURITYAGENT_API CloudWatchLog(Aws::Utils::Json::JsonView jsonValue);
31 AWS_SECURITYAGENT_API CloudWatchLog& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetLogGroup() const { return m_logGroup; }
39 inline bool LogGroupHasBeenSet() const { return m_logGroupHasBeenSet; }
40 template <typename LogGroupT = Aws::String>
41 void SetLogGroup(LogGroupT&& value) {
42 m_logGroupHasBeenSet = true;
43 m_logGroup = std::forward<LogGroupT>(value);
44 }
45 template <typename LogGroupT = Aws::String>
46 CloudWatchLog& WithLogGroup(LogGroupT&& value) {
47 SetLogGroup(std::forward<LogGroupT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetLogStream() const { return m_logStream; }
57 inline bool LogStreamHasBeenSet() const { return m_logStreamHasBeenSet; }
58 template <typename LogStreamT = Aws::String>
59 void SetLogStream(LogStreamT&& value) {
60 m_logStreamHasBeenSet = true;
61 m_logStream = std::forward<LogStreamT>(value);
62 }
63 template <typename LogStreamT = Aws::String>
64 CloudWatchLog& WithLogStream(LogStreamT&& value) {
65 SetLogStream(std::forward<LogStreamT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_logGroup;
71
72 Aws::String m_logStream;
73 bool m_logGroupHasBeenSet = false;
74 bool m_logStreamHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace SecurityAgent
79} // 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