#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetSnapshotsOutput {
pub snap_shot_time_filter: ::std::option::Option<crate::types::TimeRange>,
pub snapshots_data_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub snapshots_data: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
pub next_token: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl GetSnapshotsOutput {
pub fn snap_shot_time_filter(&self) -> ::std::option::Option<&crate::types::TimeRange> {
self.snap_shot_time_filter.as_ref()
}
pub fn snapshots_data_header(&self) -> &[::std::string::String] {
self.snapshots_data_header.as_deref().unwrap_or_default()
}
pub fn snapshots_data(&self) -> &[::std::vec::Vec<::std::string::String>] {
self.snapshots_data.as_deref().unwrap_or_default()
}
pub fn next_token(&self) -> ::std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl ::aws_types::request_id::RequestId for GetSnapshotsOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetSnapshotsOutput {
pub fn builder() -> crate::operation::get_snapshots::builders::GetSnapshotsOutputBuilder {
crate::operation::get_snapshots::builders::GetSnapshotsOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetSnapshotsOutputBuilder {
pub(crate) snap_shot_time_filter: ::std::option::Option<crate::types::TimeRange>,
pub(crate) snapshots_data_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) snapshots_data: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
pub(crate) next_token: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl GetSnapshotsOutputBuilder {
pub fn snap_shot_time_filter(mut self, input: crate::types::TimeRange) -> Self {
self.snap_shot_time_filter = ::std::option::Option::Some(input);
self
}
pub fn set_snap_shot_time_filter(mut self, input: ::std::option::Option<crate::types::TimeRange>) -> Self {
self.snap_shot_time_filter = input;
self
}
pub fn get_snap_shot_time_filter(&self) -> &::std::option::Option<crate::types::TimeRange> {
&self.snap_shot_time_filter
}
pub fn snapshots_data_header(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.snapshots_data_header.unwrap_or_default();
v.push(input.into());
self.snapshots_data_header = ::std::option::Option::Some(v);
self
}
pub fn set_snapshots_data_header(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.snapshots_data_header = input;
self
}
pub fn get_snapshots_data_header(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.snapshots_data_header
}
pub fn snapshots_data(mut self, input: ::std::vec::Vec<::std::string::String>) -> Self {
let mut v = self.snapshots_data.unwrap_or_default();
v.push(input);
self.snapshots_data = ::std::option::Option::Some(v);
self
}
pub fn set_snapshots_data(mut self, input: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>) -> Self {
self.snapshots_data = input;
self
}
pub fn get_snapshots_data(&self) -> &::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>> {
&self.snapshots_data
}
pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.next_token = ::std::option::Option::Some(input.into());
self
}
pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
&self.next_token
}
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_snapshots::GetSnapshotsOutput {
crate::operation::get_snapshots::GetSnapshotsOutput {
snap_shot_time_filter: self.snap_shot_time_filter,
snapshots_data_header: self.snapshots_data_header,
snapshots_data: self.snapshots_data,
next_token: self.next_token,
_request_id: self._request_id,
}
}
}