AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetLogObjectRequest.h
1
6#pragma once
7#include <aws/core/utils/event/EventStreamDecoder.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/logs/CloudWatchLogsRequest.h>
10#include <aws/logs/CloudWatchLogs_EXPORTS.h>
11#include <aws/logs/model/GetLogObjectHandler.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CloudWatchLogs {
17namespace Model {
18
25 public:
26 AWS_CLOUDWATCHLOGS_API GetLogObjectRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "GetLogObject"; }
33
34 inline virtual bool HasEventStreamResponse() const override { return true; }
35 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
36
37 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
43
47 inline GetLogObjectHandler& GetEventStreamHandler() { return m_handler; }
48
52 inline void SetEventStreamHandler(const GetLogObjectHandler& value) {
53 m_handler = value;
54 m_decoder.ResetEventStreamHandler(&m_handler);
55 }
56
62 return *this;
63 }
64
66
71 inline bool GetUnmask() const { return m_unmask; }
72 inline bool UnmaskHasBeenSet() const { return m_unmaskHasBeenSet; }
73 inline void SetUnmask(bool value) {
74 m_unmaskHasBeenSet = true;
75 m_unmask = value;
76 }
77 inline GetLogObjectRequest& WithUnmask(bool value) {
78 SetUnmask(value);
79 return *this;
80 }
82
84
89 inline const Aws::String& GetLogObjectPointer() const { return m_logObjectPointer; }
90 inline bool LogObjectPointerHasBeenSet() const { return m_logObjectPointerHasBeenSet; }
91 template <typename LogObjectPointerT = Aws::String>
92 void SetLogObjectPointer(LogObjectPointerT&& value) {
93 m_logObjectPointerHasBeenSet = true;
94 m_logObjectPointer = std::forward<LogObjectPointerT>(value);
95 }
96 template <typename LogObjectPointerT = Aws::String>
97 GetLogObjectRequest& WithLogObjectPointer(LogObjectPointerT&& value) {
98 SetLogObjectPointer(std::forward<LogObjectPointerT>(value));
99 return *this;
100 }
102 private:
103 bool m_unmask{false};
104
105 Aws::String m_logObjectPointer;
106 GetLogObjectHandler m_handler;
108
109 bool m_unmaskHasBeenSet = false;
110 bool m_logObjectPointerHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace CloudWatchLogs
115} // 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