#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteParametersOutput {
#[doc(hidden)]
pub deleted_parameters: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub invalid_parameters: std::option::Option<std::vec::Vec<std::string::String>>,
_request_id: Option<String>,
}
impl DeleteParametersOutput {
pub fn deleted_parameters(&self) -> std::option::Option<&[std::string::String]> {
self.deleted_parameters.as_deref()
}
pub fn invalid_parameters(&self) -> std::option::Option<&[std::string::String]> {
self.invalid_parameters.as_deref()
}
}
impl aws_http::request_id::RequestId for DeleteParametersOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DeleteParametersOutput {
pub fn builder() -> crate::operation::delete_parameters::builders::DeleteParametersOutputBuilder
{
crate::operation::delete_parameters::builders::DeleteParametersOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteParametersOutputBuilder {
pub(crate) deleted_parameters: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) invalid_parameters: std::option::Option<std::vec::Vec<std::string::String>>,
_request_id: Option<String>,
}
impl DeleteParametersOutputBuilder {
pub fn deleted_parameters(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.deleted_parameters.unwrap_or_default();
v.push(input.into());
self.deleted_parameters = Some(v);
self
}
pub fn set_deleted_parameters(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.deleted_parameters = input;
self
}
pub fn invalid_parameters(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.invalid_parameters.unwrap_or_default();
v.push(input.into());
self.invalid_parameters = Some(v);
self
}
pub fn set_invalid_parameters(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.invalid_parameters = input;
self
}
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::delete_parameters::DeleteParametersOutput {
crate::operation::delete_parameters::DeleteParametersOutput {
deleted_parameters: self.deleted_parameters,
invalid_parameters: self.invalid_parameters,
_request_id: self._request_id,
}
}
}