aws_sdk_vpclattice/operation/get_service/
_get_service_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetServiceInput {
pub service_identifier: ::std::option::Option<::std::string::String>,
}
impl GetServiceInput {
pub fn service_identifier(&self) -> ::std::option::Option<&str> {
self.service_identifier.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_identifier: ::std::option::Option<::std::string::String>,
}
impl GetServiceInputBuilder {
pub fn service_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.service_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_service_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.service_identifier = input;
self
}
pub fn get_service_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.service_identifier
}
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_identifier: self.service_identifier,
})
}
}