AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
OutputLogEvent.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudWatchLogs
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_CLOUDWATCHLOGS_API OutputLogEvent() = default;
35 AWS_CLOUDWATCHLOGS_API OutputLogEvent(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CLOUDWATCHLOGS_API OutputLogEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
45 inline long long GetTimestamp() const { return m_timestamp; }
46 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
47 inline void SetTimestamp(long long value) { m_timestampHasBeenSet = true; m_timestamp = value; }
48 inline OutputLogEvent& WithTimestamp(long long value) { SetTimestamp(value); return *this;}
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) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
59 template<typename MessageT = Aws::String>
60 OutputLogEvent& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
62
64
68 inline long long GetIngestionTime() const { return m_ingestionTime; }
69 inline bool IngestionTimeHasBeenSet() const { return m_ingestionTimeHasBeenSet; }
70 inline void SetIngestionTime(long long value) { m_ingestionTimeHasBeenSet = true; m_ingestionTime = value; }
71 inline OutputLogEvent& WithIngestionTime(long long value) { SetIngestionTime(value); return *this;}
73 private:
74
75 long long m_timestamp{0};
76 bool m_timestampHasBeenSet = false;
77
78 Aws::String m_message;
79 bool m_messageHasBeenSet = false;
80
81 long long m_ingestionTime{0};
82 bool m_ingestionTimeHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace CloudWatchLogs
87} // 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