#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetGraphSummaryOutput {
pub version: ::std::option::Option<::std::string::String>,
pub last_statistics_computation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub graph_summary: ::std::option::Option<crate::types::GraphDataSummary>,
_request_id: Option<String>,
}
impl GetGraphSummaryOutput {
pub fn version(&self) -> ::std::option::Option<&str> {
self.version.as_deref()
}
pub fn last_statistics_computation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_statistics_computation_time.as_ref()
}
pub fn graph_summary(&self) -> ::std::option::Option<&crate::types::GraphDataSummary> {
self.graph_summary.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetGraphSummaryOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetGraphSummaryOutput {
pub fn builder() -> crate::operation::get_graph_summary::builders::GetGraphSummaryOutputBuilder {
crate::operation::get_graph_summary::builders::GetGraphSummaryOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetGraphSummaryOutputBuilder {
pub(crate) version: ::std::option::Option<::std::string::String>,
pub(crate) last_statistics_computation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) graph_summary: ::std::option::Option<crate::types::GraphDataSummary>,
_request_id: Option<String>,
}
impl GetGraphSummaryOutputBuilder {
pub fn version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.version = ::std::option::Option::Some(input.into());
self
}
pub fn set_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.version = input;
self
}
pub fn get_version(&self) -> &::std::option::Option<::std::string::String> {
&self.version
}
pub fn last_statistics_computation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_statistics_computation_time = ::std::option::Option::Some(input);
self
}
pub fn set_last_statistics_computation_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.last_statistics_computation_time = input;
self
}
pub fn get_last_statistics_computation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_statistics_computation_time
}
pub fn graph_summary(mut self, input: crate::types::GraphDataSummary) -> Self {
self.graph_summary = ::std::option::Option::Some(input);
self
}
pub fn set_graph_summary(mut self, input: ::std::option::Option<crate::types::GraphDataSummary>) -> Self {
self.graph_summary = input;
self
}
pub fn get_graph_summary(&self) -> &::std::option::Option<crate::types::GraphDataSummary> {
&self.graph_summary
}
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_graph_summary::GetGraphSummaryOutput {
crate::operation::get_graph_summary::GetGraphSummaryOutput {
version: self.version,
last_statistics_computation_time: self.last_statistics_computation_time,
graph_summary: self.graph_summary,
_request_id: self._request_id,
}
}
}