#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetImageAncestryOutput {
pub image_ancestry_entries: ::std::option::Option<::std::vec::Vec<crate::types::ImageAncestryEntry>>,
_request_id: Option<String>,
}
impl GetImageAncestryOutput {
pub fn image_ancestry_entries(&self) -> &[crate::types::ImageAncestryEntry] {
self.image_ancestry_entries.as_deref().unwrap_or_default()
}
}
impl ::aws_types::request_id::RequestId for GetImageAncestryOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetImageAncestryOutput {
pub fn builder() -> crate::operation::get_image_ancestry::builders::GetImageAncestryOutputBuilder {
crate::operation::get_image_ancestry::builders::GetImageAncestryOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetImageAncestryOutputBuilder {
pub(crate) image_ancestry_entries: ::std::option::Option<::std::vec::Vec<crate::types::ImageAncestryEntry>>,
_request_id: Option<String>,
}
impl GetImageAncestryOutputBuilder {
pub fn image_ancestry_entries(mut self, input: crate::types::ImageAncestryEntry) -> Self {
let mut v = self.image_ancestry_entries.unwrap_or_default();
v.push(input);
self.image_ancestry_entries = ::std::option::Option::Some(v);
self
}
pub fn set_image_ancestry_entries(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ImageAncestryEntry>>) -> Self {
self.image_ancestry_entries = input;
self
}
pub fn get_image_ancestry_entries(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ImageAncestryEntry>> {
&self.image_ancestry_entries
}
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::get_image_ancestry::GetImageAncestryOutput {
crate::operation::get_image_ancestry::GetImageAncestryOutput {
image_ancestry_entries: self.image_ancestry_entries,
_request_id: self._request_id,
}
}
}