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