AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
GetContainerLogRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/LightsailRequest.h>
10#include <aws/lightsail/Lightsail_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Lightsail {
16namespace Model {
17
21 public:
22 AWS_LIGHTSAIL_API GetContainerLogRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetContainerLog"; }
29
30 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetServiceName() const { return m_serviceName; }
39 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
40 template <typename ServiceNameT = Aws::String>
41 void SetServiceName(ServiceNameT&& value) {
42 m_serviceNameHasBeenSet = true;
43 m_serviceName = std::forward<ServiceNameT>(value);
44 }
45 template <typename ServiceNameT = Aws::String>
46 GetContainerLogRequest& WithServiceName(ServiceNameT&& value) {
47 SetServiceName(std::forward<ServiceNameT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetContainerName() const { return m_containerName; }
58 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
59 template <typename ContainerNameT = Aws::String>
60 void SetContainerName(ContainerNameT&& value) {
61 m_containerNameHasBeenSet = true;
62 m_containerName = std::forward<ContainerNameT>(value);
63 }
64 template <typename ContainerNameT = Aws::String>
65 GetContainerLogRequest& WithContainerName(ContainerNameT&& value) {
66 SetContainerName(std::forward<ContainerNameT>(value));
67 return *this;
68 }
70
72
81 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
82 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
83 template <typename StartTimeT = Aws::Utils::DateTime>
84 void SetStartTime(StartTimeT&& value) {
85 m_startTimeHasBeenSet = true;
86 m_startTime = std::forward<StartTimeT>(value);
87 }
88 template <typename StartTimeT = Aws::Utils::DateTime>
90 SetStartTime(std::forward<StartTimeT>(value));
91 return *this;
92 }
94
96
105 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
106 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
107 template <typename EndTimeT = Aws::Utils::DateTime>
108 void SetEndTime(EndTimeT&& value) {
109 m_endTimeHasBeenSet = true;
110 m_endTime = std::forward<EndTimeT>(value);
111 }
112 template <typename EndTimeT = Aws::Utils::DateTime>
114 SetEndTime(std::forward<EndTimeT>(value));
115 return *this;
116 }
118
120
135 inline const Aws::String& GetFilterPattern() const { return m_filterPattern; }
136 inline bool FilterPatternHasBeenSet() const { return m_filterPatternHasBeenSet; }
137 template <typename FilterPatternT = Aws::String>
138 void SetFilterPattern(FilterPatternT&& value) {
139 m_filterPatternHasBeenSet = true;
140 m_filterPattern = std::forward<FilterPatternT>(value);
141 }
142 template <typename FilterPatternT = Aws::String>
143 GetContainerLogRequest& WithFilterPattern(FilterPatternT&& value) {
144 SetFilterPattern(std::forward<FilterPatternT>(value));
145 return *this;
146 }
148
150
156 inline const Aws::String& GetPageToken() const { return m_pageToken; }
157 inline bool PageTokenHasBeenSet() const { return m_pageTokenHasBeenSet; }
158 template <typename PageTokenT = Aws::String>
159 void SetPageToken(PageTokenT&& value) {
160 m_pageTokenHasBeenSet = true;
161 m_pageToken = std::forward<PageTokenT>(value);
162 }
163 template <typename PageTokenT = Aws::String>
165 SetPageToken(std::forward<PageTokenT>(value));
166 return *this;
167 }
169 private:
170 Aws::String m_serviceName;
171 bool m_serviceNameHasBeenSet = false;
172
173 Aws::String m_containerName;
174 bool m_containerNameHasBeenSet = false;
175
176 Aws::Utils::DateTime m_startTime{};
177 bool m_startTimeHasBeenSet = false;
178
179 Aws::Utils::DateTime m_endTime{};
180 bool m_endTimeHasBeenSet = false;
181
182 Aws::String m_filterPattern;
183 bool m_filterPatternHasBeenSet = false;
184
185 Aws::String m_pageToken;
186 bool m_pageTokenHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace Lightsail
191} // namespace Aws
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetContainerLogRequest & WithEndTime(EndTimeT &&value)
GetContainerLogRequest & WithFilterPattern(FilterPatternT &&value)
virtual const char * GetServiceRequestName() const override
AWS_LIGHTSAIL_API GetContainerLogRequest()=default
GetContainerLogRequest & WithStartTime(StartTimeT &&value)
const Aws::Utils::DateTime & GetStartTime() const
GetContainerLogRequest & WithContainerName(ContainerNameT &&value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
GetContainerLogRequest & WithServiceName(ServiceNameT &&value)
const Aws::Utils::DateTime & GetEndTime() const
GetContainerLogRequest & WithPageToken(PageTokenT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String