AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ExportTask.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/logs/model/ExportTaskStatus.h>
10#include <aws/logs/model/ExportTaskExecutionInfo.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudWatchLogs
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CLOUDWATCHLOGS_API ExportTask() = default;
37 AWS_CLOUDWATCHLOGS_API ExportTask(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHLOGS_API ExportTask& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetTaskId() const { return m_taskId; }
47 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
48 template<typename TaskIdT = Aws::String>
49 void SetTaskId(TaskIdT&& value) { m_taskIdHasBeenSet = true; m_taskId = std::forward<TaskIdT>(value); }
50 template<typename TaskIdT = Aws::String>
51 ExportTask& WithTaskId(TaskIdT&& value) { SetTaskId(std::forward<TaskIdT>(value)); return *this;}
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) { m_taskNameHasBeenSet = true; m_taskName = std::forward<TaskNameT>(value); }
62 template<typename TaskNameT = Aws::String>
63 ExportTask& WithTaskName(TaskNameT&& value) { SetTaskName(std::forward<TaskNameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
71 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
72 template<typename LogGroupNameT = Aws::String>
73 void SetLogGroupName(LogGroupNameT&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::forward<LogGroupNameT>(value); }
74 template<typename LogGroupNameT = Aws::String>
75 ExportTask& WithLogGroupName(LogGroupNameT&& value) { SetLogGroupName(std::forward<LogGroupNameT>(value)); return *this;}
77
79
84 inline long long GetFrom() const { return m_from; }
85 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
86 inline void SetFrom(long long value) { m_fromHasBeenSet = true; m_from = value; }
87 inline ExportTask& WithFrom(long long value) { SetFrom(value); return *this;}
89
91
96 inline long long GetTo() const { return m_to; }
97 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
98 inline void SetTo(long long value) { m_toHasBeenSet = true; m_to = value; }
99 inline ExportTask& WithTo(long long value) { SetTo(value); return *this;}
101
103
106 inline const Aws::String& GetDestination() const { return m_destination; }
107 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
108 template<typename DestinationT = Aws::String>
109 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
110 template<typename DestinationT = Aws::String>
111 ExportTask& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
113
115
119 inline const Aws::String& GetDestinationPrefix() const { return m_destinationPrefix; }
120 inline bool DestinationPrefixHasBeenSet() const { return m_destinationPrefixHasBeenSet; }
121 template<typename DestinationPrefixT = Aws::String>
122 void SetDestinationPrefix(DestinationPrefixT&& value) { m_destinationPrefixHasBeenSet = true; m_destinationPrefix = std::forward<DestinationPrefixT>(value); }
123 template<typename DestinationPrefixT = Aws::String>
124 ExportTask& WithDestinationPrefix(DestinationPrefixT&& value) { SetDestinationPrefix(std::forward<DestinationPrefixT>(value)); return *this;}
126
128
131 inline const ExportTaskStatus& GetStatus() const { return m_status; }
132 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
133 template<typename StatusT = ExportTaskStatus>
134 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
135 template<typename StatusT = ExportTaskStatus>
136 ExportTask& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
138
140
143 inline const ExportTaskExecutionInfo& GetExecutionInfo() const { return m_executionInfo; }
144 inline bool ExecutionInfoHasBeenSet() const { return m_executionInfoHasBeenSet; }
145 template<typename ExecutionInfoT = ExportTaskExecutionInfo>
146 void SetExecutionInfo(ExecutionInfoT&& value) { m_executionInfoHasBeenSet = true; m_executionInfo = std::forward<ExecutionInfoT>(value); }
147 template<typename ExecutionInfoT = ExportTaskExecutionInfo>
148 ExportTask& WithExecutionInfo(ExecutionInfoT&& value) { SetExecutionInfo(std::forward<ExecutionInfoT>(value)); return *this;}
150 private:
151
152 Aws::String m_taskId;
153 bool m_taskIdHasBeenSet = false;
154
155 Aws::String m_taskName;
156 bool m_taskNameHasBeenSet = false;
157
158 Aws::String m_logGroupName;
159 bool m_logGroupNameHasBeenSet = false;
160
161 long long m_from{0};
162 bool m_fromHasBeenSet = false;
163
164 long long m_to{0};
165 bool m_toHasBeenSet = false;
166
167 Aws::String m_destination;
168 bool m_destinationHasBeenSet = false;
169
170 Aws::String m_destinationPrefix;
171 bool m_destinationPrefixHasBeenSet = false;
172
173 ExportTaskStatus m_status;
174 bool m_statusHasBeenSet = false;
175
176 ExportTaskExecutionInfo m_executionInfo;
177 bool m_executionInfoHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace CloudWatchLogs
182} // namespace Aws
const Aws::String & GetTaskName() const
Definition ExportTask.h:58
ExportTask & WithDestination(DestinationT &&value)
Definition ExportTask.h:111
AWS_CLOUDWATCHLOGS_API ExportTask(Aws::Utils::Json::JsonView jsonValue)
ExportTask & WithTo(long long value)
Definition ExportTask.h:99
ExportTask & WithStatus(StatusT &&value)
Definition ExportTask.h:136
ExportTask & WithFrom(long long value)
Definition ExportTask.h:87
void SetDestinationPrefix(DestinationPrefixT &&value)
Definition ExportTask.h:122
AWS_CLOUDWATCHLOGS_API ExportTask & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExecutionInfo(ExecutionInfoT &&value)
Definition ExportTask.h:146
ExportTask & WithLogGroupName(LogGroupNameT &&value)
Definition ExportTask.h:75
const ExportTaskExecutionInfo & GetExecutionInfo() const
Definition ExportTask.h:143
void SetTaskName(TaskNameT &&value)
Definition ExportTask.h:61
void SetDestination(DestinationT &&value)
Definition ExportTask.h:109
ExportTask & WithTaskName(TaskNameT &&value)
Definition ExportTask.h:63
const ExportTaskStatus & GetStatus() const
Definition ExportTask.h:131
AWS_CLOUDWATCHLOGS_API ExportTask()=default
const Aws::String & GetTaskId() const
Definition ExportTask.h:46
ExportTask & WithTaskId(TaskIdT &&value)
Definition ExportTask.h:51
const Aws::String & GetLogGroupName() const
Definition ExportTask.h:70
const Aws::String & GetDestinationPrefix() const
Definition ExportTask.h:119
ExportTask & WithDestinationPrefix(DestinationPrefixT &&value)
Definition ExportTask.h:124
void SetLogGroupName(LogGroupNameT &&value)
Definition ExportTask.h:73
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDestination() const
Definition ExportTask.h:106
ExportTask & WithExecutionInfo(ExecutionInfoT &&value)
Definition ExportTask.h:148
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue