aws_sdk_machinelearning/operation/update_data_source/
_update_data_source_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Represents the output of an <code>UpdateDataSource</code> operation.</p>
4/// <p>You can see the updated content by using the <code>GetBatchPrediction</code> operation.</p>
5#[non_exhaustive]
6#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
7pub struct UpdateDataSourceOutput {
8    /// <p>The ID assigned to the <code>DataSource</code> during creation. This value should be identical to the value of the <code>DataSourceID</code> in the request.</p>
9    pub data_source_id: ::std::option::Option<::std::string::String>,
10    _request_id: Option<String>,
11}
12impl UpdateDataSourceOutput {
13    /// <p>The ID assigned to the <code>DataSource</code> during creation. This value should be identical to the value of the <code>DataSourceID</code> in the request.</p>
14    pub fn data_source_id(&self) -> ::std::option::Option<&str> {
15        self.data_source_id.as_deref()
16    }
17}
18impl ::aws_types::request_id::RequestId for UpdateDataSourceOutput {
19    fn request_id(&self) -> Option<&str> {
20        self._request_id.as_deref()
21    }
22}
23impl UpdateDataSourceOutput {
24    /// Creates a new builder-style object to manufacture [`UpdateDataSourceOutput`](crate::operation::update_data_source::UpdateDataSourceOutput).
25    pub fn builder() -> crate::operation::update_data_source::builders::UpdateDataSourceOutputBuilder {
26        crate::operation::update_data_source::builders::UpdateDataSourceOutputBuilder::default()
27    }
28}
29
30/// A builder for [`UpdateDataSourceOutput`](crate::operation::update_data_source::UpdateDataSourceOutput).
31#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
32#[non_exhaustive]
33pub struct UpdateDataSourceOutputBuilder {
34    pub(crate) data_source_id: ::std::option::Option<::std::string::String>,
35    _request_id: Option<String>,
36}
37impl UpdateDataSourceOutputBuilder {
38    /// <p>The ID assigned to the <code>DataSource</code> during creation. This value should be identical to the value of the <code>DataSourceID</code> in the request.</p>
39    pub fn data_source_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
40        self.data_source_id = ::std::option::Option::Some(input.into());
41        self
42    }
43    /// <p>The ID assigned to the <code>DataSource</code> during creation. This value should be identical to the value of the <code>DataSourceID</code> in the request.</p>
44    pub fn set_data_source_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
45        self.data_source_id = input;
46        self
47    }
48    /// <p>The ID assigned to the <code>DataSource</code> during creation. This value should be identical to the value of the <code>DataSourceID</code> in the request.</p>
49    pub fn get_data_source_id(&self) -> &::std::option::Option<::std::string::String> {
50        &self.data_source_id
51    }
52    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
53        self._request_id = Some(request_id.into());
54        self
55    }
56
57    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
58        self._request_id = request_id;
59        self
60    }
61    /// Consumes the builder and constructs a [`UpdateDataSourceOutput`](crate::operation::update_data_source::UpdateDataSourceOutput).
62    pub fn build(self) -> crate::operation::update_data_source::UpdateDataSourceOutput {
63        crate::operation::update_data_source::UpdateDataSourceOutput {
64            data_source_id: self.data_source_id,
65            _request_id: self._request_id,
66        }
67    }
68}