#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct BatchExecuteStatementOutput {
pub update_results: ::std::option::Option<::std::vec::Vec<crate::types::UpdateResult>>,
_request_id: Option<String>,
}
impl BatchExecuteStatementOutput {
pub fn update_results(&self) -> &[crate::types::UpdateResult] {
self.update_results.as_deref().unwrap_or_default()
}
}
impl ::aws_types::request_id::RequestId for BatchExecuteStatementOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl BatchExecuteStatementOutput {
pub fn builder() -> crate::operation::batch_execute_statement::builders::BatchExecuteStatementOutputBuilder {
crate::operation::batch_execute_statement::builders::BatchExecuteStatementOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct BatchExecuteStatementOutputBuilder {
pub(crate) update_results: ::std::option::Option<::std::vec::Vec<crate::types::UpdateResult>>,
_request_id: Option<String>,
}
impl BatchExecuteStatementOutputBuilder {
pub fn update_results(mut self, input: crate::types::UpdateResult) -> Self {
let mut v = self.update_results.unwrap_or_default();
v.push(input);
self.update_results = ::std::option::Option::Some(v);
self
}
pub fn set_update_results(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::UpdateResult>>) -> Self {
self.update_results = input;
self
}
pub fn get_update_results(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::UpdateResult>> {
&self.update_results
}
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_execute_statement::BatchExecuteStatementOutput {
crate::operation::batch_execute_statement::BatchExecuteStatementOutput {
update_results: self.update_results,
_request_id: self._request_id,
}
}
}