aws_sdk_finspacedata/operation/create_changeset/
_create_changeset_output.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct CreateChangesetOutput {
7 pub dataset_id: ::std::option::Option<::std::string::String>,
9 pub changeset_id: ::std::option::Option<::std::string::String>,
11 _request_id: Option<String>,
12}
13impl CreateChangesetOutput {
14 pub fn dataset_id(&self) -> ::std::option::Option<&str> {
16 self.dataset_id.as_deref()
17 }
18 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 pub fn builder() -> crate::operation::create_changeset::builders::CreateChangesetOutputBuilder {
31 crate::operation::create_changeset::builders::CreateChangesetOutputBuilder::default()
32 }
33}
34
35#[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 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 pub fn set_dataset_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51 self.dataset_id = input;
52 self
53 }
54 pub fn get_dataset_id(&self) -> &::std::option::Option<::std::string::String> {
56 &self.dataset_id
57 }
58 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 pub fn set_changeset_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
65 self.changeset_id = input;
66 self
67 }
68 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 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}