#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ReadPresetInput {
pub id: ::std::option::Option<::std::string::String>,
}
impl ReadPresetInput {
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
}
impl ReadPresetInput {
pub fn builder() -> crate::operation::read_preset::builders::ReadPresetInputBuilder {
crate::operation::read_preset::builders::ReadPresetInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ReadPresetInputBuilder {
pub(crate) id: ::std::option::Option<::std::string::String>,
}
impl ReadPresetInputBuilder {
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
pub fn build(self) -> ::std::result::Result<crate::operation::read_preset::ReadPresetInput, ::aws_smithy_http::operation::error::BuildError> {
::std::result::Result::Ok(crate::operation::read_preset::ReadPresetInput { id: self.id })
}
}