AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
49 inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
50 inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
51 inline ExportTask& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
52 inline ExportTask& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
53 inline ExportTask& WithTaskId(const char* value) { SetTaskId(value); return *this;}
55
57
60 inline const Aws::String& GetTaskName() const{ return m_taskName; }
61 inline bool TaskNameHasBeenSet() const { return m_taskNameHasBeenSet; }
62 inline void SetTaskName(const Aws::String& value) { m_taskNameHasBeenSet = true; m_taskName = value; }
63 inline void SetTaskName(Aws::String&& value) { m_taskNameHasBeenSet = true; m_taskName = std::move(value); }
64 inline void SetTaskName(const char* value) { m_taskNameHasBeenSet = true; m_taskName.assign(value); }
65 inline ExportTask& WithTaskName(const Aws::String& value) { SetTaskName(value); return *this;}
66 inline ExportTask& WithTaskName(Aws::String&& value) { SetTaskName(std::move(value)); return *this;}
67 inline ExportTask& WithTaskName(const char* value) { SetTaskName(value); return *this;}
69
71
74 inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
75 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
76 inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
77 inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
78 inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
79 inline ExportTask& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
80 inline ExportTask& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
81 inline ExportTask& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
83
85
90 inline long long GetFrom() const{ return m_from; }
91 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
92 inline void SetFrom(long long value) { m_fromHasBeenSet = true; m_from = value; }
93 inline ExportTask& WithFrom(long long value) { SetFrom(value); return *this;}
95
97
102 inline long long GetTo() const{ return m_to; }
103 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
104 inline void SetTo(long long value) { m_toHasBeenSet = true; m_to = value; }
105 inline ExportTask& WithTo(long long value) { SetTo(value); return *this;}
107
109
112 inline const Aws::String& GetDestination() const{ return m_destination; }
113 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
114 inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; }
115 inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
116 inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); }
117 inline ExportTask& WithDestination(const Aws::String& value) { SetDestination(value); return *this;}
118 inline ExportTask& WithDestination(Aws::String&& value) { SetDestination(std::move(value)); return *this;}
119 inline ExportTask& WithDestination(const char* value) { SetDestination(value); return *this;}
121
123
127 inline const Aws::String& GetDestinationPrefix() const{ return m_destinationPrefix; }
128 inline bool DestinationPrefixHasBeenSet() const { return m_destinationPrefixHasBeenSet; }
129 inline void SetDestinationPrefix(const Aws::String& value) { m_destinationPrefixHasBeenSet = true; m_destinationPrefix = value; }
130 inline void SetDestinationPrefix(Aws::String&& value) { m_destinationPrefixHasBeenSet = true; m_destinationPrefix = std::move(value); }
131 inline void SetDestinationPrefix(const char* value) { m_destinationPrefixHasBeenSet = true; m_destinationPrefix.assign(value); }
132 inline ExportTask& WithDestinationPrefix(const Aws::String& value) { SetDestinationPrefix(value); return *this;}
133 inline ExportTask& WithDestinationPrefix(Aws::String&& value) { SetDestinationPrefix(std::move(value)); return *this;}
134 inline ExportTask& WithDestinationPrefix(const char* value) { SetDestinationPrefix(value); return *this;}
136
138
141 inline const ExportTaskStatus& GetStatus() const{ return m_status; }
142 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
143 inline void SetStatus(const ExportTaskStatus& value) { m_statusHasBeenSet = true; m_status = value; }
144 inline void SetStatus(ExportTaskStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
145 inline ExportTask& WithStatus(const ExportTaskStatus& value) { SetStatus(value); return *this;}
146 inline ExportTask& WithStatus(ExportTaskStatus&& value) { SetStatus(std::move(value)); return *this;}
148
150
153 inline const ExportTaskExecutionInfo& GetExecutionInfo() const{ return m_executionInfo; }
154 inline bool ExecutionInfoHasBeenSet() const { return m_executionInfoHasBeenSet; }
155 inline void SetExecutionInfo(const ExportTaskExecutionInfo& value) { m_executionInfoHasBeenSet = true; m_executionInfo = value; }
156 inline void SetExecutionInfo(ExportTaskExecutionInfo&& value) { m_executionInfoHasBeenSet = true; m_executionInfo = std::move(value); }
157 inline ExportTask& WithExecutionInfo(const ExportTaskExecutionInfo& value) { SetExecutionInfo(value); return *this;}
158 inline ExportTask& WithExecutionInfo(ExportTaskExecutionInfo&& value) { SetExecutionInfo(std::move(value)); return *this;}
160 private:
161
162 Aws::String m_taskId;
163 bool m_taskIdHasBeenSet = false;
164
165 Aws::String m_taskName;
166 bool m_taskNameHasBeenSet = false;
167
168 Aws::String m_logGroupName;
169 bool m_logGroupNameHasBeenSet = false;
170
171 long long m_from;
172 bool m_fromHasBeenSet = false;
173
174 long long m_to;
175 bool m_toHasBeenSet = false;
176
177 Aws::String m_destination;
178 bool m_destinationHasBeenSet = false;
179
180 Aws::String m_destinationPrefix;
181 bool m_destinationPrefixHasBeenSet = false;
182
183 ExportTaskStatus m_status;
184 bool m_statusHasBeenSet = false;
185
186 ExportTaskExecutionInfo m_executionInfo;
187 bool m_executionInfoHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace CloudWatchLogs
192} // namespace Aws
void SetStatus(ExportTaskStatus &&value)
Definition ExportTask.h:144
void SetTaskId(const Aws::String &value)
Definition ExportTask.h:48
const Aws::String & GetTaskName() const
Definition ExportTask.h:60
void SetLogGroupName(Aws::String &&value)
Definition ExportTask.h:77
void SetExecutionInfo(ExportTaskExecutionInfo &&value)
Definition ExportTask.h:156
AWS_CLOUDWATCHLOGS_API ExportTask(Aws::Utils::Json::JsonView jsonValue)
ExportTask & WithTo(long long value)
Definition ExportTask.h:105
AWS_CLOUDWATCHLOGS_API ExportTask()
void SetDestinationPrefix(const char *value)
Definition ExportTask.h:131
ExportTask & WithLogGroupName(Aws::String &&value)
Definition ExportTask.h:80
ExportTask & WithFrom(long long value)
Definition ExportTask.h:93
void SetExecutionInfo(const ExportTaskExecutionInfo &value)
Definition ExportTask.h:155
void SetTaskName(const char *value)
Definition ExportTask.h:64
void SetDestinationPrefix(Aws::String &&value)
Definition ExportTask.h:130
void SetDestination(Aws::String &&value)
Definition ExportTask.h:115
ExportTask & WithExecutionInfo(const ExportTaskExecutionInfo &value)
Definition ExportTask.h:157
ExportTask & WithDestination(const char *value)
Definition ExportTask.h:119
void SetDestinationPrefix(const Aws::String &value)
Definition ExportTask.h:129
AWS_CLOUDWATCHLOGS_API ExportTask & operator=(Aws::Utils::Json::JsonView jsonValue)
ExportTask & WithLogGroupName(const char *value)
Definition ExportTask.h:81
ExportTask & WithExecutionInfo(ExportTaskExecutionInfo &&value)
Definition ExportTask.h:158
ExportTask & WithLogGroupName(const Aws::String &value)
Definition ExportTask.h:79
void SetTaskName(Aws::String &&value)
Definition ExportTask.h:63
ExportTask & WithDestination(Aws::String &&value)
Definition ExportTask.h:118
const ExportTaskExecutionInfo & GetExecutionInfo() const
Definition ExportTask.h:153
void SetDestination(const char *value)
Definition ExportTask.h:116
ExportTask & WithStatus(const ExportTaskStatus &value)
Definition ExportTask.h:145
ExportTask & WithDestination(const Aws::String &value)
Definition ExportTask.h:117
ExportTask & WithTaskName(Aws::String &&value)
Definition ExportTask.h:66
void SetDestination(const Aws::String &value)
Definition ExportTask.h:114
const ExportTaskStatus & GetStatus() const
Definition ExportTask.h:141
ExportTask & WithStatus(ExportTaskStatus &&value)
Definition ExportTask.h:146
ExportTask & WithTaskId(const Aws::String &value)
Definition ExportTask.h:51
ExportTask & WithDestinationPrefix(const Aws::String &value)
Definition ExportTask.h:132
void SetLogGroupName(const Aws::String &value)
Definition ExportTask.h:76
ExportTask & WithDestinationPrefix(const char *value)
Definition ExportTask.h:134
ExportTask & WithTaskName(const char *value)
Definition ExportTask.h:67
const Aws::String & GetTaskId() const
Definition ExportTask.h:46
void SetStatus(const ExportTaskStatus &value)
Definition ExportTask.h:143
ExportTask & WithTaskName(const Aws::String &value)
Definition ExportTask.h:65
ExportTask & WithDestinationPrefix(Aws::String &&value)
Definition ExportTask.h:133
const Aws::String & GetLogGroupName() const
Definition ExportTask.h:74
void SetLogGroupName(const char *value)
Definition ExportTask.h:78
const Aws::String & GetDestinationPrefix() const
Definition ExportTask.h:127
void SetTaskId(const char *value)
Definition ExportTask.h:50
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
ExportTask & WithTaskId(const char *value)
Definition ExportTask.h:53
const Aws::String & GetDestination() const
Definition ExportTask.h:112
void SetTaskName(const Aws::String &value)
Definition ExportTask.h:62
void SetTaskId(Aws::String &&value)
Definition ExportTask.h:49
ExportTask & WithTaskId(Aws::String &&value)
Definition ExportTask.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue