#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct BatchStartViewerSessionRevocationOutput {
pub errors: ::std::option::Option<::std::vec::Vec<crate::types::BatchStartViewerSessionRevocationError>>,
_request_id: Option<String>,
}
impl BatchStartViewerSessionRevocationOutput {
pub fn errors(&self) -> &[crate::types::BatchStartViewerSessionRevocationError] {
self.errors.as_deref().unwrap_or_default()
}
}
impl ::aws_types::request_id::RequestId for BatchStartViewerSessionRevocationOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl BatchStartViewerSessionRevocationOutput {
pub fn builder() -> crate::operation::batch_start_viewer_session_revocation::builders::BatchStartViewerSessionRevocationOutputBuilder {
crate::operation::batch_start_viewer_session_revocation::builders::BatchStartViewerSessionRevocationOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct BatchStartViewerSessionRevocationOutputBuilder {
pub(crate) errors: ::std::option::Option<::std::vec::Vec<crate::types::BatchStartViewerSessionRevocationError>>,
_request_id: Option<String>,
}
impl BatchStartViewerSessionRevocationOutputBuilder {
pub fn errors(mut self, input: crate::types::BatchStartViewerSessionRevocationError) -> Self {
let mut v = self.errors.unwrap_or_default();
v.push(input);
self.errors = ::std::option::Option::Some(v);
self
}
pub fn set_errors(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::BatchStartViewerSessionRevocationError>>) -> Self {
self.errors = input;
self
}
pub fn get_errors(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::BatchStartViewerSessionRevocationError>> {
&self.errors
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::batch_start_viewer_session_revocation::BatchStartViewerSessionRevocationOutput {
crate::operation::batch_start_viewer_session_revocation::BatchStartViewerSessionRevocationOutput {
errors: self.errors,
_request_id: self._request_id,
}
}
}