AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetContainerLogRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Lightsail
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_LIGHTSAIL_API GetContainerLogRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetContainerLog"; }
32
33 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetServiceName() const { return m_serviceName; }
43 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
44 template<typename ServiceNameT = Aws::String>
45 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
46 template<typename ServiceNameT = Aws::String>
47 GetContainerLogRequest& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
49
51
55 inline const Aws::String& GetContainerName() const { return m_containerName; }
56 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
57 template<typename ContainerNameT = Aws::String>
58 void SetContainerName(ContainerNameT&& value) { m_containerNameHasBeenSet = true; m_containerName = std::forward<ContainerNameT>(value); }
59 template<typename ContainerNameT = Aws::String>
60 GetContainerLogRequest& WithContainerName(ContainerNameT&& value) { SetContainerName(std::forward<ContainerNameT>(value)); return *this;}
62
64
73 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
74 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
75 template<typename StartTimeT = Aws::Utils::DateTime>
76 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
77 template<typename StartTimeT = Aws::Utils::DateTime>
78 GetContainerLogRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
80
82
91 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
92 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
93 template<typename EndTimeT = Aws::Utils::DateTime>
94 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
95 template<typename EndTimeT = Aws::Utils::DateTime>
96 GetContainerLogRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
98
100
115 inline const Aws::String& GetFilterPattern() const { return m_filterPattern; }
116 inline bool FilterPatternHasBeenSet() const { return m_filterPatternHasBeenSet; }
117 template<typename FilterPatternT = Aws::String>
118 void SetFilterPattern(FilterPatternT&& value) { m_filterPatternHasBeenSet = true; m_filterPattern = std::forward<FilterPatternT>(value); }
119 template<typename FilterPatternT = Aws::String>
120 GetContainerLogRequest& WithFilterPattern(FilterPatternT&& value) { SetFilterPattern(std::forward<FilterPatternT>(value)); return *this;}
122
124
130 inline const Aws::String& GetPageToken() const { return m_pageToken; }
131 inline bool PageTokenHasBeenSet() const { return m_pageTokenHasBeenSet; }
132 template<typename PageTokenT = Aws::String>
133 void SetPageToken(PageTokenT&& value) { m_pageTokenHasBeenSet = true; m_pageToken = std::forward<PageTokenT>(value); }
134 template<typename PageTokenT = Aws::String>
135 GetContainerLogRequest& WithPageToken(PageTokenT&& value) { SetPageToken(std::forward<PageTokenT>(value)); return *this;}
137 private:
138
139 Aws::String m_serviceName;
140 bool m_serviceNameHasBeenSet = false;
141
142 Aws::String m_containerName;
143 bool m_containerNameHasBeenSet = false;
144
145 Aws::Utils::DateTime m_startTime{};
146 bool m_startTimeHasBeenSet = false;
147
148 Aws::Utils::DateTime m_endTime{};
149 bool m_endTimeHasBeenSet = false;
150
151 Aws::String m_filterPattern;
152 bool m_filterPatternHasBeenSet = false;
153
154 Aws::String m_pageToken;
155 bool m_pageTokenHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace Lightsail
160} // 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