aws_sdk_ivsrealtime/operation/get_participant/
_get_participant_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetParticipantInput {
6 pub stage_arn: ::std::option::Option<::std::string::String>,
8 pub session_id: ::std::option::Option<::std::string::String>,
10 pub participant_id: ::std::option::Option<::std::string::String>,
12}
13impl GetParticipantInput {
14 pub fn stage_arn(&self) -> ::std::option::Option<&str> {
16 self.stage_arn.as_deref()
17 }
18 pub fn session_id(&self) -> ::std::option::Option<&str> {
20 self.session_id.as_deref()
21 }
22 pub fn participant_id(&self) -> ::std::option::Option<&str> {
24 self.participant_id.as_deref()
25 }
26}
27impl GetParticipantInput {
28 pub fn builder() -> crate::operation::get_participant::builders::GetParticipantInputBuilder {
30 crate::operation::get_participant::builders::GetParticipantInputBuilder::default()
31 }
32}
33
34#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct GetParticipantInputBuilder {
38 pub(crate) stage_arn: ::std::option::Option<::std::string::String>,
39 pub(crate) session_id: ::std::option::Option<::std::string::String>,
40 pub(crate) participant_id: ::std::option::Option<::std::string::String>,
41}
42impl GetParticipantInputBuilder {
43 pub fn stage_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46 self.stage_arn = ::std::option::Option::Some(input.into());
47 self
48 }
49 pub fn set_stage_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51 self.stage_arn = input;
52 self
53 }
54 pub fn get_stage_arn(&self) -> &::std::option::Option<::std::string::String> {
56 &self.stage_arn
57 }
58 pub fn session_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
61 self.session_id = ::std::option::Option::Some(input.into());
62 self
63 }
64 pub fn set_session_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
66 self.session_id = input;
67 self
68 }
69 pub fn get_session_id(&self) -> &::std::option::Option<::std::string::String> {
71 &self.session_id
72 }
73 pub fn participant_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
76 self.participant_id = ::std::option::Option::Some(input.into());
77 self
78 }
79 pub fn set_participant_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
81 self.participant_id = input;
82 self
83 }
84 pub fn get_participant_id(&self) -> &::std::option::Option<::std::string::String> {
86 &self.participant_id
87 }
88 pub fn build(
90 self,
91 ) -> ::std::result::Result<crate::operation::get_participant::GetParticipantInput, ::aws_smithy_types::error::operation::BuildError> {
92 ::std::result::Result::Ok(crate::operation::get_participant::GetParticipantInput {
93 stage_arn: self.stage_arn,
94 session_id: self.session_id,
95 participant_id: self.participant_id,
96 })
97 }
98}