aws_sdk_finspacedata/operation/get_changeset/
_get_changeset_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// The response from a describe changeset operation
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct GetChangesetOutput {
7    /// <p>The unique identifier for a Changeset.</p>
8    pub changeset_id: ::std::option::Option<::std::string::String>,
9    /// <p>The ARN identifier of the Changeset.</p>
10    pub changeset_arn: ::std::option::Option<::std::string::String>,
11    /// <p>The unique identifier for the FinSpace Dataset where the Changeset is created.</p>
12    pub dataset_id: ::std::option::Option<::std::string::String>,
13    /// <p>Type that indicates how a Changeset is applied to a Dataset.</p>
14    /// <ul>
15    /// <li>
16    /// <p><code>REPLACE</code> – Changeset is considered as a replacement to all prior loaded Changesets.</p></li>
17    /// <li>
18    /// <p><code>APPEND</code> – Changeset is considered as an addition to the end of all prior loaded Changesets.</p></li>
19    /// <li>
20    /// <p><code>MODIFY</code> – Changeset is considered as a replacement to a specific prior ingested Changeset.</p></li>
21    /// </ul>
22    pub change_type: ::std::option::Option<crate::types::ChangeType>,
23    /// <p>Options that define the location of the data being ingested.</p>
24    pub source_params: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
25    /// <p>Structure of the source file(s).</p>
26    pub format_params: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
27    /// <p>The timestamp at which the Changeset was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.</p>
28    pub create_time: i64,
29    /// <p>The status of Changeset creation operation.</p>
30    pub status: ::std::option::Option<crate::types::IngestionStatus>,
31    /// <p>The structure with error messages.</p>
32    pub error_info: ::std::option::Option<crate::types::ChangesetErrorInfo>,
33    /// <p>Time until which the Changeset is active. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.</p>
34    pub active_until_timestamp: ::std::option::Option<i64>,
35    /// <p>Beginning time from which the Changeset is active. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.</p>
36    pub active_from_timestamp: ::std::option::Option<i64>,
37    /// <p>The unique identifier of the Changeset that is being updated.</p>
38    pub updates_changeset_id: ::std::option::Option<::std::string::String>,
39    /// <p>The unique identifier of the updated Changeset.</p>
40    pub updated_by_changeset_id: ::std::option::Option<::std::string::String>,
41    _request_id: Option<String>,
42}
43impl GetChangesetOutput {
44    /// <p>The unique identifier for a Changeset.</p>
45    pub fn changeset_id(&self) -> ::std::option::Option<&str> {
46        self.changeset_id.as_deref()
47    }
48    /// <p>The ARN identifier of the Changeset.</p>
49    pub fn changeset_arn(&self) -> ::std::option::Option<&str> {
50        self.changeset_arn.as_deref()
51    }
52    /// <p>The unique identifier for the FinSpace Dataset where the Changeset is created.</p>
53    pub fn dataset_id(&self) -> ::std::option::Option<&str> {
54        self.dataset_id.as_deref()
55    }
56    /// <p>Type that indicates how a Changeset is applied to a Dataset.</p>
57    /// <ul>
58    /// <li>
59    /// <p><code>REPLACE</code> – Changeset is considered as a replacement to all prior loaded Changesets.</p></li>
60    /// <li>
61    /// <p><code>APPEND</code> – Changeset is considered as an addition to the end of all prior loaded Changesets.</p></li>
62    /// <li>
63    /// <p><code>MODIFY</code> – Changeset is considered as a replacement to a specific prior ingested Changeset.</p></li>
64    /// </ul>
65    pub fn change_type(&self) -> ::std::option::Option<&crate::types::ChangeType> {
66        self.change_type.as_ref()
67    }
68    /// <p>Options that define the location of the data being ingested.</p>
69    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    /// <p>Structure of the source file(s).</p>
73    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    /// <p>The timestamp at which the Changeset was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.</p>
77    pub fn create_time(&self) -> i64 {
78        self.create_time
79    }
80    /// <p>The status of Changeset creation operation.</p>
81    pub fn status(&self) -> ::std::option::Option<&crate::types::IngestionStatus> {
82        self.status.as_ref()
83    }
84    /// <p>The structure with error messages.</p>
85    pub fn error_info(&self) -> ::std::option::Option<&crate::types::ChangesetErrorInfo> {
86        self.error_info.as_ref()
87    }
88    /// <p>Time until which the Changeset is active. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.</p>
89    pub fn active_until_timestamp(&self) -> ::std::option::Option<i64> {
90        self.active_until_timestamp
91    }
92    /// <p>Beginning time from which the Changeset is active. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.</p>
93    pub fn active_from_timestamp(&self) -> ::std::option::Option<i64> {
94        self.active_from_timestamp
95    }
96    /// <p>The unique identifier of the Changeset that is being updated.</p>
97    pub fn updates_changeset_id(&self) -> ::std::option::Option<&str> {
98        self.updates_changeset_id.as_deref()
99    }
100    /// <p>The unique identifier of the updated Changeset.</p>
101    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    /// Creates a new builder-style object to manufacture [`GetChangesetOutput`](crate::operation::get_changeset::GetChangesetOutput).
112    pub fn builder() -> crate::operation::get_changeset::builders::GetChangesetOutputBuilder {
113        crate::operation::get_changeset::builders::GetChangesetOutputBuilder::default()
114    }
115}
116
117/// A builder for [`GetChangesetOutput`](crate::operation::get_changeset::GetChangesetOutput).
118#[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    /// <p>The unique identifier for a Changeset.</p>
138    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    /// <p>The unique identifier for a Changeset.</p>
143    pub fn set_changeset_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
144        self.changeset_id = input;
145        self
146    }
147    /// <p>The unique identifier for a Changeset.</p>
148    pub fn get_changeset_id(&self) -> &::std::option::Option<::std::string::String> {
149        &self.changeset_id
150    }
151    /// <p>The ARN identifier of the Changeset.</p>
152    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    /// <p>The ARN identifier of the Changeset.</p>
157    pub fn set_changeset_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
158        self.changeset_arn = input;
159        self
160    }
161    /// <p>The ARN identifier of the Changeset.</p>
162    pub fn get_changeset_arn(&self) -> &::std::option::Option<::std::string::String> {
163        &self.changeset_arn
164    }
165    /// <p>The unique identifier for the FinSpace Dataset where the Changeset is created.</p>
166    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    /// <p>The unique identifier for the FinSpace Dataset where the Changeset is created.</p>
171    pub fn set_dataset_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
172        self.dataset_id = input;
173        self
174    }
175    /// <p>The unique identifier for the FinSpace Dataset where the Changeset is created.</p>
176    pub fn get_dataset_id(&self) -> &::std::option::Option<::std::string::String> {
177        &self.dataset_id
178    }
179    /// <p>Type that indicates how a Changeset is applied to a Dataset.</p>
180    /// <ul>
181    /// <li>
182    /// <p><code>REPLACE</code> – Changeset is considered as a replacement to all prior loaded Changesets.</p></li>
183    /// <li>
184    /// <p><code>APPEND</code> – Changeset is considered as an addition to the end of all prior loaded Changesets.</p></li>
185    /// <li>
186    /// <p><code>MODIFY</code> – Changeset is considered as a replacement to a specific prior ingested Changeset.</p></li>
187    /// </ul>
188    pub fn change_type(mut self, input: crate::types::ChangeType) -> Self {
189        self.change_type = ::std::option::Option::Some(input);
190        self
191    }
192    /// <p>Type that indicates how a Changeset is applied to a Dataset.</p>
193    /// <ul>
194    /// <li>
195    /// <p><code>REPLACE</code> – Changeset is considered as a replacement to all prior loaded Changesets.</p></li>
196    /// <li>
197    /// <p><code>APPEND</code> – Changeset is considered as an addition to the end of all prior loaded Changesets.</p></li>
198    /// <li>
199    /// <p><code>MODIFY</code> – Changeset is considered as a replacement to a specific prior ingested Changeset.</p></li>
200    /// </ul>
201    pub fn set_change_type(mut self, input: ::std::option::Option<crate::types::ChangeType>) -> Self {
202        self.change_type = input;
203        self
204    }
205    /// <p>Type that indicates how a Changeset is applied to a Dataset.</p>
206    /// <ul>
207    /// <li>
208    /// <p><code>REPLACE</code> – Changeset is considered as a replacement to all prior loaded Changesets.</p></li>
209    /// <li>
210    /// <p><code>APPEND</code> – Changeset is considered as an addition to the end of all prior loaded Changesets.</p></li>
211    /// <li>
212    /// <p><code>MODIFY</code> – Changeset is considered as a replacement to a specific prior ingested Changeset.</p></li>
213    /// </ul>
214    pub fn get_change_type(&self) -> &::std::option::Option<crate::types::ChangeType> {
215        &self.change_type
216    }
217    /// Adds a key-value pair to `source_params`.
218    ///
219    /// To override the contents of this collection use [`set_source_params`](Self::set_source_params).
220    ///
221    /// <p>Options that define the location of the data being ingested.</p>
222    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    /// <p>Options that define the location of the data being ingested.</p>
229    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    /// <p>Options that define the location of the data being ingested.</p>
237    pub fn get_source_params(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
238        &self.source_params
239    }
240    /// Adds a key-value pair to `format_params`.
241    ///
242    /// To override the contents of this collection use [`set_format_params`](Self::set_format_params).
243    ///
244    /// <p>Structure of the source file(s).</p>
245    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    /// <p>Structure of the source file(s).</p>
252    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    /// <p>Structure of the source file(s).</p>
260    pub fn get_format_params(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
261        &self.format_params
262    }
263    /// <p>The timestamp at which the Changeset was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.</p>
264    pub fn create_time(mut self, input: i64) -> Self {
265        self.create_time = ::std::option::Option::Some(input);
266        self
267    }
268    /// <p>The timestamp at which the Changeset was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.</p>
269    pub fn set_create_time(mut self, input: ::std::option::Option<i64>) -> Self {
270        self.create_time = input;
271        self
272    }
273    /// <p>The timestamp at which the Changeset was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.</p>
274    pub fn get_create_time(&self) -> &::std::option::Option<i64> {
275        &self.create_time
276    }
277    /// <p>The status of Changeset creation operation.</p>
278    pub fn status(mut self, input: crate::types::IngestionStatus) -> Self {
279        self.status = ::std::option::Option::Some(input);
280        self
281    }
282    /// <p>The status of Changeset creation operation.</p>
283    pub fn set_status(mut self, input: ::std::option::Option<crate::types::IngestionStatus>) -> Self {
284        self.status = input;
285        self
286    }
287    /// <p>The status of Changeset creation operation.</p>
288    pub fn get_status(&self) -> &::std::option::Option<crate::types::IngestionStatus> {
289        &self.status
290    }
291    /// <p>The structure with error messages.</p>
292    pub fn error_info(mut self, input: crate::types::ChangesetErrorInfo) -> Self {
293        self.error_info = ::std::option::Option::Some(input);
294        self
295    }
296    /// <p>The structure with error messages.</p>
297    pub fn set_error_info(mut self, input: ::std::option::Option<crate::types::ChangesetErrorInfo>) -> Self {
298        self.error_info = input;
299        self
300    }
301    /// <p>The structure with error messages.</p>
302    pub fn get_error_info(&self) -> &::std::option::Option<crate::types::ChangesetErrorInfo> {
303        &self.error_info
304    }
305    /// <p>Time until which the Changeset is active. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.</p>
306    pub fn active_until_timestamp(mut self, input: i64) -> Self {
307        self.active_until_timestamp = ::std::option::Option::Some(input);
308        self
309    }
310    /// <p>Time until which the Changeset is active. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.</p>
311    pub fn set_active_until_timestamp(mut self, input: ::std::option::Option<i64>) -> Self {
312        self.active_until_timestamp = input;
313        self
314    }
315    /// <p>Time until which the Changeset is active. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.</p>
316    pub fn get_active_until_timestamp(&self) -> &::std::option::Option<i64> {
317        &self.active_until_timestamp
318    }
319    /// <p>Beginning time from which the Changeset is active. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.</p>
320    pub fn active_from_timestamp(mut self, input: i64) -> Self {
321        self.active_from_timestamp = ::std::option::Option::Some(input);
322        self
323    }
324    /// <p>Beginning time from which the Changeset is active. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.</p>
325    pub fn set_active_from_timestamp(mut self, input: ::std::option::Option<i64>) -> Self {
326        self.active_from_timestamp = input;
327        self
328    }
329    /// <p>Beginning time from which the Changeset is active. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.</p>
330    pub fn get_active_from_timestamp(&self) -> &::std::option::Option<i64> {
331        &self.active_from_timestamp
332    }
333    /// <p>The unique identifier of the Changeset that is being updated.</p>
334    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    /// <p>The unique identifier of the Changeset that is being updated.</p>
339    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    /// <p>The unique identifier of the Changeset that is being updated.</p>
344    pub fn get_updates_changeset_id(&self) -> &::std::option::Option<::std::string::String> {
345        &self.updates_changeset_id
346    }
347    /// <p>The unique identifier of the updated Changeset.</p>
348    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    /// <p>The unique identifier of the updated Changeset.</p>
353    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    /// <p>The unique identifier of the updated Changeset.</p>
358    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    /// Consumes the builder and constructs a [`GetChangesetOutput`](crate::operation::get_changeset::GetChangesetOutput).
371    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}