aws_sdk_connectparticipant/operation/get_transcript/
_get_transcript_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetTranscriptInput {
pub contact_id: ::std::option::Option<::std::string::String>,
pub max_results: ::std::option::Option<i32>,
pub next_token: ::std::option::Option<::std::string::String>,
pub scan_direction: ::std::option::Option<crate::types::ScanDirection>,
pub sort_order: ::std::option::Option<crate::types::SortKey>,
pub start_position: ::std::option::Option<crate::types::StartPosition>,
pub connection_token: ::std::option::Option<::std::string::String>,
}
impl GetTranscriptInput {
pub fn contact_id(&self) -> ::std::option::Option<&str> {
self.contact_id.as_deref()
}
pub fn max_results(&self) -> ::std::option::Option<i32> {
self.max_results
}
pub fn next_token(&self) -> ::std::option::Option<&str> {
self.next_token.as_deref()
}
pub fn scan_direction(&self) -> ::std::option::Option<&crate::types::ScanDirection> {
self.scan_direction.as_ref()
}
pub fn sort_order(&self) -> ::std::option::Option<&crate::types::SortKey> {
self.sort_order.as_ref()
}
pub fn start_position(&self) -> ::std::option::Option<&crate::types::StartPosition> {
self.start_position.as_ref()
}
pub fn connection_token(&self) -> ::std::option::Option<&str> {
self.connection_token.as_deref()
}
}
impl GetTranscriptInput {
pub fn builder() -> crate::operation::get_transcript::builders::GetTranscriptInputBuilder {
crate::operation::get_transcript::builders::GetTranscriptInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetTranscriptInputBuilder {
pub(crate) contact_id: ::std::option::Option<::std::string::String>,
pub(crate) max_results: ::std::option::Option<i32>,
pub(crate) next_token: ::std::option::Option<::std::string::String>,
pub(crate) scan_direction: ::std::option::Option<crate::types::ScanDirection>,
pub(crate) sort_order: ::std::option::Option<crate::types::SortKey>,
pub(crate) start_position: ::std::option::Option<crate::types::StartPosition>,
pub(crate) connection_token: ::std::option::Option<::std::string::String>,
}
impl GetTranscriptInputBuilder {
pub fn contact_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.contact_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_contact_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.contact_id = input;
self
}
pub fn get_contact_id(&self) -> &::std::option::Option<::std::string::String> {
&self.contact_id
}
pub fn max_results(mut self, input: i32) -> Self {
self.max_results = ::std::option::Option::Some(input);
self
}
pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
self.max_results = input;
self
}
pub fn get_max_results(&self) -> &::std::option::Option<i32> {
&self.max_results
}
pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.next_token = ::std::option::Option::Some(input.into());
self
}
pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
&self.next_token
}
pub fn scan_direction(mut self, input: crate::types::ScanDirection) -> Self {
self.scan_direction = ::std::option::Option::Some(input);
self
}
pub fn set_scan_direction(mut self, input: ::std::option::Option<crate::types::ScanDirection>) -> Self {
self.scan_direction = input;
self
}
pub fn get_scan_direction(&self) -> &::std::option::Option<crate::types::ScanDirection> {
&self.scan_direction
}
pub fn sort_order(mut self, input: crate::types::SortKey) -> Self {
self.sort_order = ::std::option::Option::Some(input);
self
}
pub fn set_sort_order(mut self, input: ::std::option::Option<crate::types::SortKey>) -> Self {
self.sort_order = input;
self
}
pub fn get_sort_order(&self) -> &::std::option::Option<crate::types::SortKey> {
&self.sort_order
}
pub fn start_position(mut self, input: crate::types::StartPosition) -> Self {
self.start_position = ::std::option::Option::Some(input);
self
}
pub fn set_start_position(mut self, input: ::std::option::Option<crate::types::StartPosition>) -> Self {
self.start_position = input;
self
}
pub fn get_start_position(&self) -> &::std::option::Option<crate::types::StartPosition> {
&self.start_position
}
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::get_transcript::GetTranscriptInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_transcript::GetTranscriptInput {
contact_id: self.contact_id,
max_results: self.max_results,
next_token: self.next_token,
scan_direction: self.scan_direction,
sort_order: self.sort_order,
start_position: self.start_position,
connection_token: self.connection_token,
})
}
}