#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct PutAttributesOutput {
#[doc(hidden)]
pub attributes: std::option::Option<std::vec::Vec<crate::types::Attribute>>,
_request_id: Option<String>,
}
impl PutAttributesOutput {
pub fn attributes(&self) -> std::option::Option<&[crate::types::Attribute]> {
self.attributes.as_deref()
}
}
impl aws_http::request_id::RequestId for PutAttributesOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl PutAttributesOutput {
pub fn builder() -> crate::operation::put_attributes::builders::PutAttributesOutputBuilder {
crate::operation::put_attributes::builders::PutAttributesOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct PutAttributesOutputBuilder {
pub(crate) attributes: std::option::Option<std::vec::Vec<crate::types::Attribute>>,
_request_id: Option<String>,
}
impl PutAttributesOutputBuilder {
pub fn attributes(mut self, input: crate::types::Attribute) -> Self {
let mut v = self.attributes.unwrap_or_default();
v.push(input);
self.attributes = Some(v);
self
}
pub fn set_attributes(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::Attribute>>,
) -> Self {
self.attributes = 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::put_attributes::PutAttributesOutput {
crate::operation::put_attributes::PutAttributesOutput {
attributes: self.attributes,
_request_id: self._request_id,
}
}
}