aws_sdk_finspacedata/operation/get_changeset/
_get_changeset_output.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct GetChangesetOutput {
7 pub changeset_id: ::std::option::Option<::std::string::String>,
9 pub changeset_arn: ::std::option::Option<::std::string::String>,
11 pub dataset_id: ::std::option::Option<::std::string::String>,
13 pub change_type: ::std::option::Option<crate::types::ChangeType>,
23 pub source_params: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
25 pub format_params: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
27 pub create_time: i64,
29 pub status: ::std::option::Option<crate::types::IngestionStatus>,
31 pub error_info: ::std::option::Option<crate::types::ChangesetErrorInfo>,
33 pub active_until_timestamp: ::std::option::Option<i64>,
35 pub active_from_timestamp: ::std::option::Option<i64>,
37 pub updates_changeset_id: ::std::option::Option<::std::string::String>,
39 pub updated_by_changeset_id: ::std::option::Option<::std::string::String>,
41 _request_id: Option<String>,
42}
43impl GetChangesetOutput {
44 pub fn changeset_id(&self) -> ::std::option::Option<&str> {
46 self.changeset_id.as_deref()
47 }
48 pub fn changeset_arn(&self) -> ::std::option::Option<&str> {
50 self.changeset_arn.as_deref()
51 }
52 pub fn dataset_id(&self) -> ::std::option::Option<&str> {
54 self.dataset_id.as_deref()
55 }
56 pub fn change_type(&self) -> ::std::option::Option<&crate::types::ChangeType> {
66 self.change_type.as_ref()
67 }
68 pub fn source_params(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
70 self.source_params.as_ref()
71 }
72 pub fn format_params(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
74 self.format_params.as_ref()
75 }
76 pub fn create_time(&self) -> i64 {
78 self.create_time
79 }
80 pub fn status(&self) -> ::std::option::Option<&crate::types::IngestionStatus> {
82 self.status.as_ref()
83 }
84 pub fn error_info(&self) -> ::std::option::Option<&crate::types::ChangesetErrorInfo> {
86 self.error_info.as_ref()
87 }
88 pub fn active_until_timestamp(&self) -> ::std::option::Option<i64> {
90 self.active_until_timestamp
91 }
92 pub fn active_from_timestamp(&self) -> ::std::option::Option<i64> {
94 self.active_from_timestamp
95 }
96 pub fn updates_changeset_id(&self) -> ::std::option::Option<&str> {
98 self.updates_changeset_id.as_deref()
99 }
100 pub fn updated_by_changeset_id(&self) -> ::std::option::Option<&str> {
102 self.updated_by_changeset_id.as_deref()
103 }
104}
105impl ::aws_types::request_id::RequestId for GetChangesetOutput {
106 fn request_id(&self) -> Option<&str> {
107 self._request_id.as_deref()
108 }
109}
110impl GetChangesetOutput {
111 pub fn builder() -> crate::operation::get_changeset::builders::GetChangesetOutputBuilder {
113 crate::operation::get_changeset::builders::GetChangesetOutputBuilder::default()
114 }
115}
116
117#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
119#[non_exhaustive]
120pub struct GetChangesetOutputBuilder {
121 pub(crate) changeset_id: ::std::option::Option<::std::string::String>,
122 pub(crate) changeset_arn: ::std::option::Option<::std::string::String>,
123 pub(crate) dataset_id: ::std::option::Option<::std::string::String>,
124 pub(crate) change_type: ::std::option::Option<crate::types::ChangeType>,
125 pub(crate) source_params: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
126 pub(crate) format_params: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
127 pub(crate) create_time: ::std::option::Option<i64>,
128 pub(crate) status: ::std::option::Option<crate::types::IngestionStatus>,
129 pub(crate) error_info: ::std::option::Option<crate::types::ChangesetErrorInfo>,
130 pub(crate) active_until_timestamp: ::std::option::Option<i64>,
131 pub(crate) active_from_timestamp: ::std::option::Option<i64>,
132 pub(crate) updates_changeset_id: ::std::option::Option<::std::string::String>,
133 pub(crate) updated_by_changeset_id: ::std::option::Option<::std::string::String>,
134 _request_id: Option<String>,
135}
136impl GetChangesetOutputBuilder {
137 pub fn changeset_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
139 self.changeset_id = ::std::option::Option::Some(input.into());
140 self
141 }
142 pub fn set_changeset_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
144 self.changeset_id = input;
145 self
146 }
147 pub fn get_changeset_id(&self) -> &::std::option::Option<::std::string::String> {
149 &self.changeset_id
150 }
151 pub fn changeset_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
153 self.changeset_arn = ::std::option::Option::Some(input.into());
154 self
155 }
156 pub fn set_changeset_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
158 self.changeset_arn = input;
159 self
160 }
161 pub fn get_changeset_arn(&self) -> &::std::option::Option<::std::string::String> {
163 &self.changeset_arn
164 }
165 pub fn dataset_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
167 self.dataset_id = ::std::option::Option::Some(input.into());
168 self
169 }
170 pub fn set_dataset_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
172 self.dataset_id = input;
173 self
174 }
175 pub fn get_dataset_id(&self) -> &::std::option::Option<::std::string::String> {
177 &self.dataset_id
178 }
179 pub fn change_type(mut self, input: crate::types::ChangeType) -> Self {
189 self.change_type = ::std::option::Option::Some(input);
190 self
191 }
192 pub fn set_change_type(mut self, input: ::std::option::Option<crate::types::ChangeType>) -> Self {
202 self.change_type = input;
203 self
204 }
205 pub fn get_change_type(&self) -> &::std::option::Option<crate::types::ChangeType> {
215 &self.change_type
216 }
217 pub fn source_params(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
223 let mut hash_map = self.source_params.unwrap_or_default();
224 hash_map.insert(k.into(), v.into());
225 self.source_params = ::std::option::Option::Some(hash_map);
226 self
227 }
228 pub fn set_source_params(
230 mut self,
231 input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
232 ) -> Self {
233 self.source_params = input;
234 self
235 }
236 pub fn get_source_params(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
238 &self.source_params
239 }
240 pub fn format_params(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
246 let mut hash_map = self.format_params.unwrap_or_default();
247 hash_map.insert(k.into(), v.into());
248 self.format_params = ::std::option::Option::Some(hash_map);
249 self
250 }
251 pub fn set_format_params(
253 mut self,
254 input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
255 ) -> Self {
256 self.format_params = input;
257 self
258 }
259 pub fn get_format_params(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
261 &self.format_params
262 }
263 pub fn create_time(mut self, input: i64) -> Self {
265 self.create_time = ::std::option::Option::Some(input);
266 self
267 }
268 pub fn set_create_time(mut self, input: ::std::option::Option<i64>) -> Self {
270 self.create_time = input;
271 self
272 }
273 pub fn get_create_time(&self) -> &::std::option::Option<i64> {
275 &self.create_time
276 }
277 pub fn status(mut self, input: crate::types::IngestionStatus) -> Self {
279 self.status = ::std::option::Option::Some(input);
280 self
281 }
282 pub fn set_status(mut self, input: ::std::option::Option<crate::types::IngestionStatus>) -> Self {
284 self.status = input;
285 self
286 }
287 pub fn get_status(&self) -> &::std::option::Option<crate::types::IngestionStatus> {
289 &self.status
290 }
291 pub fn error_info(mut self, input: crate::types::ChangesetErrorInfo) -> Self {
293 self.error_info = ::std::option::Option::Some(input);
294 self
295 }
296 pub fn set_error_info(mut self, input: ::std::option::Option<crate::types::ChangesetErrorInfo>) -> Self {
298 self.error_info = input;
299 self
300 }
301 pub fn get_error_info(&self) -> &::std::option::Option<crate::types::ChangesetErrorInfo> {
303 &self.error_info
304 }
305 pub fn active_until_timestamp(mut self, input: i64) -> Self {
307 self.active_until_timestamp = ::std::option::Option::Some(input);
308 self
309 }
310 pub fn set_active_until_timestamp(mut self, input: ::std::option::Option<i64>) -> Self {
312 self.active_until_timestamp = input;
313 self
314 }
315 pub fn get_active_until_timestamp(&self) -> &::std::option::Option<i64> {
317 &self.active_until_timestamp
318 }
319 pub fn active_from_timestamp(mut self, input: i64) -> Self {
321 self.active_from_timestamp = ::std::option::Option::Some(input);
322 self
323 }
324 pub fn set_active_from_timestamp(mut self, input: ::std::option::Option<i64>) -> Self {
326 self.active_from_timestamp = input;
327 self
328 }
329 pub fn get_active_from_timestamp(&self) -> &::std::option::Option<i64> {
331 &self.active_from_timestamp
332 }
333 pub fn updates_changeset_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
335 self.updates_changeset_id = ::std::option::Option::Some(input.into());
336 self
337 }
338 pub fn set_updates_changeset_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
340 self.updates_changeset_id = input;
341 self
342 }
343 pub fn get_updates_changeset_id(&self) -> &::std::option::Option<::std::string::String> {
345 &self.updates_changeset_id
346 }
347 pub fn updated_by_changeset_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
349 self.updated_by_changeset_id = ::std::option::Option::Some(input.into());
350 self
351 }
352 pub fn set_updated_by_changeset_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
354 self.updated_by_changeset_id = input;
355 self
356 }
357 pub fn get_updated_by_changeset_id(&self) -> &::std::option::Option<::std::string::String> {
359 &self.updated_by_changeset_id
360 }
361 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
362 self._request_id = Some(request_id.into());
363 self
364 }
365
366 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
367 self._request_id = request_id;
368 self
369 }
370 pub fn build(self) -> crate::operation::get_changeset::GetChangesetOutput {
372 crate::operation::get_changeset::GetChangesetOutput {
373 changeset_id: self.changeset_id,
374 changeset_arn: self.changeset_arn,
375 dataset_id: self.dataset_id,
376 change_type: self.change_type,
377 source_params: self.source_params,
378 format_params: self.format_params,
379 create_time: self.create_time.unwrap_or_default(),
380 status: self.status,
381 error_info: self.error_info,
382 active_until_timestamp: self.active_until_timestamp,
383 active_from_timestamp: self.active_from_timestamp,
384 updates_changeset_id: self.updates_changeset_id,
385 updated_by_changeset_id: self.updated_by_changeset_id,
386 _request_id: self._request_id,
387 }
388 }
389}