aws_sdk_xray/operation/get_insight/
_get_insight_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetInsightInput {
pub insight_id: ::std::option::Option<::std::string::String>,
}
impl GetInsightInput {
pub fn insight_id(&self) -> ::std::option::Option<&str> {
self.insight_id.as_deref()
}
}
impl GetInsightInput {
pub fn builder() -> crate::operation::get_insight::builders::GetInsightInputBuilder {
crate::operation::get_insight::builders::GetInsightInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetInsightInputBuilder {
pub(crate) insight_id: ::std::option::Option<::std::string::String>,
}
impl GetInsightInputBuilder {
pub fn insight_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.insight_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_insight_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.insight_id = input;
self
}
pub fn get_insight_id(&self) -> &::std::option::Option<::std::string::String> {
&self.insight_id
}
pub fn build(self) -> ::std::result::Result<crate::operation::get_insight::GetInsightInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_insight::GetInsightInput { insight_id: self.insight_id })
}
}