aws_sdk_connectparticipant/operation/describe_view/
_describe_view_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeViewInput {
pub view_token: ::std::option::Option<::std::string::String>,
pub connection_token: ::std::option::Option<::std::string::String>,
}
impl DescribeViewInput {
pub fn view_token(&self) -> ::std::option::Option<&str> {
self.view_token.as_deref()
}
pub fn connection_token(&self) -> ::std::option::Option<&str> {
self.connection_token.as_deref()
}
}
impl DescribeViewInput {
pub fn builder() -> crate::operation::describe_view::builders::DescribeViewInputBuilder {
crate::operation::describe_view::builders::DescribeViewInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeViewInputBuilder {
pub(crate) view_token: ::std::option::Option<::std::string::String>,
pub(crate) connection_token: ::std::option::Option<::std::string::String>,
}
impl DescribeViewInputBuilder {
pub fn view_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.view_token = ::std::option::Option::Some(input.into());
self
}
pub fn set_view_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.view_token = input;
self
}
pub fn get_view_token(&self) -> &::std::option::Option<::std::string::String> {
&self.view_token
}
pub fn connection_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.connection_token = ::std::option::Option::Some(input.into());
self
}
pub fn set_connection_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.connection_token = input;
self
}
pub fn get_connection_token(&self) -> &::std::option::Option<::std::string::String> {
&self.connection_token
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::describe_view::DescribeViewInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::describe_view::DescribeViewInput {
view_token: self.view_token,
connection_token: self.connection_token,
})
}
}