AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
OutputLogEvent.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CloudWatchLogs {
20namespace Model {
21
28 public:
29 AWS_CLOUDWATCHLOGS_API OutputLogEvent() = default;
30 AWS_CLOUDWATCHLOGS_API OutputLogEvent(Aws::Utils::Json::JsonView jsonValue);
31 AWS_CLOUDWATCHLOGS_API OutputLogEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline long long GetTimestamp() const { return m_timestamp; }
40 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
41 inline void SetTimestamp(long long value) {
42 m_timestampHasBeenSet = true;
43 m_timestamp = value;
44 }
45 inline OutputLogEvent& WithTimestamp(long long value) {
46 SetTimestamp(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetMessage() const { return m_message; }
56 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
57 template <typename MessageT = Aws::String>
58 void SetMessage(MessageT&& value) {
59 m_messageHasBeenSet = true;
60 m_message = std::forward<MessageT>(value);
61 }
62 template <typename MessageT = Aws::String>
63 OutputLogEvent& WithMessage(MessageT&& value) {
64 SetMessage(std::forward<MessageT>(value));
65 return *this;
66 }
68
70
74 inline long long GetIngestionTime() const { return m_ingestionTime; }
75 inline bool IngestionTimeHasBeenSet() const { return m_ingestionTimeHasBeenSet; }
76 inline void SetIngestionTime(long long value) {
77 m_ingestionTimeHasBeenSet = true;
78 m_ingestionTime = value;
79 }
80 inline OutputLogEvent& WithIngestionTime(long long value) {
81 SetIngestionTime(value);
82 return *this;
83 }
85 private:
86 long long m_timestamp{0};
87
88 Aws::String m_message;
89
90 long long m_ingestionTime{0};
91 bool m_timestampHasBeenSet = false;
92 bool m_messageHasBeenSet = false;
93 bool m_ingestionTimeHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace CloudWatchLogs
98} // namespace Aws
AWS_CLOUDWATCHLOGS_API OutputLogEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API OutputLogEvent(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMessage() const
OutputLogEvent & WithIngestionTime(long long value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
OutputLogEvent & WithMessage(MessageT &&value)
OutputLogEvent & WithTimestamp(long long value)
AWS_CLOUDWATCHLOGS_API OutputLogEvent()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue