#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct BatchDeleteConnectionOutput {
pub succeeded: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub errors: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::ErrorDetail>>,
_request_id: Option<String>,
}
impl BatchDeleteConnectionOutput {
pub fn succeeded(&self) -> &[::std::string::String] {
self.succeeded.as_deref().unwrap_or_default()
}
pub fn errors(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, crate::types::ErrorDetail>> {
self.errors.as_ref()
}
}
impl ::aws_types::request_id::RequestId for BatchDeleteConnectionOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl BatchDeleteConnectionOutput {
pub fn builder() -> crate::operation::batch_delete_connection::builders::BatchDeleteConnectionOutputBuilder {
crate::operation::batch_delete_connection::builders::BatchDeleteConnectionOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct BatchDeleteConnectionOutputBuilder {
pub(crate) succeeded: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) errors: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::ErrorDetail>>,
_request_id: Option<String>,
}
impl BatchDeleteConnectionOutputBuilder {
pub fn succeeded(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.succeeded.unwrap_or_default();
v.push(input.into());
self.succeeded = ::std::option::Option::Some(v);
self
}
pub fn set_succeeded(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.succeeded = input;
self
}
pub fn get_succeeded(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.succeeded
}
pub fn errors(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::ErrorDetail) -> Self {
let mut hash_map = self.errors.unwrap_or_default();
hash_map.insert(k.into(), v);
self.errors = ::std::option::Option::Some(hash_map);
self
}
pub fn set_errors(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::ErrorDetail>>) -> Self {
self.errors = input;
self
}
pub fn get_errors(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::ErrorDetail>> {
&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_delete_connection::BatchDeleteConnectionOutput {
crate::operation::batch_delete_connection::BatchDeleteConnectionOutput {
succeeded: self.succeeded,
errors: self.errors,
_request_id: self._request_id,
}
}
}