AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LiveTailSessionUpdate.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/model/LiveTailSessionMetadata.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/logs/model/LiveTailSessionLogEvent.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
35 {
36 public:
37 AWS_CLOUDWATCHLOGS_API LiveTailSessionUpdate();
38 AWS_CLOUDWATCHLOGS_API LiveTailSessionUpdate(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const LiveTailSessionMetadata& GetSessionMetadata() const{ return m_sessionMetadata; }
48 inline bool SessionMetadataHasBeenSet() const { return m_sessionMetadataHasBeenSet; }
49 inline void SetSessionMetadata(const LiveTailSessionMetadata& value) { m_sessionMetadataHasBeenSet = true; m_sessionMetadata = value; }
50 inline void SetSessionMetadata(LiveTailSessionMetadata&& value) { m_sessionMetadataHasBeenSet = true; m_sessionMetadata = std::move(value); }
52 inline LiveTailSessionUpdate& WithSessionMetadata(LiveTailSessionMetadata&& value) { SetSessionMetadata(std::move(value)); return *this;}
54
56
63 inline const Aws::Vector<LiveTailSessionLogEvent>& GetSessionResults() const{ return m_sessionResults; }
64 inline bool SessionResultsHasBeenSet() const { return m_sessionResultsHasBeenSet; }
65 inline void SetSessionResults(const Aws::Vector<LiveTailSessionLogEvent>& value) { m_sessionResultsHasBeenSet = true; m_sessionResults = value; }
66 inline void SetSessionResults(Aws::Vector<LiveTailSessionLogEvent>&& value) { m_sessionResultsHasBeenSet = true; m_sessionResults = std::move(value); }
69 inline LiveTailSessionUpdate& AddSessionResults(const LiveTailSessionLogEvent& value) { m_sessionResultsHasBeenSet = true; m_sessionResults.push_back(value); return *this; }
70 inline LiveTailSessionUpdate& AddSessionResults(LiveTailSessionLogEvent&& value) { m_sessionResultsHasBeenSet = true; m_sessionResults.push_back(std::move(value)); return *this; }
72 private:
73
74 LiveTailSessionMetadata m_sessionMetadata;
75 bool m_sessionMetadataHasBeenSet = false;
76
78 bool m_sessionResultsHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace CloudWatchLogs
83} // namespace Aws
void SetSessionMetadata(LiveTailSessionMetadata &&value)
void SetSessionMetadata(const LiveTailSessionMetadata &value)
void SetSessionResults(const Aws::Vector< LiveTailSessionLogEvent > &value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSessionResults(Aws::Vector< LiveTailSessionLogEvent > &&value)
LiveTailSessionUpdate & WithSessionMetadata(LiveTailSessionMetadata &&value)
const Aws::Vector< LiveTailSessionLogEvent > & GetSessionResults() const
LiveTailSessionUpdate & WithSessionResults(const Aws::Vector< LiveTailSessionLogEvent > &value)
AWS_CLOUDWATCHLOGS_API LiveTailSessionUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API LiveTailSessionUpdate(Aws::Utils::Json::JsonView jsonValue)
LiveTailSessionUpdate & WithSessionMetadata(const LiveTailSessionMetadata &value)
const LiveTailSessionMetadata & GetSessionMetadata() const
LiveTailSessionUpdate & AddSessionResults(LiveTailSessionLogEvent &&value)
LiveTailSessionUpdate & WithSessionResults(Aws::Vector< LiveTailSessionLogEvent > &&value)
LiveTailSessionUpdate & AddSessionResults(const LiveTailSessionLogEvent &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue