AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
LogLocation.h
1
6#pragma once
7#include <aws/securityagent/SecurityAgent_EXPORTS.h>
8#include <aws/securityagent/model/CloudWatchLog.h>
9#include <aws/securityagent/model/LogType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityAgent {
21namespace Model {
22
30 public:
31 AWS_SECURITYAGENT_API LogLocation() = default;
32 AWS_SECURITYAGENT_API LogLocation(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYAGENT_API LogLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline LogType GetLogType() const { return m_logType; }
41 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
42 inline void SetLogType(LogType value) {
43 m_logTypeHasBeenSet = true;
44 m_logType = value;
45 }
47 SetLogType(value);
48 return *this;
49 }
51
53
56 inline const CloudWatchLog& GetCloudWatchLog() const { return m_cloudWatchLog; }
57 inline bool CloudWatchLogHasBeenSet() const { return m_cloudWatchLogHasBeenSet; }
58 template <typename CloudWatchLogT = CloudWatchLog>
59 void SetCloudWatchLog(CloudWatchLogT&& value) {
60 m_cloudWatchLogHasBeenSet = true;
61 m_cloudWatchLog = std::forward<CloudWatchLogT>(value);
62 }
63 template <typename CloudWatchLogT = CloudWatchLog>
64 LogLocation& WithCloudWatchLog(CloudWatchLogT&& value) {
65 SetCloudWatchLog(std::forward<CloudWatchLogT>(value));
66 return *this;
67 }
69 private:
70 LogType m_logType{LogType::NOT_SET};
71
72 CloudWatchLog m_cloudWatchLog;
73 bool m_logTypeHasBeenSet = false;
74 bool m_cloudWatchLogHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace SecurityAgent
79} // namespace Aws
const CloudWatchLog & GetCloudWatchLog() const
Definition LogLocation.h:56
AWS_SECURITYAGENT_API LogLocation()=default
LogLocation & WithLogType(LogType value)
Definition LogLocation.h:46
AWS_SECURITYAGENT_API LogLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYAGENT_API LogLocation(Aws::Utils::Json::JsonView jsonValue)
LogLocation & WithCloudWatchLog(CloudWatchLogT &&value)
Definition LogLocation.h:64
void SetCloudWatchLog(CloudWatchLogT &&value)
Definition LogLocation.h:59
Aws::Utils::Json::JsonValue JsonValue