aws_sdk_finspacedata/operation/get_changeset/
_get_changeset_input.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct GetChangesetInput {
7 pub dataset_id: ::std::option::Option<::std::string::String>,
9 pub changeset_id: ::std::option::Option<::std::string::String>,
11}
12impl GetChangesetInput {
13 pub fn dataset_id(&self) -> ::std::option::Option<&str> {
15 self.dataset_id.as_deref()
16 }
17 pub fn changeset_id(&self) -> ::std::option::Option<&str> {
19 self.changeset_id.as_deref()
20 }
21}
22impl GetChangesetInput {
23 pub fn builder() -> crate::operation::get_changeset::builders::GetChangesetInputBuilder {
25 crate::operation::get_changeset::builders::GetChangesetInputBuilder::default()
26 }
27}
28
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct GetChangesetInputBuilder {
33 pub(crate) dataset_id: ::std::option::Option<::std::string::String>,
34 pub(crate) changeset_id: ::std::option::Option<::std::string::String>,
35}
36impl GetChangesetInputBuilder {
37 pub fn dataset_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
40 self.dataset_id = ::std::option::Option::Some(input.into());
41 self
42 }
43 pub fn set_dataset_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
45 self.dataset_id = input;
46 self
47 }
48 pub fn get_dataset_id(&self) -> &::std::option::Option<::std::string::String> {
50 &self.dataset_id
51 }
52 pub fn changeset_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
55 self.changeset_id = ::std::option::Option::Some(input.into());
56 self
57 }
58 pub fn set_changeset_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
60 self.changeset_id = input;
61 self
62 }
63 pub fn get_changeset_id(&self) -> &::std::option::Option<::std::string::String> {
65 &self.changeset_id
66 }
67 pub fn build(
69 self,
70 ) -> ::std::result::Result<crate::operation::get_changeset::GetChangesetInput, ::aws_smithy_types::error::operation::BuildError> {
71 ::std::result::Result::Ok(crate::operation::get_changeset::GetChangesetInput {
72 dataset_id: self.dataset_id,
73 changeset_id: self.changeset_id,
74 })
75 }
76}