AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ExportTask.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9#include <aws/logs/model/ExportTaskExecutionInfo.h>
10#include <aws/logs/model/ExportTaskStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudWatchLogs {
22namespace Model {
23
30 public:
31 AWS_CLOUDWATCHLOGS_API ExportTask() = default;
32 AWS_CLOUDWATCHLOGS_API ExportTask(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDWATCHLOGS_API ExportTask& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetTaskId() const { return m_taskId; }
41 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
42 template <typename TaskIdT = Aws::String>
43 void SetTaskId(TaskIdT&& value) {
44 m_taskIdHasBeenSet = true;
45 m_taskId = std::forward<TaskIdT>(value);
46 }
47 template <typename TaskIdT = Aws::String>
48 ExportTask& WithTaskId(TaskIdT&& value) {
49 SetTaskId(std::forward<TaskIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetTaskName() const { return m_taskName; }
59 inline bool TaskNameHasBeenSet() const { return m_taskNameHasBeenSet; }
60 template <typename TaskNameT = Aws::String>
61 void SetTaskName(TaskNameT&& value) {
62 m_taskNameHasBeenSet = true;
63 m_taskName = std::forward<TaskNameT>(value);
64 }
65 template <typename TaskNameT = Aws::String>
66 ExportTask& WithTaskName(TaskNameT&& value) {
67 SetTaskName(std::forward<TaskNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
77 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
78 template <typename LogGroupNameT = Aws::String>
79 void SetLogGroupName(LogGroupNameT&& value) {
80 m_logGroupNameHasBeenSet = true;
81 m_logGroupName = std::forward<LogGroupNameT>(value);
82 }
83 template <typename LogGroupNameT = Aws::String>
84 ExportTask& WithLogGroupName(LogGroupNameT&& value) {
85 SetLogGroupName(std::forward<LogGroupNameT>(value));
86 return *this;
87 }
89
91
96 inline long long GetFrom() const { return m_from; }
97 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
98 inline void SetFrom(long long value) {
99 m_fromHasBeenSet = true;
100 m_from = value;
101 }
102 inline ExportTask& WithFrom(long long value) {
103 SetFrom(value);
104 return *this;
105 }
107
109
114 inline long long GetTo() const { return m_to; }
115 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
116 inline void SetTo(long long value) {
117 m_toHasBeenSet = true;
118 m_to = value;
119 }
120 inline ExportTask& WithTo(long long value) {
121 SetTo(value);
122 return *this;
123 }
125
127
130 inline const Aws::String& GetDestination() const { return m_destination; }
131 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
132 template <typename DestinationT = Aws::String>
133 void SetDestination(DestinationT&& value) {
134 m_destinationHasBeenSet = true;
135 m_destination = std::forward<DestinationT>(value);
136 }
137 template <typename DestinationT = Aws::String>
138 ExportTask& WithDestination(DestinationT&& value) {
139 SetDestination(std::forward<DestinationT>(value));
140 return *this;
141 }
143
145
149 inline const Aws::String& GetDestinationPrefix() const { return m_destinationPrefix; }
150 inline bool DestinationPrefixHasBeenSet() const { return m_destinationPrefixHasBeenSet; }
151 template <typename DestinationPrefixT = Aws::String>
152 void SetDestinationPrefix(DestinationPrefixT&& value) {
153 m_destinationPrefixHasBeenSet = true;
154 m_destinationPrefix = std::forward<DestinationPrefixT>(value);
155 }
156 template <typename DestinationPrefixT = Aws::String>
157 ExportTask& WithDestinationPrefix(DestinationPrefixT&& value) {
158 SetDestinationPrefix(std::forward<DestinationPrefixT>(value));
159 return *this;
160 }
162
164
167 inline const ExportTaskStatus& GetStatus() const { return m_status; }
168 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
169 template <typename StatusT = ExportTaskStatus>
170 void SetStatus(StatusT&& value) {
171 m_statusHasBeenSet = true;
172 m_status = std::forward<StatusT>(value);
173 }
174 template <typename StatusT = ExportTaskStatus>
175 ExportTask& WithStatus(StatusT&& value) {
176 SetStatus(std::forward<StatusT>(value));
177 return *this;
178 }
180
182
185 inline const ExportTaskExecutionInfo& GetExecutionInfo() const { return m_executionInfo; }
186 inline bool ExecutionInfoHasBeenSet() const { return m_executionInfoHasBeenSet; }
187 template <typename ExecutionInfoT = ExportTaskExecutionInfo>
188 void SetExecutionInfo(ExecutionInfoT&& value) {
189 m_executionInfoHasBeenSet = true;
190 m_executionInfo = std::forward<ExecutionInfoT>(value);
191 }
192 template <typename ExecutionInfoT = ExportTaskExecutionInfo>
193 ExportTask& WithExecutionInfo(ExecutionInfoT&& value) {
194 SetExecutionInfo(std::forward<ExecutionInfoT>(value));
195 return *this;
196 }
198 private:
199 Aws::String m_taskId;
200
201 Aws::String m_taskName;
202
203 Aws::String m_logGroupName;
204
205 long long m_from{0};
206
207 long long m_to{0};
208
209 Aws::String m_destination;
210
211 Aws::String m_destinationPrefix;
212
213 ExportTaskStatus m_status;
214
215 ExportTaskExecutionInfo m_executionInfo;
216 bool m_taskIdHasBeenSet = false;
217 bool m_taskNameHasBeenSet = false;
218 bool m_logGroupNameHasBeenSet = false;
219 bool m_fromHasBeenSet = false;
220 bool m_toHasBeenSet = false;
221 bool m_destinationHasBeenSet = false;
222 bool m_destinationPrefixHasBeenSet = false;
223 bool m_statusHasBeenSet = false;
224 bool m_executionInfoHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace CloudWatchLogs
229} // namespace Aws
const Aws::String & GetTaskName() const
Definition ExportTask.h:58
ExportTask & WithDestination(DestinationT &&value)
Definition ExportTask.h:138
AWS_CLOUDWATCHLOGS_API ExportTask(Aws::Utils::Json::JsonView jsonValue)
ExportTask & WithTo(long long value)
Definition ExportTask.h:120
ExportTask & WithStatus(StatusT &&value)
Definition ExportTask.h:175
ExportTask & WithFrom(long long value)
Definition ExportTask.h:102
void SetDestinationPrefix(DestinationPrefixT &&value)
Definition ExportTask.h:152
AWS_CLOUDWATCHLOGS_API ExportTask & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExecutionInfo(ExecutionInfoT &&value)
Definition ExportTask.h:188
ExportTask & WithLogGroupName(LogGroupNameT &&value)
Definition ExportTask.h:84
const ExportTaskExecutionInfo & GetExecutionInfo() const
Definition ExportTask.h:185
void SetTaskName(TaskNameT &&value)
Definition ExportTask.h:61
void SetDestination(DestinationT &&value)
Definition ExportTask.h:133
ExportTask & WithTaskName(TaskNameT &&value)
Definition ExportTask.h:66
const ExportTaskStatus & GetStatus() const
Definition ExportTask.h:167
AWS_CLOUDWATCHLOGS_API ExportTask()=default
const Aws::String & GetTaskId() const
Definition ExportTask.h:40
ExportTask & WithTaskId(TaskIdT &&value)
Definition ExportTask.h:48
const Aws::String & GetLogGroupName() const
Definition ExportTask.h:76
const Aws::String & GetDestinationPrefix() const
Definition ExportTask.h:149
ExportTask & WithDestinationPrefix(DestinationPrefixT &&value)
Definition ExportTask.h:157
void SetLogGroupName(LogGroupNameT &&value)
Definition ExportTask.h:79
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDestination() const
Definition ExportTask.h:130
ExportTask & WithExecutionInfo(ExecutionInfoT &&value)
Definition ExportTask.h:193
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue