aws_sdk_finspacedata/operation/create_changeset/
_create_changeset_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// The response from a CreateChangeset operation.
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct CreateChangesetOutput {
7    /// <p>The unique identifier for the FinSpace Dataset where the Changeset is created.</p>
8    pub dataset_id: ::std::option::Option<::std::string::String>,
9    /// <p>The unique identifier of the Changeset that is created.</p>
10    pub changeset_id: ::std::option::Option<::std::string::String>,
11    _request_id: Option<String>,
12}
13impl CreateChangesetOutput {
14    /// <p>The unique identifier for the FinSpace Dataset where the Changeset is created.</p>
15    pub fn dataset_id(&self) -> ::std::option::Option<&str> {
16        self.dataset_id.as_deref()
17    }
18    /// <p>The unique identifier of the Changeset that is created.</p>
19    pub fn changeset_id(&self) -> ::std::option::Option<&str> {
20        self.changeset_id.as_deref()
21    }
22}
23impl ::aws_types::request_id::RequestId for CreateChangesetOutput {
24    fn request_id(&self) -> Option<&str> {
25        self._request_id.as_deref()
26    }
27}
28impl CreateChangesetOutput {
29    /// Creates a new builder-style object to manufacture [`CreateChangesetOutput`](crate::operation::create_changeset::CreateChangesetOutput).
30    pub fn builder() -> crate::operation::create_changeset::builders::CreateChangesetOutputBuilder {
31        crate::operation::create_changeset::builders::CreateChangesetOutputBuilder::default()
32    }
33}
34
35/// A builder for [`CreateChangesetOutput`](crate::operation::create_changeset::CreateChangesetOutput).
36#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
37#[non_exhaustive]
38pub struct CreateChangesetOutputBuilder {
39    pub(crate) dataset_id: ::std::option::Option<::std::string::String>,
40    pub(crate) changeset_id: ::std::option::Option<::std::string::String>,
41    _request_id: Option<String>,
42}
43impl CreateChangesetOutputBuilder {
44    /// <p>The unique identifier for the FinSpace Dataset where the Changeset is created.</p>
45    pub fn dataset_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46        self.dataset_id = ::std::option::Option::Some(input.into());
47        self
48    }
49    /// <p>The unique identifier for the FinSpace Dataset where the Changeset is created.</p>
50    pub fn set_dataset_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51        self.dataset_id = input;
52        self
53    }
54    /// <p>The unique identifier for the FinSpace Dataset where the Changeset is created.</p>
55    pub fn get_dataset_id(&self) -> &::std::option::Option<::std::string::String> {
56        &self.dataset_id
57    }
58    /// <p>The unique identifier of the Changeset that is created.</p>
59    pub fn changeset_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
60        self.changeset_id = ::std::option::Option::Some(input.into());
61        self
62    }
63    /// <p>The unique identifier of the Changeset that is created.</p>
64    pub fn set_changeset_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
65        self.changeset_id = input;
66        self
67    }
68    /// <p>The unique identifier of the Changeset that is created.</p>
69    pub fn get_changeset_id(&self) -> &::std::option::Option<::std::string::String> {
70        &self.changeset_id
71    }
72    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
73        self._request_id = Some(request_id.into());
74        self
75    }
76
77    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
78        self._request_id = request_id;
79        self
80    }
81    /// Consumes the builder and constructs a [`CreateChangesetOutput`](crate::operation::create_changeset::CreateChangesetOutput).
82    pub fn build(self) -> crate::operation::create_changeset::CreateChangesetOutput {
83        crate::operation::create_changeset::CreateChangesetOutput {
84            dataset_id: self.dataset_id,
85            changeset_id: self.changeset_id,
86            _request_id: self._request_id,
87        }
88    }
89}