aws_sdk_connectparticipant/operation/get_attachment/
_get_attachment_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetAttachmentInput {
pub attachment_id: ::std::option::Option<::std::string::String>,
pub connection_token: ::std::option::Option<::std::string::String>,
pub url_expiry_in_seconds: ::std::option::Option<i32>,
}
impl GetAttachmentInput {
pub fn attachment_id(&self) -> ::std::option::Option<&str> {
self.attachment_id.as_deref()
}
pub fn connection_token(&self) -> ::std::option::Option<&str> {
self.connection_token.as_deref()
}
pub fn url_expiry_in_seconds(&self) -> ::std::option::Option<i32> {
self.url_expiry_in_seconds
}
}
impl GetAttachmentInput {
pub fn builder() -> crate::operation::get_attachment::builders::GetAttachmentInputBuilder {
crate::operation::get_attachment::builders::GetAttachmentInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetAttachmentInputBuilder {
pub(crate) attachment_id: ::std::option::Option<::std::string::String>,
pub(crate) connection_token: ::std::option::Option<::std::string::String>,
pub(crate) url_expiry_in_seconds: ::std::option::Option<i32>,
}
impl GetAttachmentInputBuilder {
pub fn attachment_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.attachment_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_attachment_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.attachment_id = input;
self
}
pub fn get_attachment_id(&self) -> &::std::option::Option<::std::string::String> {
&self.attachment_id
}
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 url_expiry_in_seconds(mut self, input: i32) -> Self {
self.url_expiry_in_seconds = ::std::option::Option::Some(input);
self
}
pub fn set_url_expiry_in_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
self.url_expiry_in_seconds = input;
self
}
pub fn get_url_expiry_in_seconds(&self) -> &::std::option::Option<i32> {
&self.url_expiry_in_seconds
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_attachment::GetAttachmentInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_attachment::GetAttachmentInput {
attachment_id: self.attachment_id,
connection_token: self.connection_token,
url_expiry_in_seconds: self.url_expiry_in_seconds,
})
}
}