AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ParseToOCSF.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/logs/model/EventSource.h>
10#include <aws/logs/model/OCSFVersion.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudWatchLogs
24{
25namespace Model
26{
27
39 {
40 public:
41 AWS_CLOUDWATCHLOGS_API ParseToOCSF() = default;
42 AWS_CLOUDWATCHLOGS_API ParseToOCSF(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CLOUDWATCHLOGS_API ParseToOCSF& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::String& GetSource() const { return m_source; }
53 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
54 template<typename SourceT = Aws::String>
55 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
56 template<typename SourceT = Aws::String>
57 ParseToOCSF& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
59
61
65 inline EventSource GetEventSource() const { return m_eventSource; }
66 inline bool EventSourceHasBeenSet() const { return m_eventSourceHasBeenSet; }
67 inline void SetEventSource(EventSource value) { m_eventSourceHasBeenSet = true; m_eventSource = value; }
68 inline ParseToOCSF& WithEventSource(EventSource value) { SetEventSource(value); return *this;}
70
72
76 inline OCSFVersion GetOcsfVersion() const { return m_ocsfVersion; }
77 inline bool OcsfVersionHasBeenSet() const { return m_ocsfVersionHasBeenSet; }
78 inline void SetOcsfVersion(OCSFVersion value) { m_ocsfVersionHasBeenSet = true; m_ocsfVersion = value; }
79 inline ParseToOCSF& WithOcsfVersion(OCSFVersion value) { SetOcsfVersion(value); return *this;}
81 private:
82
83 Aws::String m_source;
84 bool m_sourceHasBeenSet = false;
85
86 EventSource m_eventSource{EventSource::NOT_SET};
87 bool m_eventSourceHasBeenSet = false;
88
89 OCSFVersion m_ocsfVersion{OCSFVersion::NOT_SET};
90 bool m_ocsfVersionHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace CloudWatchLogs
95} // namespace Aws
AWS_CLOUDWATCHLOGS_API ParseToOCSF()=default
ParseToOCSF & WithEventSource(EventSource value)
Definition ParseToOCSF.h:68
AWS_CLOUDWATCHLOGS_API ParseToOCSF & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEventSource(EventSource value)
Definition ParseToOCSF.h:67
const Aws::String & GetSource() const
Definition ParseToOCSF.h:52
AWS_CLOUDWATCHLOGS_API ParseToOCSF(Aws::Utils::Json::JsonView jsonValue)
ParseToOCSF & WithSource(SourceT &&value)
Definition ParseToOCSF.h:57
void SetOcsfVersion(OCSFVersion value)
Definition ParseToOCSF.h:78
ParseToOCSF & WithOcsfVersion(OCSFVersion value)
Definition ParseToOCSF.h:79
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue