AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetLogObjectRequest.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/logs/model/GetLogObjectHandler.h>
10#include <aws/core/utils/event/EventStreamDecoder.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudWatchLogs
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_CLOUDWATCHLOGS_API GetLogObjectRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "GetLogObject"; }
36
37 inline virtual bool HasEventStreamResponse() const override { return true; }
38 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
39
40 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
46
50 inline GetLogObjectHandler& GetEventStreamHandler() { return m_handler; }
51
55 inline void SetEventStreamHandler(const GetLogObjectHandler& value) { m_handler = value; m_decoder.ResetEventStreamHandler(&m_handler); }
56
61
62
64
69 inline bool GetUnmask() const { return m_unmask; }
70 inline bool UnmaskHasBeenSet() const { return m_unmaskHasBeenSet; }
71 inline void SetUnmask(bool value) { m_unmaskHasBeenSet = true; m_unmask = value; }
72 inline GetLogObjectRequest& WithUnmask(bool value) { SetUnmask(value); return *this;}
74
76
81 inline const Aws::String& GetLogObjectPointer() const { return m_logObjectPointer; }
82 inline bool LogObjectPointerHasBeenSet() const { return m_logObjectPointerHasBeenSet; }
83 template<typename LogObjectPointerT = Aws::String>
84 void SetLogObjectPointer(LogObjectPointerT&& value) { m_logObjectPointerHasBeenSet = true; m_logObjectPointer = std::forward<LogObjectPointerT>(value); }
85 template<typename LogObjectPointerT = Aws::String>
86 GetLogObjectRequest& WithLogObjectPointer(LogObjectPointerT&& value) { SetLogObjectPointer(std::forward<LogObjectPointerT>(value)); return *this;}
88 private:
89
90 bool m_unmask{false};
91 bool m_unmaskHasBeenSet = false;
92
93 Aws::String m_logObjectPointer;
94 bool m_logObjectPointerHasBeenSet = false;
95 GetLogObjectHandler m_handler;
97
98 };
99
100} // namespace Model
101} // namespace CloudWatchLogs
102} // namespace Aws
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Utils::Event::EventStreamDecoder & GetEventStreamDecoder()
AWS_CLOUDWATCHLOGS_API GetLogObjectRequest()=default
void SetLogObjectPointer(LogObjectPointerT &&value)
GetLogObjectRequest & WithEventStreamHandler(const GetLogObjectHandler &value)
virtual const char * GetServiceRequestName() const override
void SetEventStreamHandler(const GetLogObjectHandler &value)
GetLogObjectRequest & WithLogObjectPointer(LogObjectPointerT &&value)
void ResetEventStreamHandler(EventStreamHandler *handler)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String