#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetServiceInput {
pub service_id: ::std::option::Option<::std::string::String>,
}
impl GetServiceInput {
pub fn service_id(&self) -> ::std::option::Option<&str> {
self.service_id.as_deref()
}
}
impl GetServiceInput {
pub fn builder() -> crate::operation::get_service::builders::GetServiceInputBuilder {
crate::operation::get_service::builders::GetServiceInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetServiceInputBuilder {
pub(crate) service_id: ::std::option::Option<::std::string::String>,
}
impl GetServiceInputBuilder {
pub fn service_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.service_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_service_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.service_id = input;
self
}
pub fn get_service_id(&self) -> &::std::option::Option<::std::string::String> {
&self.service_id
}
pub fn build(self) -> ::std::result::Result<crate::operation::get_service::GetServiceInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_service::GetServiceInput { service_id: self.service_id })
}
}