#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ManagePropertygraphStatisticsOutput {
pub status: ::std::string::String,
pub payload: ::std::option::Option<crate::types::RefreshStatisticsIdMap>,
_request_id: Option<String>,
}
impl ManagePropertygraphStatisticsOutput {
pub fn status(&self) -> &str {
use std::ops::Deref;
self.status.deref()
}
pub fn payload(&self) -> ::std::option::Option<&crate::types::RefreshStatisticsIdMap> {
self.payload.as_ref()
}
}
impl ::aws_types::request_id::RequestId for ManagePropertygraphStatisticsOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl ManagePropertygraphStatisticsOutput {
pub fn builder() -> crate::operation::manage_propertygraph_statistics::builders::ManagePropertygraphStatisticsOutputBuilder {
crate::operation::manage_propertygraph_statistics::builders::ManagePropertygraphStatisticsOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ManagePropertygraphStatisticsOutputBuilder {
pub(crate) status: ::std::option::Option<::std::string::String>,
pub(crate) payload: ::std::option::Option<crate::types::RefreshStatisticsIdMap>,
_request_id: Option<String>,
}
impl ManagePropertygraphStatisticsOutputBuilder {
pub fn status(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.status = ::std::option::Option::Some(input.into());
self
}
pub fn set_status(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.status = input;
self
}
pub fn get_status(&self) -> &::std::option::Option<::std::string::String> {
&self.status
}
pub fn payload(mut self, input: crate::types::RefreshStatisticsIdMap) -> Self {
self.payload = ::std::option::Option::Some(input);
self
}
pub fn set_payload(mut self, input: ::std::option::Option<crate::types::RefreshStatisticsIdMap>) -> Self {
self.payload = input;
self
}
pub fn get_payload(&self) -> &::std::option::Option<crate::types::RefreshStatisticsIdMap> {
&self.payload
}
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,
) -> ::std::result::Result<
crate::operation::manage_propertygraph_statistics::ManagePropertygraphStatisticsOutput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::manage_propertygraph_statistics::ManagePropertygraphStatisticsOutput {
status: self.status.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"status",
"status was not specified but it is required when building ManagePropertygraphStatisticsOutput",
)
})?,
payload: self.payload,
_request_id: self._request_id,
})
}
}