aws_sdk_chimesdkmessaging/operation/update_channel_read_marker/
_update_channel_read_marker_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdateChannelReadMarkerInput {
6 pub channel_arn: ::std::option::Option<::std::string::String>,
8 pub chime_bearer: ::std::option::Option<::std::string::String>,
10}
11impl UpdateChannelReadMarkerInput {
12 pub fn channel_arn(&self) -> ::std::option::Option<&str> {
14 self.channel_arn.as_deref()
15 }
16 pub fn chime_bearer(&self) -> ::std::option::Option<&str> {
18 self.chime_bearer.as_deref()
19 }
20}
21impl UpdateChannelReadMarkerInput {
22 pub fn builder() -> crate::operation::update_channel_read_marker::builders::UpdateChannelReadMarkerInputBuilder {
24 crate::operation::update_channel_read_marker::builders::UpdateChannelReadMarkerInputBuilder::default()
25 }
26}
27
28#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct UpdateChannelReadMarkerInputBuilder {
32 pub(crate) channel_arn: ::std::option::Option<::std::string::String>,
33 pub(crate) chime_bearer: ::std::option::Option<::std::string::String>,
34}
35impl UpdateChannelReadMarkerInputBuilder {
36 pub fn channel_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
39 self.channel_arn = ::std::option::Option::Some(input.into());
40 self
41 }
42 pub fn set_channel_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44 self.channel_arn = input;
45 self
46 }
47 pub fn get_channel_arn(&self) -> &::std::option::Option<::std::string::String> {
49 &self.channel_arn
50 }
51 pub fn chime_bearer(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
54 self.chime_bearer = ::std::option::Option::Some(input.into());
55 self
56 }
57 pub fn set_chime_bearer(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
59 self.chime_bearer = input;
60 self
61 }
62 pub fn get_chime_bearer(&self) -> &::std::option::Option<::std::string::String> {
64 &self.chime_bearer
65 }
66 pub fn build(
68 self,
69 ) -> ::std::result::Result<
70 crate::operation::update_channel_read_marker::UpdateChannelReadMarkerInput,
71 ::aws_smithy_types::error::operation::BuildError,
72 > {
73 ::std::result::Result::Ok(crate::operation::update_channel_read_marker::UpdateChannelReadMarkerInput {
74 channel_arn: self.channel_arn,
75 chime_bearer: self.chime_bearer,
76 })
77 }
78}