AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Import.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/ImportFilter.h>
10#include <aws/logs/model/ImportStatistics.h>
11#include <aws/logs/model/ImportStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudWatchLogs {
23namespace Model {
24
31class Import {
32 public:
33 AWS_CLOUDWATCHLOGS_API Import() = default;
34 AWS_CLOUDWATCHLOGS_API Import(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLOUDWATCHLOGS_API Import& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetImportId() const { return m_importId; }
43 inline bool ImportIdHasBeenSet() const { return m_importIdHasBeenSet; }
44 template <typename ImportIdT = Aws::String>
45 void SetImportId(ImportIdT&& value) {
46 m_importIdHasBeenSet = true;
47 m_importId = std::forward<ImportIdT>(value);
48 }
49 template <typename ImportIdT = Aws::String>
50 Import& WithImportId(ImportIdT&& value) {
51 SetImportId(std::forward<ImportIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetImportSourceArn() const { return m_importSourceArn; }
61 inline bool ImportSourceArnHasBeenSet() const { return m_importSourceArnHasBeenSet; }
62 template <typename ImportSourceArnT = Aws::String>
63 void SetImportSourceArn(ImportSourceArnT&& value) {
64 m_importSourceArnHasBeenSet = true;
65 m_importSourceArn = std::forward<ImportSourceArnT>(value);
66 }
67 template <typename ImportSourceArnT = Aws::String>
68 Import& WithImportSourceArn(ImportSourceArnT&& value) {
69 SetImportSourceArn(std::forward<ImportSourceArnT>(value));
70 return *this;
71 }
73
75
79 inline ImportStatus GetImportStatus() const { return m_importStatus; }
80 inline bool ImportStatusHasBeenSet() const { return m_importStatusHasBeenSet; }
81 inline void SetImportStatus(ImportStatus value) {
82 m_importStatusHasBeenSet = true;
83 m_importStatus = value;
84 }
86 SetImportStatus(value);
87 return *this;
88 }
90
92
96 inline const Aws::String& GetImportDestinationArn() const { return m_importDestinationArn; }
97 inline bool ImportDestinationArnHasBeenSet() const { return m_importDestinationArnHasBeenSet; }
98 template <typename ImportDestinationArnT = Aws::String>
99 void SetImportDestinationArn(ImportDestinationArnT&& value) {
100 m_importDestinationArnHasBeenSet = true;
101 m_importDestinationArn = std::forward<ImportDestinationArnT>(value);
102 }
103 template <typename ImportDestinationArnT = Aws::String>
104 Import& WithImportDestinationArn(ImportDestinationArnT&& value) {
105 SetImportDestinationArn(std::forward<ImportDestinationArnT>(value));
106 return *this;
107 }
109
111
114 inline const ImportStatistics& GetImportStatistics() const { return m_importStatistics; }
115 inline bool ImportStatisticsHasBeenSet() const { return m_importStatisticsHasBeenSet; }
116 template <typename ImportStatisticsT = ImportStatistics>
117 void SetImportStatistics(ImportStatisticsT&& value) {
118 m_importStatisticsHasBeenSet = true;
119 m_importStatistics = std::forward<ImportStatisticsT>(value);
120 }
121 template <typename ImportStatisticsT = ImportStatistics>
122 Import& WithImportStatistics(ImportStatisticsT&& value) {
123 SetImportStatistics(std::forward<ImportStatisticsT>(value));
124 return *this;
125 }
127
129
132 inline const ImportFilter& GetImportFilter() const { return m_importFilter; }
133 inline bool ImportFilterHasBeenSet() const { return m_importFilterHasBeenSet; }
134 template <typename ImportFilterT = ImportFilter>
135 void SetImportFilter(ImportFilterT&& value) {
136 m_importFilterHasBeenSet = true;
137 m_importFilter = std::forward<ImportFilterT>(value);
138 }
139 template <typename ImportFilterT = ImportFilter>
140 Import& WithImportFilter(ImportFilterT&& value) {
141 SetImportFilter(std::forward<ImportFilterT>(value));
142 return *this;
143 }
145
147
151 inline long long GetCreationTime() const { return m_creationTime; }
152 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
153 inline void SetCreationTime(long long value) {
154 m_creationTimeHasBeenSet = true;
155 m_creationTime = value;
156 }
157 inline Import& WithCreationTime(long long value) {
158 SetCreationTime(value);
159 return *this;
160 }
162
164
168 inline long long GetLastUpdatedTime() const { return m_lastUpdatedTime; }
169 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
170 inline void SetLastUpdatedTime(long long value) {
171 m_lastUpdatedTimeHasBeenSet = true;
172 m_lastUpdatedTime = value;
173 }
174 inline Import& WithLastUpdatedTime(long long value) {
175 SetLastUpdatedTime(value);
176 return *this;
177 }
179
181
184 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
185 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
186 template <typename ErrorMessageT = Aws::String>
187 void SetErrorMessage(ErrorMessageT&& value) {
188 m_errorMessageHasBeenSet = true;
189 m_errorMessage = std::forward<ErrorMessageT>(value);
190 }
191 template <typename ErrorMessageT = Aws::String>
192 Import& WithErrorMessage(ErrorMessageT&& value) {
193 SetErrorMessage(std::forward<ErrorMessageT>(value));
194 return *this;
195 }
197 private:
198 Aws::String m_importId;
199
200 Aws::String m_importSourceArn;
201
202 ImportStatus m_importStatus{ImportStatus::NOT_SET};
203
204 Aws::String m_importDestinationArn;
205
206 ImportStatistics m_importStatistics;
207
208 ImportFilter m_importFilter;
209
210 long long m_creationTime{0};
211
212 long long m_lastUpdatedTime{0};
213
214 Aws::String m_errorMessage;
215 bool m_importIdHasBeenSet = false;
216 bool m_importSourceArnHasBeenSet = false;
217 bool m_importStatusHasBeenSet = false;
218 bool m_importDestinationArnHasBeenSet = false;
219 bool m_importStatisticsHasBeenSet = false;
220 bool m_importFilterHasBeenSet = false;
221 bool m_creationTimeHasBeenSet = false;
222 bool m_lastUpdatedTimeHasBeenSet = false;
223 bool m_errorMessageHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace CloudWatchLogs
228} // namespace Aws
long long GetCreationTime() const
Definition Import.h:151
void SetImportId(ImportIdT &&value)
Definition Import.h:45
bool ImportSourceArnHasBeenSet() const
Definition Import.h:61
Import & WithImportDestinationArn(ImportDestinationArnT &&value)
Definition Import.h:104
Import & WithImportSourceArn(ImportSourceArnT &&value)
Definition Import.h:68
const Aws::String & GetImportSourceArn() const
Definition Import.h:60
AWS_CLOUDWATCHLOGS_API Import()=default
bool ImportStatisticsHasBeenSet() const
Definition Import.h:115
Import & WithImportFilter(ImportFilterT &&value)
Definition Import.h:140
AWS_CLOUDWATCHLOGS_API Import(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdatedTime(long long value)
Definition Import.h:170
void SetImportStatus(ImportStatus value)
Definition Import.h:81
void SetErrorMessage(ErrorMessageT &&value)
Definition Import.h:187
void SetImportStatistics(ImportStatisticsT &&value)
Definition Import.h:117
Import & WithErrorMessage(ErrorMessageT &&value)
Definition Import.h:192
void SetImportDestinationArn(ImportDestinationArnT &&value)
Definition Import.h:99
ImportStatus GetImportStatus() const
Definition Import.h:79
bool LastUpdatedTimeHasBeenSet() const
Definition Import.h:169
Import & WithImportId(ImportIdT &&value)
Definition Import.h:50
void SetImportSourceArn(ImportSourceArnT &&value)
Definition Import.h:63
void SetImportFilter(ImportFilterT &&value)
Definition Import.h:135
const ImportFilter & GetImportFilter() const
Definition Import.h:132
const Aws::String & GetImportDestinationArn() const
Definition Import.h:96
Import & WithLastUpdatedTime(long long value)
Definition Import.h:174
const ImportStatistics & GetImportStatistics() const
Definition Import.h:114
long long GetLastUpdatedTime() const
Definition Import.h:168
const Aws::String & GetImportId() const
Definition Import.h:42
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetErrorMessage() const
Definition Import.h:184
Import & WithImportStatus(ImportStatus value)
Definition Import.h:85
Import & WithImportStatistics(ImportStatisticsT &&value)
Definition Import.h:122
AWS_CLOUDWATCHLOGS_API Import & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreationTime(long long value)
Definition Import.h:153
bool ImportDestinationArnHasBeenSet() const
Definition Import.h:97
bool ImportStatusHasBeenSet() const
Definition Import.h:80
Import & WithCreationTime(long long value)
Definition Import.h:157
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue